Skip to content
Open
15 changes: 15 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning].

==== Added

* `scripts/registry/receipt-from-run.mjs` (`just receipt-from-run`, `just
receipt-pin`) moves the receipt of Mathesis to a green Proof Policy Gate run
on `main`. It writes one new current receipt per leg. It supersedes the old one
with a stated reason, in the shape of the earlier superseded receipts: no
digest, manifest or axioms (owner ruling 2026-11-17). Each receipt's fields
come only from the run's job log
(PASS line, file SHA-256, axiom report, checker versions, Guix commit) and
from git (manifests from the pinned `proof-inputs-sha256.sh`). It refuses:
a run that is not a green push on `main`, a log SHA-256 that git does not
hold, an audit that inspected nothing, a report in an earlier gate's form (one
that audits no definition, audit finding 31, or a Rocq report without the
`coqchk -o` kernel check of #107), and a move backwards. Nothing is
written until the canon reader and `check-proof-receipt.sh` accept the
result. The script never writes a grade. Tests:
`tests/registry/receipt-from-run.test.mjs`.
* The 27 `hyperpolymath/resource-algebra` claims move their pin to `a17ffb6`
(2026-11-17), whose receipt describes `47de4a8`, the merge of
hyperpolymath/resource-algebra#36. F-5 now names `maps-disagree-at-positive`,
Expand Down
14 changes: 14 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,20 @@ registry-check:
receipt-check:
bun scripts/registry/claims-registry.mjs receipt

# PROOF-POLICY §8.4 rules 2, 4 and 5: a new current receipt per leg, from the
# run's log and git, and the old one superseded because WHY. It writes only what
# the canon reader and the git checker accept, and never a grade. Add --dry-run
# to look first. Needs MATHESIS_STANDARDS (as above) and origin/main with its
# history. Example: just receipt-from-run 44105371764 "whose gate audits definitions" --dry-run
# Move the receipt of Mathesis to green Proof Policy Gate run RUN on main
receipt-from-run run why *flags:
bun scripts/registry/receipt-from-run.mjs receipt --run {{run}} --why {{quote(why)}} {{flags}}

# COMMIT must hold the new receipt. Then regenerate the views: just registry
# Pin the claims of the receipt of Mathesis to COMMIT and that file's SHA-256
receipt-pin commit *flags:
bun scripts/registry/receipt-from-run.mjs pin --at {{commit}} {{flags}}

# Append each change of the theory shelf to docs/theory/ledger.jsonl, the only
# way the ledger changes (needs MATHESIS_STANDARDS, as above). A note tells the
# story: just theory-ledger "THY-2 admitted after its Lean leg landed"
Expand Down
11 changes: 11 additions & 0 deletions docs/status/PROOF-STATUS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- just c

# The planted controls: each must fail the gate
bash tests/proofs/gate_controls_test.sh agda

# Move the receipt to a green Proof Policy Gate run on main, then pin the
# claims to the commit that holds it (scripts/registry/receipt-from-run.mjs).
# Look first; the second run writes the receipt, and nothing that the canon
# reader and the git checker refuse. Commit it, then pin the claims to that
# commit and regenerate the registry view.
just receipt-from-run RUN "why the new receipt replaces the old one" --dry-run
just receipt-from-run RUN "why the new receipt replaces the old one"
git commit -S -m "proofs: move the receipt to run RUN" verification/receipts/theory_praxis.deed
just receipt-pin "$(git rev-parse HEAD)"
just registry
----

== Changelog
Expand Down
10 changes: 10 additions & 0 deletions docs/status/ROADMAP.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,13 @@ scheduled census, a view of what each repository owes
the source of generated Agda; proofs in Agda, Rocq and Lean; three pull
requests; the laws of the integer instance proved in the second pull
request.
* Receipt moves (2026-11-17), through the selector:
** A superseded receipt keeps the shape of the earlier ones: `:run`,
`:commit`, `:checker`, `:invocation`, `:state` and `:reason`. It keeps no
digest, manifest or axioms. Git keeps them at the receipt's earlier commit.
** The run-to-receipt logic lives here for now
(`scripts/registry/receipt-from-run.mjs`).
** Next action, outside this repository: port its general parts (run check,
log reading, manifest, supersession) to the shared §8.5.1 receipt generator
in `metadatastician/standards`, which the owner ruled on 2026-11-16 should
come first. Mathesis then keeps only its lane names and pins that generator.
Loading
Loading