Skip to content

Proof receipt from the shared generator, at 15fa113; gate it in CI (31 rows PWG-2ii) - #52

Merged
hyperpolymath merged 10 commits into
mainfrom
claude/receipt-generator
Nov 18, 2026
Merged

hyperpolymath merged 10 commits into
mainfrom
claude/receipt-generator

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Do not merge yet. scripts/proof-receipt.sh pins standards commit f4e83044, which is on the standards branch claude/receipt-open-claims (metadatastician/standards#1671) and not yet on standards main. Once that lands, the pin (one commit and two sha256 values) moves to a main commit and this can go.

This branch contains #50 up to eb88c5a, so the two can land in either order without a conflict. #50 is a hand-written receipt for the same commit and run; the reader derives the same grades from both. They differ in the checker strings and in one input (see Changes).

Summary

The proof receipt is no longer written by hand. scripts/proof-receipt.sh is this repository's home script for the estate's shared receipt generator (standards scripts/proof-receipt.sh). It writes the receipt with --write and a new receipt job in proofs.yml checks it with --check on every commit.

The receipt describes 15fa113 (the merge of #45) and proofs.yml run 44209774341, in which all three legs passed.

The grades

Out of 32 theory rows the reader derives PWG-2ii for 31 and ungraded for 1 (M-2).

  • C-4b, E-1, E-2 and E-3 are PWG-2ii.
  • M-2 is a Lean bridge with no Agda statement, so it cannot reach PWG-3.
  • No row is PWG-1. Only the Rocq job runs in an image pinned by digest (PROOF-POLICY §8.2, owner ruling 2026-11-16). PN-7 records the way back: digest-pinned images for the Agda and Lean jobs, and the Lean leg under lake. That work is on its way as a separate change against main.

Changes

  • scripts/proof-receipt.sh (new): the claim list, the run ledger and the hooks that name each leg's invocation and input set. It fetches the generator, the reader, the reference digest and the git checker at one pinned standards commit and checks each against its sha256.
  • verification/receipts/resource-algebra-proofs_praxis.deed: generated at 15fa113.
  • The Lean input set gains scripts/check-lean-bridge.sh. That script holds the tropical-types pin and says of itself that a repin changes the home input digest; the hand-written manifests did not list it.
  • .github/workflows/proofs.yml: job receipt (pinned Bun by sha256, full-history checkout, --check), added to the Proofs verdict job's needs:.
  • docs/status/PROOF-STATUS.adoc, docs/status/PROOF-NEEDS.adoc, CHANGELOG.adoc: the generator, the gate, the digests it computes, and what the gate asks of a later change.
  • Two merges: main, and Proof receipt at 15fa113 (merge of #45); 31 rows PWG-2ii, M-2 ungraded #50's updated branch. Conflicts were in docs/status, CHANGELOG.adoc and the receipt, resolved to the generated receipt and the documents that describe it.

What the gate asks of a later change

A pull request that changes a leg's inputs (src/, a recheck file, the bridge, the tropical-types pin) will fail the receipt job, because that leg's current receipt no longer describes the tree. The change marks the row superseded in the ledger and regenerates the receipt, so the grades fall to what the remaining receipts support (§8.4). A follow-up records the main run of the new commit. PROOF-STATUS says this where a reader meets it.

Testing

  • Before changing anything: the generator was run against the hand-written receipt of Proof receipt at 15fa113 (merge of #45); 31 rows PWG-2ii, M-2 ungraded #50 at 2b9bf3f. The reader's output was identical for all 29 claims (after three generator fixes found by that comparison, which are in the standards PR).
  • Against Proof receipt at 15fa113 (merge of #45); 31 rows PWG-2ii, M-2 ungraded #50's receipt at 15fa113: same grades for all 32 claims; the differences are the checker strings and the extra Lean input.
  • bash scripts/proof-receipt.sh --check: exit 0, ends PASS: negative control (the first claim recorded as :pwg PWG-1 is refused: its legs support PWG-2ii).
  • Watched it fail. In a scratch worktree, each of these made --check exit 1 with the stated reason, and the baseline passed before and after: an Agda input changed; the Rocq file changed; the tropical-types pin changed; a grade hand-edited to PWG-1; a row id removed from PROOF-STATUS.
  • tests/workflows/ci_gate_test.sh: passes (the gate needs every other job).
  • scripts/check-adoc-renders.sh: all 163 tracked .adoc files render clean. check-no-md-in-docs.sh and check-no-placeholders.sh pass.
  • 21 of the 26 scripts in tests/workflows/ pass here. The other five need tools this container lacks or has in another form (nickel; a yq with the kyaml format; check_adoc_renders_test.sh fails the same way on an untouched checkout of main). CI will show them.
  • actionlint on proofs.yml: two SC2016 notices on a step this change does not touch; none from the new job.
  • Not run here: the three prover legs themselves. The receipt cites main's run on 15fa113; this change touches none of their inputs, which the gate checks.

RSR Quality Checklist

Required

  • Tests pass (see Testing; five scripts could not run here)
  • No banned language patterns (Bash only; JavaScript runs on Bun)
  • No banned functions
  • SPDX license headers present on all new source files
  • No secrets, credentials, or .env files included

As Applicable

  • Documentation updated
  • CHANGELOG updated

🤖 Generated with Claude Code

https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX

The receipt now describes source commit 2b9bf3f and proofs.yml run
44202493421. C-4b gets the same three legs as C-4a. M-2 gets a Lean leg
(LEAN-CHECKED), an unavailable Rocq leg and an open Agda leg, since the
receipt profile gives every claim an Agda source leg. The Lean job checks
the leg and the M-2 bridge in one run, so all Lean legs share one receipt,
which imports tropical-types at f2e465c (PROOF-POLICY 8.5.1).

The Rocq receipts name their digest-pinned image. The reader at standards
940a27af derives PWG-2ii for 28 rows and ungraded for M-2. No row is PWG-1:
since standards#1625, PWG-1 needs every counted checker to run in an image
pinned by digest, and the Agda and Lean legs do not yet. The earlier PWG-1
grades came from a reader that predates that rule; the proofs are
unchanged. PROOF-NEEDS gains PN-6 for the images.

check-proof-receipt.sh holds for every check, the import included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi
The Receipts table gave the Agda and Lean receipts' :inputs-sha256 but the
file SHA-256 of ResourceAlgebra.v for Rocq. It now gives the Rocq receipt's
:inputs-sha256 (608d32f3…c6eb296a5), with the file hash labelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi
Main merged #45 (E-1, E-2, E-3: the Evidence algebra and ledger status
derivation, with Rocq and Lean legs). Rather than land a receipt for
2b9bf3f that leaves three rows ungraded, the receipt now describes
15fa113, the merge of #45, from proofs.yml run 44209774341, in which all
three legs and the M-2 bridge passed.

- The Agda manifest adds Instances/Evidence.agda and Ledger.agda.
- E-1, E-2 and E-3 get the same three legs as C-4a.
- Every Lean receipt still lists the bridge with ResourceAlgebra.lean and
  lean-toolchain and imports tropical-types at f2e465c (one input digest
  per commit and prover).
- The reader at standards 940a27af derives PWG-2ii for 31 rows and
  ungraded for M-2 (32 rows); check-proof-receipt.sh holds for every check,
  the import included.

PROOF-STATUS conflicts: the census is restated for 15fa113. The E-1 row is
kept from main and graded, and the recheck-legs note no longer excepts the
E rows. PROOF-NEEDS: main's PN-6 (E-row recheck legs) stays and records
the grade; the digest-pinned image item becomes PN-7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi
Conflicts in docs/status only. PROOF-STATUS census: 32 theory rows, 28
PWG-2ii at 2b9bf3f and 4 ungraded (M-2, and E-1..E-3, which postdate the
receipt's commit). PROOF-NEEDS: main's PN-6 (recheck E-1..E-3, done in
#45) keeps its number, and the digest-pinned-images need this branch added
as PN-6 becomes PN-7; the CHANGELOG reference follows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
scripts/proof-receipt.sh is this repository's home script for the estate's
shared receipt generator (standards scripts/proof-receipt.sh): it holds
the claim list, the run ledger and the hooks that name each leg's
invocation and input set, and fetches the generator, the reader, the
reference digest and the git checker at one pinned standards commit, each
checked against its sha256. The receipt is now written by --write and
checked by --check, not by hand.

The receipt describes 15fa113 and proofs.yml run 44209774341, in which all
three legs passed. The reader derives PWG-2ii for 31 rows, among them
C-4b and E-1, E-2, E-3, which had no receipt, and ungraded for M-2 (a Lean
bridge with no Agda statement). No row is PWG-1: only the Rocq job runs in
an image pinned by digest (PN-7).

The Lean input set gains scripts/check-lean-bridge.sh, which holds the pin
of tropical-types and says of itself that a repin changes the home input
digest.

Before this, the generator was run against the hand-written receipt at
2b9bf3f: the reader's output was identical for all 29 claims.

The standards pin (f4e83044) is on the branch claude/receipt-open-claims,
not yet on standards main.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
Add a `receipt` job that runs `scripts/proof-receipt.sh --check` with a
pinned Bun (PROOF-POLICY section 8.5.1 and 8.5.3), and add it to the
`Proofs verdict` job's needs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
PROOF-STATUS, PROOF-NEEDS and CHANGELOG now describe the receipt at
15fa113 (merge of #45), run 44209774341: 32 theory rows, 31 PWG-2ii,
1 ungraded (M-2). E-1 to E-3 and C-4b are PWG-2ii. The receipt is
generated and checked by scripts/proof-receipt.sh; recording a new run
is still manual. The receipt at 2b9bf3f joins the superseded list.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
… asks of a change

The digests in the receipt table are the generator's, from git objects
with the reference script, not the run summaries' commands. A change to a
leg's inputs now fails the receipt job until the ledger marks that leg's
row superseded and the receipt is regenerated; say so where a reader will
meet it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
…tor branch

#50 merged main itself and rewrote its hand-written receipt for 15fa113
and run 44209774341, the same commit and run this branch's generated
receipt describes. Both give 31 rows PWG-2ii and M-2 ungraded, and both
number the digest-pinned-images need PN-7. The four conflicts
(CHANGELOG, PROOF-NEEDS, PROOF-STATUS, the receipt) are resolved to this
branch's side: the generated receipt and the documents that describe the
generator and its gate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX

Copy link
Copy Markdown
Owner Author

CI/gate reports "could not produce a verdict" here, and it is not this PR's.

The suite's gate (hyperpolymath/proven-cicd-and-workflows .github/workflows/ci-gate.yml, pinned at d2140a5) publishes a pending status when a workflow starts, with the description re-run started: <workflow name>. Four workflows in this repository have a name that begins with an emoji outside the Basic Multilingual Plane (🔴 GATE: Invisible Character Detection, 🟡 CHECK: Eclexiaiser Manifest Validation, 🟡 CHECK: Groove Protocol Compliance, 🤖 Rhodibot — RSR Compliance Canary). GitHub refuses such a description:

RUN_NAME: 🔴 GATE: Invisible Character Detection
gh: Validation failed: Description doesn't accept 4-byte Unicode (Validation Failed)
##[error]could not publish the re-run pending status; NO VERDICT WAS PRODUCED

(run 44214954315). So every start of one of those workflows posts a CI/gate failure, on any branch, and the context flaps until a later gate run overwrites it. This diff touches none of those workflows and does not touch ci-gate.yml.

The fix belongs in the suite, which I cannot push to. Proposed patch for the line that builds the description (tested with jq on the names above; it drops code points above U+FFFF and the space they leave):

-desc=$(jq -rn --arg n "$RUN_NAME" '"re-run started: " + $n | if length > 140 then .[0:139] + "…" else . end')
+desc=$(jq -rn --arg n "$RUN_NAME" '"re-run started: " + ($n | [explode[] | select(. < 65536)] | implode | sub("^\\s+"; "")) | if length > 140 then .[0:139] + "…" else . end')

I have not renamed the workflows here: that would be a downstream workaround for a suite bug, and their names come from the template.


Generated by Claude Code

hyperpolymath commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner Author

State at 05:15 UTC: CI/gate is green on 9ad1307 ("all 16 required checks passed"). The only red checks left are the two Hypatia jobs, which are not among the required ones. The prover legs, Proofs verdict and the new Proof receipt, derived grades, git checks job passed.

Still do not merge yet: the standards pin in scripts/proof-receipt.sh is on the branch of metadatastician/standards#1671 until that lands.

  • API quota (resolved by one re-run). gate-pr / CI gate, analyze (actions, none), the Proven suite and Squabble failed when the repository's Actions installation was out of API quota (API rate limit exceeded for installation). It happened twice tonight (around 01:18–01:34 and from 02:36 UTC). I re-ran the failed jobs once at 04:33 UTC, twenty seconds apart, with the repository quiet, and they passed.
  • Hypatia (not this PR's; cause unknown). The scanner segfaults (exit 139), here on every attempt so far. It is intermittent and not tied to this branch: the same crash shows on three other branches, and on one of them the same commit crashed twice and passed on the third attempt. The same scanner commit built locally scans this tree cleanly. The evidence is in the comment on Lean leg and M-2 bridge under lake; base images pinned by digest (does not close PN-7) #53.

Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 18, 2026 01:45
Repository owner deleted a comment from coderabbitai Bot Nov 18, 2026
Repository owner deleted a comment from coderabbitai Bot Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 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 44 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 9862866 and 9ad1307.

Files selected for processing: 6

  • .github/workflows/proofs.yml
  • CHANGELOG.adoc
  • docs/status/PROOF-NEEDS.adoc
  • docs/status/PROOF-STATUS.adoc
  • scripts/proof-receipt.sh
  • verification/receipts/resource-algebra-proofs_praxis.deed
  • 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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit e378a83 into main Nov 18, 2026
54 of 62 checks passed
@hyperpolymath
hyperpolymath deleted the claude/receipt-generator branch November 18, 2026 11:48
hyperpolymath added a commit that referenced this pull request Nov 18, 2026
…s not close PN-7) (#53)

> **Re-scoped on 2026-11-18.** This PR first said it made the Agda and
Lean jobs "isolated". The owner's ruling recorded in #51 (PN-7) says a
digest-pinned base image with the checker installed at run time is
**not** isolation: the legs earn `:image` only through prover images
that ship the checker, from the planned `prover-images` repository. So
this PR no longer claims that, and it does not close PN-7. What it does
deliver is below.

## Summary

- **Lean under lake.** PROOF-POLICY §8.2 names `lean` under `lake` as
the qualifying Lean run (owner ruling 2026-11-17). The Lean leg and the
M-2 bridge now build as Lake packages, with `lake-manifest.json`
committed as a pinned input (§8.5.1).
- **Base images pinned by digest** for the Agda and Lean jobs. This is
hygiene: the runner image under the job no longer changes without
notice. It is not the isolation §8.2 asks for, and the receipts name no
image for these legs.
- **The receipt follows the change.** Moving the Lean leg under lake
changes that leg's inputs and its checker, so the receipt gate (from
#52) refuses the old Lean run. The ledger marks it `superseded` and the
receipt is regenerated.

## Grades

Derived by the pinned reader: **31 rows PWG-2i, M-2 ungraded** (of 32).
The Agda and Rocq receipts at `15fa113` stand; the Lean legs have no
current receipt. After this merges and main's `proofs.yml` run passes, a
follow-up records that run and the rows return to PWG-2ii. No row can be
PWG-1 until PN-7 closes.

## Changes

- `verification/proofs/lean4/lakefile.toml`, `lake-manifest.json`: a
package with no dependencies, root `ResourceAlgebra`.
- `scripts/check-lean-leg.sh` (new): builds a copy with `lake build`;
fails on a failed build, on any `depends on axioms` report, on a count
of axiom-free reports that differs from the `#print axioms` commands in
the copy lake built, and on a manifest lake rewrote (it prints the
difference).
- `verification/bridges/tropical-types/lakefile.toml`,
`lake-manifest.json`; `scripts/check-lean-bridge.sh` builds the three
modules with `lake build`. The tropical-types pin and its fetch are
unchanged; there is no lake `require` on that repository. Counts and the
bridge digest come from the copy lake built.
- `tests/check_lean_leg_test.sh` (new, 5 planted failures) and
`tests/check_lean_bridge_test.sh` (6).
- `.github/workflows/proofs.yml`: Agda in
`debian:trixie-slim@sha256:a29215f6…`; Lean in
`ubuntu:24.04@sha256:73b99939…` with the sha256-checked Lean 4.35.0
archive, `lean` and `lake` versions asserted; run summaries say the base
image is pinned and the checker installed at run time; a digest that
cannot be computed fails the step.
- `scripts/proof-receipt.sh`: Lean row `superseded` with its reason;
Lean input set gains both lakefiles, both manifests and
`scripts/check-lean-leg.sh`; Lean invocation is the two lake builds.
Receipt regenerated.
- `docs/status/PROOF-STATUS.adoc`, `docs/status/PROOF-NEEDS.adoc`
(PN-7), `CHANGELOG.adoc`: the census, the superseded Lean run, and the
corrected wording on isolation.
- `.gitignore`: `.lake/`.

## Testing

Local, with Lean 4.35.0 and Lake 5.0.0:

- `scripts/check-lean-leg.sh`: `PASS: Lean leg under lake; 84 of 84
printed theorems depend on no axiom`.
- `scripts/check-lean-bridge.sh`: `PASS: M-2 bridge to
hyperpolymath/tropical-types@f2e465c…; 6 of 6 printed theorems depend on
no axiom`.
- The two tests: 5 of 5 and 6 of 6 planted failures refused for the
stated reason.
- `scripts/proof-receipt.sh --check`: exit 0, ends `PASS: negative
control (the first claim recorded as :pwg PWG-1 is refused: its legs
support PWG-2i)`.
- `scripts/check-proofs.sh lean4`, `tests/workflows/ci_gate_test.sh`,
`check-ijson-jcs.sh --enforce` (14 of 14 canonical),
`check-adoc-renders.sh` (164 files), `check-no-placeholders.sh`: pass.
- `actionlint`: only the two SC2016 notices that are on main.

In CI, on an earlier head (`d3e4651`), the Agda job, the Lean leg and
bridge under lake, Rocq and `Proofs verdict` all passed in their
containers, and `CI/gate` reported all 16 required checks passed. The
receipt job did not exist on that head; it arrived with #52.

## Review

CodeRabbit's finding that the Lean row must be superseded is done here.
Its six smaller findings are fixed in `d7213f8` and their threads
resolved.

## Not this PR's

- The Hypatia scanner's intermittent segfault (see the comment below):
it is not among the required checks.
- CI failures when the repository's Actions API quota runs out; one
re-run clears them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

- **Verification**
- Updated Lean proof and bridge checks to build with Lake and verify
axiom-free theorem reports.
- Added checks that detect build failures and unexpected changes to
dependency manifests.
- Updated verification workflows to record image, tool-version, and
input-hash details. Runtime installation of Agda and Lean checkers still
does not meet the stated image-isolation requirement.
- **Documentation**
- Updated proof-status records to mark the previous Lean receipt as
superseded; a qualifying Lake-based run is still pending.
- Clarified current proof grades and the remaining image-isolation
requirement.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath added a commit to metadatastician/standards that referenced this pull request Nov 18, 2026
…-unreconciled legs; reader: foundation-diverse needs RECONCILED (#1671)

## Summary

1. `scripts/proof-receipt.sh`: new optional hook `receipt_run_scope`
(rows `prover|run|claim ids`), so a superseded run that checked only
some claims is listed under those claims only. Needed by
hyperpolymath/januskey#186.
2. A merge of main into the branch, and a test fix: the scope test's run
rows now pass `--axioms none` and `--image`, which #1656 and #1625 made
necessary.
3. Found by generating hyperpolymath/resource-algebra's receipt with the
shared generator and comparing the reader's output with a hand-written
receipt (28 of 29 claims identical; M-2, a Lean bridge with no Agda
statement, differed):
- Generator: a claim whose token is not `proven` or
`proven-with-postulates` is now written `AGDA-PENDING` with no receipt
(it was `AGDA-VERIFIED` carrying the Agda runs).
- Generator: a recheck leg in state `COQ-CHECKED`, `LEAN-CHECKED` or
`BRIDGE-PENDING` now gets token `proven` (`proven-with-postulates` when
its run reported an axiom), not `open`, per PROOF-POLICY §2.2. It still
counts toward no grade. `COQ-CHECKED` is refused on a non-Rocq leg,
`LEAN-CHECKED` on a non-Lean leg.
- Generator: optional `RECEIPT_BEHOLDING_CHORA` (`#u8"…"` or
`#uuid"…"`), written after `:canonical-name`.
- Reader (`deed_lint.js`, `readProofReceipt`): §8.3 gives the
foundation-diverse tag to a kernel-checked witness whose correspondence
is recorded as in §2.2. The reader now also requires state `RECONCILED`.
- With these, the generator reproduces all 29 claims of
resource-algebra's receipt reader-identically.
4. `1-formats/deed/tools/README.adoc`: one sentence stating the
RECONCILED condition for the tag. PROOF-POLICY §8.3/§8.5 already say
this and needed no change.

Waiting on this: hyperpolymath/januskey#186 and
hyperpolymath/resource-algebra#52. Note the branch head is now `340f546`
(docs commit on top of `f4e8304`), so pins taken at `f4e8304` still hold
the code unchanged.

## Tests (real output)

- `bash scripts/tests/proof-receipt-test.sh`: `131 passed, 0 failed`
- `bash scripts/tests/check-proof-receipt-test.sh`: `20 passed, 0
failed`
- `cd 1-formats/deed/tools && bun test deed_lint.test.js`: `337 pass, 0
fail`

---
_Generated by [Claude
Code](https://claude.ai/code/session_01J4QvDfoDA4uk25z9qQLeWv)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath added a commit to hyperpolymath/mathesis that referenced this pull request Nov 18, 2026
…ipt (#115)

## Why

Mathesis pins the standards proof-receipt reader at `e5a39d7`. That
reader cannot read `(import …)` clauses, which resource-algebra's M-2
needs. The resource-algebra receipt that records M-2 now comes from
hyperpolymath/resource-algebra#52, which supersedes #50. The reader on
standards main (`940a27af`) can read those clauses. It also applies
standards#1625 (owner ruling 2026-11-16): PWG-1 needs every counted
checker to have run in a container image pinned by digest, named on the
receipt.

The owner chose to bump now and show the honest state.

## What

**Reader pin.** `scripts/registry/claims-registry.mjs` sets
`READER.commit` to `940a27af`, with the reader and checker digests
updated (`proof-inputs-sha256.sh` is unchanged). `agda-proof-policy.yml`
and `proven-tests.yml` fetch the same commit.

**Mathesis's own receipt** (`verification/receipts/theory_praxis.deed`)
is recorded again, with no new run. The new reader refused it for two
reasons:
- `:beholding-chora` used a `#u5` literal (owner ruling Q2). It now uses
the canon form `#u8"chora:estate/github.com/hyperpolymath"`, the same
value resource-algebra's receipt uses.
- The proof lanes run in the pinned Guix shell, not a digest-pinned
image, so the reader derives **PWG-2ii** for THY-1 and APP-1 to APP-4.
The grades are recorded, and PROOF-STATUS and the receipt header give
the reason.

**Registry views** are rebuilt under the new reader. The new reader
refuses every receipt that `claims.jsonl` pins, so **all 44 theorems
show `ungraded`**, each with the reader's reason:

| Repository | Pinned receipt | Why the reader refuses it |
|---|---|---|
| resource-algebra | at `47de4a8` | records PWG-1 where the reader
derives PWG-2ii |
| mathesis | at `58ebefb` | `#u5` `:beholding-chora` |
| secret-types | | records PWG-1 where the reader derives PWG-2ii |
| lintel | | `#u5` `:repo-uuid` |

The mathesis pin is `58ebefb` since #114.

**Theory ledger.** Main's #114 added entry 4. This PR appends entry 5:
THY-1's change to `ungraded` under the new reader, as at the `e5a39d7`
bump (`seq 2`). The append-only check against main passes.

**Test fixture** gains an `image` option. PWG-1 holds with an image, and
a new negative case shows that a recorded PWG-1 without one is refused
(PWG-2ii).

## Still to come (follow-ups, not this PR)

- **After resource-algebra#52 merges:** re-pin resource-algebra's rows
to its receipt at `15fa113`, which gives PWG-2ii for 31 rows. Then add
C-4b, E-1, E-2, E-3 (PWG-2ii) and M-2. M-2 is a Lean-only bridge with an
`(import …)` of tropical-types, so it is ungraded. #52 waits on
metadatastician/standards#1671.
- **After this merges:** move mathesis's own five pins to the
re-recorded receipt.
- **secret-types and lintel:** their rows move when each home repository
re-issues its receipt (a task is queued).

## Testing

- **CI on `d26444a`:** every check passes, including the Guix proof lane
"Agda, Rocq and Lean in the pinned Guix" and `CI/gate`.
- **Locally,** with `MATHESIS_STANDARDS` at standards `940a27af`:
- `claims-registry.mjs check` reports PASS: the views match, and the
theory ledger is current and append-only (5 entries).
  - `bun test tests/registry`: 26 of 26 pass.
  - The census tests and the catalogue diff pass.
  - asciidoctor renders `PROOF-STATUS.adoc`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

3 participants