Repository navigation
Commit dd20cf8
## Change and reason
Supersedes #217 directly on current `main` (`d69d4f9`) and addresses
remaining fork governance, K9/DEED conformance, and security/quality
findings across the repository.
### 1. PR #217 reconciliation & CI/DOI workflow hardening
- The streamed `BigInt` DuckDB count aggregation, strict RFC 7493 I-JSON
/ RFC 8785 JCS boundary, read-only DuckDB helpers, and CladeCumulus
sidecar fixes from #217 already landed on `main` via #226; merging the
stale #217 branch directly would revert subsequent `main` commits.
- **Addresses CodeRabbit review feedback on #217
(`validated_statistics.jl`):** `_statistics_body` now measures UTF-8
byte length via `ncodeunits(req.body)` when given an `AbstractString`
and avoids mutating `Vector{UInt8}` request buffers
(`String(copy(req.body))`), with regression tests in
`test/unit/test_validated_statistics.jl`.
- **Restores PR #217 fast-fail test ordering & hardens workflows:**
places `validated_statistics` first in `Run validated-statistics tests
first`, captures both `julia` and `tee` exit statuses without redundant
`|| true` suffixes (`RE005`), bounds `Julia tests` with
`timeout-minutes: 60` (`WH006`), and replaces the silent-swallow YAML
step in `.github/workflows/doi.yml` with real `CITATION.cff` and DOI
receipt-schema checks.
### 2. K9 v1.0.0 & DEED conformance + fork hygiene
- Authors Yard-tier K9 v1.0.0 fork contractiles (`must.k9.ncl`,
`trust.k9.ncl`, `intend.k9.ncl`) under `.machine_readable/contractiles/`
and routes `:contracts` in `MetaManifold-WebUI_chora.deed`.
- Wires `hyperpolymath/standards/.github/workflows/k9-conformance.yml`
(L0–L2 strict, `require-files: true`, `fail-on-indeterminate: true`)
into `.github/workflows/governance.yml`, aligns all
`hyperpolymath/standards` workflow pins to one SHA
(`01c9b0c9f2646ebea0b30a9588462642ac94aee9`), switches `GH_TOKEN` to
`github.token` (`RE001`), publishes the K9 verdict grid + `k9.json`
badge endpoint, and extends `scripts/check-governance-contract.sh` from
20 to 26 checks.
- Adds `SECURITY.md` (`CC-BY-SA-4.0`), `.editorconfig` (`MPL-2.0`), and
`.github/dependabot.yml` (`MPL-2.0` for `github-actions`).
### 3. Security, input-boundary, proof-drift & frontend fixes
- **HTTP JSON input boundaries (`panic-attack` `InputBoundary`):** adds
`_read_json_object` in `src/server/server.jl` and updates `runs.jl`,
`studies.jl`, `composition.jl`, `analysis.jl`, `results.jl`,
`config.jl`, and `publication_tables.jl` so malformed or non-object JSON
bodies return HTTP 400 (`invalid_json` / `invalid_library`) instead of
throwing unhandled 500 exceptions, covered in
`test/unit/test_server_security.jl`.
- **Additional `InputBoundary` & `ProofDrift` fixes:** guards JSON
parsing in `bench/advanced_zero_handling/benchmark.jl`,
`frontend/src/figure/charts.ts`, and
`frontend/src/components/alphaMetrics.tsx`, and replaces type-only `isa`
assertions in `test/unit/test_occupancy_grade.jl` and
`test/unit/test_evidence.jl` with concrete value and UTC ISO-8601
timestamp checks.
- **Frontend `pons-asinorum` fixes:** batches SVG path fragments in
`frontend/src/tree/TreeShapes.tsx` and cleans trailing post-return hook
comments in `frontend/src/figure/PaneEditor.tsx` and
`frontend/src/components/PublicationTablesPanel.tsx`.
## Validation
- `npx --yes bun@1.3.10 install --frozen-lockfile --ignore-scripts`
- `npx --yes bun@1.3.10 run typecheck` — clean
- `npx --yes bun@1.3.10 test src` — **72 passed, 0 failed** (200
`expect()` assertions)
- `npx --yes bun@1.3.10 run build` — production Vite bundle succeeded
- `bash scripts/check-governance-contract.sh` — **26/26 passed**
- `bash scripts/lint-sonar-reliability.sh` — clean
- `bash scripts/lint-occupancy-readings.sh` — clean
- `bash proofs/tests/axiom-audit.sh` — 7/7 Agda modules clean
- `python3 test/references/check_high_precision_references.py --check
test/unit/test_high_precision.jl` — verified
- `node deed_lint.js MetaManifold-WebUI_chora.deed` — `OK`
- `bash k9-validate.sh --layer L1 --strict` on
`.machine_readable/contractiles/*/*.k9.ncl` — 3/3 `pass` (`errors: 0,
warnings: 0`); full Nickel 1.18.0 L2 typecheck/export runs in
`Governance (fork)`
- Parsed all modified YAML workflows with `Bun.YAML.parse` and verified
all 46 inline bash `run` blocks with `bash -n`
- `git diff --check` — clean
- Julia 1.12.5 / R / Agda test execution runs in the pinned GitHub
Actions `CI` workflow (Julia is not installed in the authoring sandbox)
## Scope
- Leaves upstream `AGPL-3.0-only` / `CC BY-SA 4.0` copyright headers,
`LICENSE`, `CITATION.cff`, lockfiles (`Manifest.toml`, `renv.lock`,
`frontend/bun.lock`), W3C XML/SVG namespace URIs
(`http://www.w3.org/2000/svg`), and intentional Julia-to-R `RCall.reval`
/ `Meta.parse` bridges untouched.
- Keeps `.gitbot-fleet/` report-backs honest (`not_run` until external
fleet bots publish genuine evidence) and preserves the fork's
non-blocking PR SARIF contract.
## Contribution checks
- [x] I followed [CONTRIBUTING.md](../CONTRIBUTING.md).
- [x] This branch starts at current `main` (`d69d4f9`) and contains no
merge commits.
- [x] CI and Governance workflows are running on this PR.
- [x] Existing licensing, citation and acknowledgement text is
unchanged.
---------
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
1 parent 90a1aa2 commit dd20cf8
30 files changed
Lines changed: 465 additions & 67 deletions
File tree
- .github/workflows
- .machine_readable/contractiles
- intend
- must
- trust
- bench/advanced_zero_handling
- frontend/src
- components
- figure
- scripts
- tests
- src/server
- routes
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | | - | |
75 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
85 | 102 | | |
86 | 103 | | |
87 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
| |||
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
| |||
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
198 | 214 | | |
199 | 215 | | |
200 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments