Skip to content

Replay source-derived u8 proofs with independent theorem binding - #5

Merged
hyperpolymath merged 8 commits into
mainfrom
feat/source-proof-replay
Nov 7, 2026
Merged

hyperpolymath merged 8 commits into
mainfrom
feat/source-proof-replay

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Following the soundness and inherited CI repairs merged in #2–#4, this PR adds the next R1 source-to-model proof and replay slice. A compiled theorem must match the expected statement derived directly from the current Zig source.

source-coq emits the parsed Zig body and contract separately into a Coq theorem covering every u8 input. Replay regenerates the proof from current source, requires exact bytes, runs actual ECHIDNA, independently checks its fresh compiled library with coqchk, and audits the theorem for assumptions. The audit restates the expected theorem directly from the source: definitions inside the returned library cannot substitute a different model. Existing evidence directories are refused; a receipt appears only after all checks pass and always says INCOMPLETE.

The existing required soundness gate installs pinned replay tools and executes two positive model proofs and eleven rejection controls. These include a valid closed compiled proof of the wrong model, which the source-derived theorem audit rejects. A separate admitted-theorem control demonstrates why coqchk alone is insufficient. The complete local gate also passes the prior 24 tool/13 frame tests, Idris extraction/QTT negatives, four Agda modules, SMT obligations, four-target layouts and exhaustive compiled Zig witness. Logs and manifests are in docs/audit/2026-11-07-source-replay.adoc and its adjacent evidence directory. Hosted validation passed on final head f4c85da: all 67 reported checks completed successfully or with expected skip/neutral results. Required soundness run: https://github.com/hyperpolymath/atoma/actions/runs/42413753908. Its evidence artifact records the actual PR merge checkout 4c77d1a; that checkout has the same source tree as the head.

The preceding repairs in #4 consume merged cicd-suite#93 and rsr-template-repo#294. This branch is updated onto that merged main. The code changes preserve the required checks. A separately approved retired-rule cleanup is documented below. A fresh native RSR applicability audit of this source tree confirms its baseline clauses pass but identifies twelve retained scaffold/capability mismatches, recorded as release debt.

Trust limits: this checks a generated finite-model theorem, not a Z3 certificate, Zig/compiler refinement or the full Dedukti/Coq/Lean4 chain. Local Rocq 9.2/Rust 1.99.1 and hosted Coq 8.18.0/Rust 1.99.0 are separate profiles. R1 remains partial; typed semantics, aliasing and refinement are next. The v1 estimate is unchanged.

Post-merge operational repair: the inherited badge publisher exposed a retired native coverage rule with no data producer. With the owner’s explicit approval, standards/scripts/remove-unsatisfiable-data-rules.sh removed only that rule from ruleset 25658902 and verified the read-back. The required soundness gate, signatures, linear history, deletion protection, conditions and bypass actors are unchanged. Badge publication rerun 128532437586 passed. Post-merge soundness run https://github.com/hyperpolymath/atoma/actions/runs/42415045905 also passed on merge commit 98433ef. All 63 latest reported main checks are complete with success or expected skip/neutral results. Post-merge evidence archive SHA256: 388b22fa1c508f3a5d569f5bf06cfab3f15f4cc7c400cdda8adaf38abead6a62.

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>
…ssertion

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>
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>
Generate a closed finite-domain Coq theorem from the actual admitted Zig body and contract. Require exact source/proof regeneration, real ECHIDNA JSON verification, a fresh compiled proof, independent coqchk and a closed-assumptions audit. Wire all replay tools and rejection controls into the existing required soundness gate. Local complete gate passes: two model proofs, ten rejection controls, a direct axiom control, and the prior frame/Idris/Agda/SMT/compiled Zig checks. Record separate local/hosted tool profiles and update R1/v1 claims. No Zig/compiler refinement or full cross-kernel claim is made; status remains INCOMPLETE.

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a1f0504 and f4c85da.

Files selected for processing: 23

  • .github/workflows/atoma.yml
  • CLAUDE.md
  • README.adoc
  • atoma_chora.deed
  • docs/audit/2026-11-07-source-replay.adoc
  • docs/audit/2026-11-07-source-replay/README.adoc
  • docs/audit/2026-11-07-source-replay/identity-assumptions.txt
  • docs/audit/2026-11-07-source-replay/increment-assumptions.txt
  • docs/audit/2026-11-07-source-replay/local-gate.txt
  • docs/audit/2026-11-07-source-replay/local-inputs.sha256
  • docs/audit/2026-11-07-source-replay/wrong-library-rejected.txt
  • docs/decisions/ATOMA-SOURCE-TO-PROOF.adoc
  • docs/decisions/ATOMA-TOOLCHAIN.adoc
  • docs/plan/ULTRAPLAN.adoc
  • docs/status/PROOF-STATUS.adoc
  • docs/status/ROADMAP.adoc
  • scripts/atoma-ci-replay-toolchain.sh
  • scripts/atoma-gate-falsifiers.sh
  • scripts/atoma-gate.sh
  • scripts/atoma-replay-gate.sh
  • scripts/atoma-replay.sh
  • tools/atoma/src/main.zig
  • tools/atoma/src/source.zig
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

