Skip to content

FEAT-105 slice 3: trust-escape ledger; pin all actions to SHAs - #250

Merged
avrabe merged 2 commits into
mainfrom
feat/105-ledger
Nov 20, 2026
Merged

avrabe merged 2 commits into
mainfrom
feat/105-ledger

Conversation

@avrabe

@avrabe avrabe commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Third slice of FEAT-105 (#207): a trust-escape ledger for scry's proofs, checked in the required Rocq Formal Proofs job.

What changes

  • proofs/trust-ledger.tsv: one row per thing the proofs rest on without proving it, origin kind where name note.
    • 10 generated rows: the Section Variable/Hypothesis premises of Poly.v, Reachable.v and StackBound.v, plus axioms reported by the kernel audit (none today).
    • 26 hand rows: each of the 20 Rocq files is a hand-written model of the Rust (rocq-of-rust is enabled but unused); 5 transfer families whose soundness rests on a concrete γ-sweep only, with sweep geometry (float arithmetic, known-bits at w = 8, pentagon dim 2, polyhedra FM dim 2, unsigned guard refinement at w = 8); the rules_verus pin on an unmerged branch.
  • tools/proof-audit ledger fails when:
    • a generated row is missing or stale (both directions);
    • a proof file has no hand-mirror row, or a hand-mirror row names a non-proof;
    • a hand row names a missing file;
    • the row count exceeds the base branch's without override<TAB><new count><TAB><reason>;
    • a premise is declared with Context (refused, since it is not parsed).
  • ci.yml, rocq-proofs job: the ledger step (baseline = the PR base's ledger; this PR introduces it, so its own run prints a notice and skips the shrink check) and a control step: an unrecorded Hypothesis must fail the ledger, and Lemma broken : 1 + 1 = 3 must be rejected by coqc.
  • 8 new unit tests (18 total), CHANGELOG.

Evidence so far

  • Local: proof-audit ledger: 36 rows (10 generated, 26 hand), baseline 36: PASS.
  • Local planted-Hypothesis control: exit 1 with generated but not in the ledger (add this row): gen section-hypothesis proofs/rocq/Lattice.v planted_h.
  • The broken-proof control and the CI ledger step run for the first time on this PR.

Also in this PR: every action pinned to a commit SHA

Org-wide owner decision (2026-11-20). The last three tag references are pinned, SHAs resolved with git ls-remote against upstream:

  • dtolnay/rust-toolchain@stable -> 39008827e6b4 (branch stable), 11 uses; each now passes toolchain: stable, since the action reads the toolchain from its ref;
  • pulseengine/rivet/.../[email protected] -> 189f020e9b36 (peeled tag);
  • pulseengine/witness/.../[email protected] -> beef955ea724 (peeled tag).

After this every uses: under .github/ is a 40-hex SHA with a version comment. check-evidence-substrate.py still reports only the scry#215 witness skew (now 3 refs rather than 2, since the action is a SHA; beef955 is the commit tagged v0.30.0). The release-only uses run first at the next tag.

Limits

The ledger checks that rows are present, not that a hand row is true: nothing compares a Rocq model with the Rust it mirrors. Still open in FEAT-105: checking required-checks.txt against the live ruleset (that tool is Python, so the change comes with a Rust port), a docs-only PR showing the Rocq context completed, and the north-star-input.O3.json release asset.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KEjmjaju7y4RBwmiuZ7Eem

avrabe and others added 2 commits November 20, 2026 12:35
…trols (#207)

proofs/trust-ledger.tsv records what the proofs rest on without proving
it. tools/proof-audit gains a `ledger` command: generated rows (Section
Variable/Hypothesis premises scanned from proofs/rocq, axioms from the
kernel audit output) must equal the file's gen rows in both directions;
each proof file needs a hand-mirror row; hand rows must name existing
files; against the base branch's ledger the row count may only grow when
an override line names the new count. `Context` is refused, not skipped.

Ledger today: 36 rows, 10 generated (Poly.v, Reachable.v, StackBound.v
premises; 0 axioms) and 26 hand (20 hand-mirror models, 5 gamma-swept
transfer families with sweep geometry, the rules_verus fork pin).

The Rocq job gains the ledger step and a second control step: an
unrecorded Hypothesis must fail the ledger (run locally: exit 1 with the
exact row), and a false lemma must be rejected by coqc. 18 unit tests.

Refs: FEAT-105

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KEjmjaju7y4RBwmiuZ7Eem
Org-wide owner decision, 2026-11-20: every action pinned to a full commit
SHA with a version comment. Resolved with git ls-remote against upstream:

- dtolnay/rust-toolchain@stable -> 39008827e6b4 (branch stable), 11 uses.
  The action reads the toolchain from its ref, so each use now passes
  `toolchain: stable` explicitly.
- pulseengine/rivet [email protected] -> 189f020e9b36 (peeled tag).
- pulseengine/witness [email protected] -> beef955ea724 (peeled tag).

After this, every `uses:` under .github/ is a 40-hex SHA with a comment.
check-evidence-substrate still reports only the scry#215 witness skew.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KEjmjaju7y4RBwmiuZ7Eem
@avrabe avrabe changed the title FEAT-105 slice 3: trust-escape ledger, shrink-only, with negative controls FEAT-105 slice 3: trust-escape ledger; pin all actions to SHAs Nov 20, 2026
@avrabe
avrabe merged commit 3b252bc into main Nov 20, 2026
14 checks passed
@avrabe
avrabe deleted the feat/105-ledger branch November 20, 2026 16:43
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.

1 participant