From 61b3dde868fc6755c0e80315baaca348a62f2c29 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 20:09:23 +0000 Subject: [PATCH 1/4] Adopt canonical gate repairs and declare the actual Atoma audit scope Resolve the observed allowlist, canon identity, over-broad Zig FFI scan and template map-control failures. The FFI fix is merged upstream and its pins remain ancestors of main. Record the stronger native RSR applicability findings without claiming qualification. Preserve all required soundness and security checks. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- .github/workflows/actions.lock | 39 +++++++++++++++++---- .github/workflows/governance.yml | 2 +- .github/workflows/main-estate-audit.yml | 5 ++- atoma_chora.deed | 22 ++++-------- docs/audit/2026-11-07-soundness-sprint.adoc | 30 ++++++++++++++++ tests/e2e/use_template_mint_test.sh | 13 +++++-- 6 files changed, 85 insertions(+), 26 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 2aff101a..32ff7dec 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -31,7 +31,7 @@ workflows: '.github/workflows/estate-rules.yml': - 'actions/checkout@v7.0.1' '.github/workflows/governance.yml': - - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@fe57d352f0b1a50e5cb07b4aac2581caf355388e' '.github/workflows/groove-check.yml': - 'actions/checkout@v7.0.1' '.github/workflows/guix-policy.yml': @@ -43,7 +43,7 @@ workflows: '.github/workflows/labels.yml': [] '.github/workflows/lock-sync-gate.yml': [] '.github/workflows/main-estate-audit.yml': - - 'hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d' + - 'hyperpolymath/cicd-suite@2dbe6e9c2da71fbce336079f8e016c2de0b90111' '.github/workflows/mirror.yml': - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/ossf-best-practices.yml': @@ -210,19 +210,25 @@ dependencies: commit: 'sha1-0f8e8c99d88aeb3fbfd523f1ef2c6f762d10d64d' owner_id: 75048950 repo_id: 623796603 - 'hyperpolymath/cicd-suite@0da816c05ae7486671d863e07935f93981c0c2d5': + 'hyperpolymath/cicd-suite@c519c4520afbfe48f16aceb0706d7cfb1d649994': ref: 'main' - commit: 'sha1-0da816c05ae7486671d863e07935f93981c0c2d5' + commit: 'sha1-c519c4520afbfe48f16aceb0706d7cfb1d649994' owner_id: 6759885 repo_id: 1326697643 - 'hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d': + 'hyperpolymath/cicd-suite@2dbe6e9c2da71fbce336079f8e016c2de0b90111': ref: 'main' - commit: 'sha1-55556cf5ba71ba744695861503c13148d3915a5d' + commit: 'sha1-2dbe6e9c2da71fbce336079f8e016c2de0b90111' owner_id: 6759885 repo_id: 1326697643 uses: + - 'hyperpolymath/cicd-suite@3c2d4028d7203097f3c54106556e20947f9e04ef' - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - - 'hyperpolymath/cicd-suite@0da816c05ae7486671d863e07935f93981c0c2d5' + - 'hyperpolymath/cicd-suite@c519c4520afbfe48f16aceb0706d7cfb1d649994' + 'hyperpolymath/cicd-suite@3c2d4028d7203097f3c54106556e20947f9e04ef': + ref: 'main' + commit: 'sha1-3c2d4028d7203097f3c54106556e20947f9e04ef' + owner_id: 6759885 + repo_id: 1326697643 'hyperpolymath/smtp-notify-action@v0.5.0': ref: 'v0.5.0' commit: 'sha1-c1c9fa07992a02c1fd3d67a0dc1b08cccb852aef' @@ -247,6 +253,25 @@ dependencies: - 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6' - 'swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6' - 'webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555' + 'metadatastician/standards@fe57d352f0b1a50e5cb07b4aac2581caf355388e': + ref: 'main' + commit: 'sha1-fe57d352f0b1a50e5cb07b4aac2581caf355388e' + owner_id: 297579217 + repo_id: 1116521501 + uses: + - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' + - 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9' + - 'denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed' + - 'dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8' + - 'editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393' + - 'erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124' + - 'github/codeql-action@b96794f015dfd88f77b49b1c93e0fa7110f94c63' + - 'goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406' + - 'ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e' + - 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6' + - 'swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6' + - 'webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555' 'ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e': ref: 'v2.5.0' commit: 'sha1-fa7117db83c52d787ae5a89f350999701505d78e' diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 67f4c4bd..7b07b680 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -17,4 +17,4 @@ permissions: jobs: governance: - uses: metadatastician/standards/.github/workflows/governance-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/governance-reusable.yml@fe57d352f0b1a50e5cb07b4aac2581caf355388e diff --git a/.github/workflows/main-estate-audit.yml b/.github/workflows/main-estate-audit.yml index c856ee3f..f5b59207 100644 --- a/.github/workflows/main-estate-audit.yml +++ b/.github/workflows/main-estate-audit.yml @@ -17,4 +17,7 @@ on: jobs: call-estate-audit: - uses: hyperpolymath/cicd-suite/.github/workflows/main-estate-audit.yml@55556cf5ba71ba744695861503c13148d3915a5d # cicd-suite MAIN (branch-reachable): remote-form callee — 27 full-SHA refs, de-onboarded; witnessed cross-repo in rsr runs 35282081912 + 35283168495 (jobs spawn; gates audit THIS repo). Prior f9e173a pin (via #137) = deleted PR head: pull-ref-only reachability -> 0-job creation rejection; its onboarded @main/tag form was separately proven startup_failure cross-repo (35280642055). Repin on callee updates; never to PR-head commits. + uses: hyperpolymath/cicd-suite/.github/workflows/main-estate-audit.yml@2dbe6e9c2da71fbce336079f8e016c2de0b90111 + with: + # Includes the frame FFI implementation and all its local Zig imports. + zig-ffi-paths: examples/atoma/frame-v1/src diff --git a/atoma_chora.deed b/atoma_chora.deed index 4935fb52..fdb09d83 100644 --- a/atoma_chora.deed +++ b/atoma_chora.deed @@ -30,9 +30,9 @@ ; equal canon.lock [canon.artifacts]; canon.lock [canon.lockstep].order is ; spine-adopts-then-canon-releases, so this clause moves FIRST. (canon - :version "2.1.2" + :version "2.1.4" :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" - :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" + :gates-sha256 "2f31f46d4753432e0aa8c9c28f339e18e062c98dc6e6ef4ecbb76993cf37638b" :lockstep-since "2026-09-17" ; A canon change this repo cannot satisfy is a change made in the WRONG ; ORDER, not a rejected change: land the spine's adoption first, then the @@ -199,8 +199,8 @@ (manifest :version "0.1.0" :last-updated "2026-11-07" - :project "Atoma" - :purpose "Canonical RSR (Rhodium Standard Repository) template — governance, CI/CD, machine-readable metadata, ABI/FFI seam and formal-verification scaffolding that hyperpolymath projects are instantiated from." + :project "atoma" + :purpose "Experimental verification of a closed Zig subset, with source-bound obligations, model proofs and explicit replay/refinement limits." (agent :name CLAUDE :role "proofs, compilers, repo-local implementation, CI/CD, formal verification, Rust/Idris2/Zig") (agent :name CHATGPT :role "prose, papers, publication review, standards docs, outreach drafts, letters") (agent :name GEMINI :role "estate audits, cross-repo sweeps, long-context triage, pattern detection") @@ -1044,16 +1044,8 @@ "Axis 1 priority governs resource allocation" "Axis 2 type governs commit categorisation" "Axis 3 focus governs audit depth"))) - ; rsr-profile — this repo's declared RSR v2.0 capabilities. - ; Written by just repo-init on 2026-11-07. The template's maximal - ; profile was replaced at mint: declare only what this tree carries. - (rsr-profile - :version "1.0.0" - :spec "rsr-criteria-v2" - :declares-against "2.1.1-draft" - ; UNASSIGNED: declare capabilities (or a preset) — see standards - ; .machine_readable/template-capability-gates.toml - :capabilities ()) + (rsr-profile :version "1.0.0" :spec "rsr-criteria-v2" :declares-against "2.1.4-draft" + :capabilities ("bash" "zig" "cli" "library" "formal-proofs")) ; variant — provenance contract (ADR-0002 shape; ADR-0003 use). ; Records what this repo was minted from, for re-templating tooling and ; the drift gate (scripts/check-variant-drift.sh). The mint renders @@ -1096,7 +1088,7 @@ :extra-branches () :canon-version "2.1.2" :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" - :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" + :gates-sha256 "2f31f46d4753432e0aa8c9c28f339e18e062c98dc6e6ef4ecbb76993cf37638b" :archetype "" ; Which minting path actually ran (#201/#203 needed this signal). :minted-by "repo-init" diff --git a/docs/audit/2026-11-07-soundness-sprint.adoc b/docs/audit/2026-11-07-soundness-sprint.adoc index 719acacc..6f6a362f 100644 --- a/docs/audit/2026-11-07-soundness-sprint.adoc +++ b/docs/audit/2026-11-07-soundness-sprint.adoc @@ -149,3 +149,33 @@ job-aware closure check are recorded distinctly; a global pass is not claimed. The existing SonarCloud project is `hyperpolymath_zigprove` (Atoma's previous name); the local scanner configuration now targets that project rather than the template's project. + +== Remaining inherited gate repairs after PR 3 + +PR 3 was merged on 2026-11-07 while its inherited gate repairs were still +being evaluated. The following follow-up uses the actual failure evidence: + +* Governance's old allowlist snapshot did not recognise the standards + repository transfer. Pin its reusable to reviewed main commit `fe57d352`. +* Adopt the canon's 2.1.4 identity and gate-table hash; the criteria hash is + unchanged. This is a declared audit target, not a conformance certificate. +* Pin the merged canonical FFI-scope repair from cicd-suite PR 93 at + `2dbe6e9c`. Declare the frame implementation and its local import closure + as the FFI scope. The CLI remains outside that lexical FFI rule. +* Repair the map staleness control in the canonical template (PR 294), with + the same change here. It now creates its own tracked/deleted fixture and + checks both index and worktree behavior instead of depending on archetypes/. +* Correct the folded manifest's repository identity and purpose, and declare + the demonstrated core capabilities instead of leaving the profile unassigned. + +The native RSR applicability reader was also run, using its validated DEED +AST. It found retained template packaging/interface/release scaffolding that +does not match the declared core capabilities. That is recorded maintenance +debt, not hidden by declaring every possible capability. Broad RSR qualification +remains unearned; structural `just validate-rsr` is a different, weaker check. +Packaging/profile reconciliation is a follow-up before an experimental release. + +Local lock closure and placeholder validation pass. The full local mint test +could not start without uuidgen: apt-listbugs refused the available Debian +uuid-runtime package (bug 1126894), and the refusal was not overridden. +Hosted Ubuntu CI supplies that tool and must establish the complete mint result. diff --git a/tests/e2e/use_template_mint_test.sh b/tests/e2e/use_template_mint_test.sh index 4aa76461..445746a9 100755 --- a/tests/e2e/use_template_mint_test.sh +++ b/tests/e2e/use_template_mint_test.sh @@ -201,9 +201,18 @@ g -C "$C" diff --quiet -- docs/architecture/REPOSITORY-MAP.adoc \ # commit, after a removal), reproduces the stale map lintel shipped. SM="$work/stale-map" use_template "$SM" -(cd "$SM" && rm -rf archetypes && bash scripts/gen-repo-map.sh . >/dev/null) -grep -q '^| `archetypes' "$SM/docs/architecture/REPOSITORY-MAP.adoc" \ +# Create the control explicitly: minted descendants no longer carry archetypes/. +# The assertion must test index staleness, not assume a template-only directory. +printf 'map staleness control\n' > "$SM/map-staleness-control.txt" +g -C "$SM" add map-staleness-control.txt +rm "$SM/map-staleness-control.txt" +(cd "$SM" && bash scripts/gen-repo-map.sh . >/dev/null) +grep -qF 'map-staleness-control.txt' "$SM/docs/architecture/REPOSITORY-MAP.adoc" \ || fail 'control: index mode no longer shows the pre-commit staleness; this check is vacuous' +(cd "$SM" && bash scripts/gen-repo-map.sh --worktree . >/dev/null) +if grep -qF 'map-staleness-control.txt' "$SM/docs/architecture/REPOSITORY-MAP.adoc"; then + fail 'control: worktree mode retained a deleted source' +fi pass "the committed map is fresh (the index-mode control reproduces lintel's stale map)" (cd "$C" && env -u GITHUB_REPOSITORY bash scripts/check-no-placeholders.sh .) > "$work/ph.log" 2>&1 \ From cf9c4ae79d3ccaf2f9bbbbb9db9c8ebeb7914784 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 20:14:30 +0000 Subject: [PATCH 2/4] Recognize the canonical standards owner in the inherited governance assertion Backport repository-transfer compatibility to the older reusable-workflow test. Continue requiring a full SHA and an exact matching lock dependency; unrelated owners remain rejected. The current template already recognizes both canonical owner spellings in its newer checkout-based policy test. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- tests/workflows/governance_policy_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/workflows/governance_policy_test.sh b/tests/workflows/governance_policy_test.sh index 9b00e1d7..b9e40f25 100644 --- a/tests/workflows/governance_policy_test.sh +++ b/tests/workflows/governance_policy_test.sh @@ -46,12 +46,12 @@ console.log("PASS: unrestricted pull requests coexist with filtered pushes and m // The replacement must still invoke the shared policy, at a locked revision. // Derive that revision from the call so legitimate pin updates need no edit. const use = governance.jobs.governance.uses; -const match = /^hyperpolymath\/standards\/\.github\/workflows\/governance-reusable\.yml@([a-f0-9]{40})$/.exec(use); +const match = /^(metadatastician|hyperpolymath)\/standards\/\.github\/workflows\/governance-reusable\.yml@([a-f0-9]{40})$/.exec(use); assert.ok(match, "governance must invoke the standards reusable workflow at a full SHA"); -const dependency = `hyperpolymath/standards@${match[1]}`; +const dependency = `${match[1]}/standards@${match[2]}`; assert.deepEqual(lock.workflows[".github/workflows/governance.yml"], [dependency], "governance's lock record must match its reusable workflow call"); -assert.equal(lock.dependencies[dependency]?.commit, `sha1-${match[1]}`, +assert.equal(lock.dependencies[dependency]?.commit, `sha1-${match[2]}`, "the governance pin must have a corresponding locked dependency commit"); console.log("PASS: governance delegates to the locked standards policy"); JS From 1ba1a4591430c8397618bc02438fc7bc64ae078c Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 20:20:16 +0000 Subject: [PATCH 3/4] Restore canonical KYAML after container identity rendering Use the checksum-verified formatter and yq versions pinned by Estate Rules. The formatter confirms parsed data is unchanged. All three retained config format checks and the KYAML ratchet controls pass; template-only value assertions remain correctly inapplicable after minting. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- build/container/compose.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/container/compose.yaml b/build/container/compose.yaml index 4cc16734..f8a7b910 100644 --- a/build/container/compose.yaml +++ b/build/container/compose.yaml @@ -21,7 +21,7 @@ # ────────────────────────────────────────────────────────────────────── # Primary application service # ────────────────────────────────────────────────────────────────────── - "atoma": { + atoma: { build: { context: "..", dockerfile: "build/container/Containerfile", @@ -74,7 +74,7 @@ "rokur-audit:/var/log/rokur", ], depends_on: { - "atoma": { + atoma: { condition: "service_healthy", }, }, @@ -128,7 +128,7 @@ }, }, volumes: { - "atoma-data": null, + atoma-data: null, rokur-audit: null, }, } From 17a23c45138222eb792062a926c7894cdf63c032 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 20:48:13 +0000 Subject: [PATCH 4/4] Update atoma_chora.deed Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- atoma_chora.deed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atoma_chora.deed b/atoma_chora.deed index fdb09d83..7be7ab54 100644 --- a/atoma_chora.deed +++ b/atoma_chora.deed @@ -1088,7 +1088,7 @@ :extra-branches () :canon-version "2.1.2" :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" - :gates-sha256 "2f31f46d4753432e0aa8c9c28f339e18e062c98dc6e6ef4ecbb76993cf37638b" + :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" :archetype "" ; Which minting path actually ran (#201/#203 needed this signal). :minted-by "repo-init"