K9 L0–L2 green

🟢 conformant · commit f4c85da5c939 · run 42413754191 · validator hyperpolymath/standards@b3ce78e1a8cb

Category Status Pass Fail Indeterminate N/A Since previous revision
K9 contract typecheck 🟢 conformant 1 0 0 0 ↔ unchanged
K9 validator self-test 🟢 conformant 37 0 0 0 ↔ unchanged
K9 live corpus (L0–L2) 🟢 conformant 13 0 0 0 ↔ unchanged

Scope: K9 components L0–L2 against contract v1.0.0 at the named standards commit. L3 signature verification and routed coordination-dialect files are not certified. Green is limited to this scope. Orange is missing evidence; yellow is grandfathered debt or warnings; grey is an explicit scope exclusion. report.json, badge.json and the validator logs are in the k9-grid artifact on the linked run.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Hypatia grid purple

🟣 critical · commit f4c85da5c939 · run 42413754273

Reporter Status Critical High Medium Minor Since previous revision
Hypatia scan 🔴 high 0 19 6 0 ↔ unchanged
panic-attack assail 🟣 critical 5 2 3 0 ↔ unchanged
pons asinorum 🟢 clean 0 0 0 0 ↔ unchanged
Hypatia scan: 25 finding(s)
  • high code_scanning_alerts/CSA003 — 0-AI-MANIFEST.a2ml — Code-scanning alert hypatia/root_hygiene/missing (high) at 0-AI-MANIFEST.a2ml is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA003 — .github/workflows/actions.lock — Code-scanning alert hypatia/workflow_audit/invalid_actions_lock (high) at .github/workflows/actions.lock is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA003 — .github/workflows/actions.lock — Code-scanning alert hypatia/workflow_hardening/invalid_actions_lock (high) at .github/workflows/actions.lock is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA003 — examples/atoma/frame-v1/fixtures/violations.zig — Code-scanning alert hypatia/code_safety/zig_ptr_cast (high) at examples/atoma/frame-v1/fixtures/violations.zig is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA003 — tools/atoma/src/frontend.zig — Code-scanning alert hypatia/code_safety/zig_ptr_cast (high) at tools/atoma/src/frontend.zig is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA003 — tools/atoma/src/frontend.zig — Code-scanning alert hypatia/code_safety/zig_align_cast (high) at tools/atoma/src/frontend.zig is 16 days old (threshold: 7 days) -- overdue for remediation
  • high code_scanning_alerts/CSA002 — hyperpolymath/atoma — 6 high-severity code-scanning alert(s) -- batch remediation recommended
  • high code_scanning_alerts/CSA001 — 0-AI-MANIFEST.a2ml — Code scanning (Hypatia): hypatia/root_hygiene/missing -- Hypatia root_hygiene: missing -- 16 day(s) old [STALE]
  • high code_scanning_alerts/CSA001 — .github/workflows/actions.lock — Code scanning (Hypatia): hypatia/workflow_audit/invalid_actions_lock -- Hypatia workflow_audit: invalid_actions_lock -- 16 day(s) old [STALE]
  • high code_scanning_alerts/CSA001 — .github/workflows/actions.lock — Code scanning (Hypatia): hypatia/workflow_hardening/invalid_actions_lock -- Hypatia workflow_hardening: invalid_actions_lock -- 16 day(s) old [STALE]
  • high code_scanning_alerts/CSA001 — examples/atoma/frame-v1/fixtures/violations.zig — Code scanning (Hypatia): hypatia/code_safety/zig_ptr_cast -- Hypatia code_safety: zig_ptr_cast -- 16 day(s) old [STALE]
  • high code_scanning_alerts/CSA001 — tools/atoma/src/frontend.zig — Code scanning (Hypatia): hypatia/code_safety/zig_ptr_cast -- Hypatia code_safety: zig_ptr_cast -- 16 day(s) old [STALE]
  • high code_scanning_alerts/CSA001 — tools/atoma/src/frontend.zig — Code scanning (Hypatia): hypatia/code_safety/zig_align_cast -- Hypatia code_safety: zig_align_cast -- 16 day(s) old [STALE]
  • high code_safety/zig_align_cast — tools/atoma/src/frontend.zig:221 — Zig @aligncast performs unchecked alignment cast (1 occurrences, CWE-704, line 221)
  • high code_safety/zig_ptr_cast — tools/atoma/src/frontend.zig:220 — Zig @ptrCast performs unchecked pointer type conversion (1 occurrences, CWE-704, line 220)
  • high code_safety/zig_ptr_cast — examples/atoma/frame-v1/fixtures/violations.zig:46 — Zig @ptrCast performs unchecked pointer type conversion (1 occurrences, CWE-704, line 46)
  • high workflow_hardening/invalid_actions_lock — .github/workflows/actions.lock — actions.lock failed closed: {:line, 4, {:unsupported_version, "v0.0.3"}}
  • high workflow_audit/invalid_actions_lock — .github/workflows/actions.lock — Invalid .github/workflows/actions.lock: {:line, 4, {:unsupported_version, "v0.0.3"}}. Regenerate and verify it with gh actions-lock.
  • high root_hygiene/missing — 0-AI-MANIFEST.a2ml — Required file missing
  • medium content_patterns/npx_in_workflow — .github/copilot/coding-agent.yml:3 — npx / `npm run` banned in CI -- use `bunx` or `bun run` instead (npm banned 2026-05-25; Deno banned 2026-09-22, standards LANGUAGE-POLICY §1.3)
  • 5 more; see the structured report in the artifact.
