Repository navigation
proofs: machine-readable proof receipt (PROOF-POLICY §8.5.1); grades derived - #181
Conversation
…derived Adds verification/receipts/januskey_praxis.deed in the proof-receipt profile merged in standards#1450, written by scripts/proof-receipt.sh from two typed ledgers (claims; CI runs copied from their logs) and git (input sets, file SHA-256s, §8.5.1 digests, the resource-algebra import). `proof-receipt.sh --check` (just test-receipt; new agda-proofs.yml job) regenerates and diffs, runs the standards reader pinned by commit and SHA-256 (it derives each grade and refuses an overstated one), runs the §8.5.3 git checker, and warns when a leg's inputs change after the receipt's source commit. The receipt describes b503488 on main (run 43213340167). The reader derives T-1 PWG-1 (Agda, Rocq and Lean receipts all at the source commit) and G-1, T-2, T-3, E-1m PWG-3. PROOF-GRADES.adoc and PROOF-NEEDS.adoc cite it, drop "receipt pending re-run", and mark runs 42736066407 and 42076969251 superseded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GVPPsHYqVJSoPzdNYD9tRg
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 14a139d6fe
ℹ️ 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".
| now="$(digest_of "$(inputs "$p" HEAD | manifest . HEAD)"$'\n')" | ||
| was="$(digest_of "$(inputs "$p" "$commit" | manifest . "$commit")"$'\n')" |
There was a problem hiding this comment.
Track checker files when deciding receipt freshness
When scripts/check-agda.sh, scripts/scan-postulates.sh, scripts/check-recheck.sh, or the relevant workflow changes without a proof-source change, these two digests remain equal because inputs() includes only proof files (plus the sibling-fetch script). The receipt job therefore prints that every receipt is fresh and passes, even though the updated documentation explicitly says a changed checker must re-earn its receipt; include the checker inputs in this comparison or check them separately.
Useful? React with 👍 / 👎.
…gs branch #181 made the grades derived: verification/receipts/januskey_praxis.deed is the receipt of record, and the pinned standards reader derives T-1 at PWG-1 (all three witnesses checked at b503488) and G-1, T-2, T-3, E-1m at PWG-3. This branch now follows that model instead of its own "PWG-3, awaiting PWG-2ii" wording: - PROOF-GRADES takes main's page and re-applies this branch's sections: the legs of all five rows, the comparison row by row, the residual differences, the non-vacuity twins and the pins. The leg record says which receipts exist: T-1's in the deed; none yet for the other four, which join the claim list once a main run has checked them. - PROOF-NEEDS keeps main's prose and census; the four rows' ledger cells say their legs are not yet in the receipt. - STATE and READINESS still said T-1 was PWG-2ii on main; they now state the derived grades. proof-receipt.sh --check passes (it warns, as expected, that T-1's Rocq and Lean inputs changed after b503488). check-agda, check-recheck, dashboard-check (144 tests, 12 PROVEN) and the 17 recorded digests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX



Summary
This follows #174 and metadatastician/standards#1450, which added the proof-receipt profile. januskey's grades were in prose tables only, and they still said "receipt pending re-run". This PR adds the machine-readable receipt. The pinned standards reader derives the grades from it, and mathesis can read them from it.
Changes
verification/receipts/januskey_praxis.deed(new): a praxis deed with:profile proof-receipt(PROOF-POLICY §8.5.1). It holds:(trusted-base …): the fourAgda.Primitiveprimitives, each with itsBUILTINbinding (§8.4);(claim …)each for G-1, T-1, T-2, T-3 and E-1m;(inputs-manifest …)and(axioms)on every current receipt;(import …)ofhyperpolymath/resource-algebraatcf9235c;scripts/proof-receipt.sh(new) writes the receipt.scripts/fetch-siblings.sh. A repin therefore changes the Agda digest.unavailable. This matchesPROOF-GRADES.adoc, which records those legs as "not attempted".--check(just test-receipt, and a newagda-proofs.ymljob "Proof receipt, derived grades, git checks") does four things:513cba8and checks each file's SHA-256. The reader then derives every grade and refuses one the receipts do not support.check-proof-receipt.sh, the §8.5.3 git checks. It needs a full clone, so the job checks out withfetch-depth: 0.::warning::when a leg's inputs have changed since the source commit. A stale receipt is still true of the commit it names.uses:entry is added, soactions.lockis unchanged.PROOF-GRADES.adocandPROOF-NEEDS.adoc:b503488;superseded;SingleActiveLog.agda, and update the cone (7 first-party modules and 8 supplied with the prover).Grade change: T-1 goes from PWG-2ii to PWG-1 (derived, not asserted)
Run 43213340167 checked all three of T-1's witnesses at the receipt's source commit
b503488: the Agda job and the Rocq and Lean recheck job. Each has a pinned checker and no axioms. That is the §8.2 condition forPWG-1, and the reader derives it. The other four claims stayPWG-3.Census (denominator 5):
PWG-34 ·PWG-2i0 ·PWG-2ii0 ·PWG-11 ·ungraded0.The Rocq checker is
coq=8.18.0+dfsg-1build2on an ephemeralubuntu-24.04runner, not inside a digest-pinned container. secret-types'PWG-1receipt makes the same choice. If you read §8.2's "isolated" more strictly, T-1 would have to stay atPWG-2ii, and this needs your call.Testing
bash scripts/proof-receipt.sh --checkPWG-3, T-1PWG-1, T-2PWG-3, T-3PWG-3, E-1mPWG-3. Every §8.5.3 check holds, including the import atcf9235cscripts/proof-inputs-sha256.shfrom standards)6e17ce4a…)PWG-2i)PWG-2ii)Rollback.lean)::warning::the lean inputs changed after b5034884dbe9…shellcheck scripts/proof-receipt.shasciidoctor --failure-level WARNon both docsThis PR changes no Agda, Rocq or Lean file and does not change
check-agda.shorcheck-recheck.sh, so the receipt still describesmain. The new CI job is this PR's own test.Not in this PR
tests/reject-*are already refused by the gates. Recording them as(control …)needs each fixture's own input set, for exampleForwardRollback.vtogether withRollback.v. That is follow-up work.Generated by Claude Code