panic-attack assail: 10 finding(s)
  • critical UnboundedAllocation — scripts/strip-instruction-blocks.rs — Potential unbounded allocation pattern detected in scripts/strip-instruction-blocks.rs
  • critical UnboundedAllocation — scripts/merge-actions-lock.rs — Potential unbounded allocation pattern detected in scripts/merge-actions-lock.rs
  • critical UnboundedAllocation — scripts/prune-dependabot-ecosystems.rs — Potential unbounded allocation pattern detected in scripts/prune-dependabot-ecosystems.rs
  • critical CommandInjection — tests/e2e/julia_mint_test.sh — eval usage in tests/e2e/julia_mint_test.sh
  • critical CommandInjection — tests/workflows/self_name_pass_test.sh — eval usage in tests/workflows/self_name_pass_test.sh
  • high UnsafeFFI — examples/atoma/frame-v1/fixtures/violations.zig — 1 C interop imports in examples/atoma/frame-v1/fixtures/violations.zig
  • high UnsafeCode — examples/atoma/frame-v1/fixtures/violations.zig — 1 unsafe pointer casts in examples/atoma/frame-v1/fixtures/violations.zig
  • medium CommandInjection — scripts/check-proofs.sh — 26 potentially unquoted variable expansions in scripts/check-proofs.sh
  • medium InsecureProtocol — tests/workflows/container_kyaml_test.sh — 5 HTTP (non-HTTPS) URLs in tests/workflows/container_kyaml_test.sh
  • medium CommandInjection — tests/workflows/resolve_template_pin_test.sh — 21 potentially unquoted variable expansions in tests/workflows/resolve_template_pin_test.sh

Scope: static findings reported by each row's tool at the named commit. Purple, red, yellow and blue grade the worst finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run.

@hyperpolymath hyperpolymath changed the title Replay source-derived Zig u8 model proofs with ECHIDNA and coqchk Complete soundness gates and replay source-derived u8 proofs Nov 7, 2026
Make the documented standalone replay command work in a fresh checkout after building the CLI. A failed directory creation still exits nonzero; each individual evidence directory must still be new.

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Add Carrot credits or activate Agent usage billing to use Autofix

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a31b724d0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atoma_chora.deed Resolved
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T20:49:32.128044Z 18f0e42 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath marked this pull request as draft November 7, 2026 20:44
@hyperpolymath
hyperpolymath marked this pull request as ready for review November 7, 2026 20:46
Restate the expected theorem directly from the Zig source and reject a valid compiled theorem for the wrong model. The complete local gate passes two positive models, eleven replay rejection controls and the independent axiom control. Update proof evidence and generated identity to preserve the explicit unproved refinement boundary.

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 7, 2026 20:53
Restore the original canon 2.1.2 gates digest in the historical provenance clause while retaining canon 2.1.4 for the live audit. The complete provenance clause matches the original minted record byte for byte; generated arrival content remains unchanged.

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath hyperpolymath changed the title Complete soundness gates and replay source-derived u8 proofs Replay source-derived u8 proofs with independent theorem binding Nov 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 98433ef into main Nov 7, 2026
67 checks passed
@hyperpolymath
hyperpolymath deleted the feat/source-proof-replay branch November 7, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants