Skip to content

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

Open
hyperpolymath wants to merge 10 commits into
mainfrom
claude/receipt-generator
Open

hyperpolymath wants to merge 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

More failures on this PR's heads; none is its own. The prover legs, Proofs verdict and the new Proof receipt, derived grades, git checks job all passed.

  • API quota. gate-pr / CI gate, analyze (actions, none), the Proven suite and Squabble fail when the repository's Actions installation is out of API quota (gh: API rate limit exceeded for installation). This is a second cause for a red gate, separate from the emoji one in my earlier comment. It has happened twice tonight (around 01:18–01:34 and from 02:36 UTC).
  • Hypatia (corrected twice; this is the current state). The scanner segfaults (exit 139). It is not this branch's content: the same scanner commit built locally scans this tree cleanly. It is not this PR alone: the workflow's run list shows the same crash on three other branches in the same busy windows, with passes in between. I do not know what in CI causes it. The evidence is in the comment on Run the Agda and Lean legs isolated: digest-pinned images, Lean leg and M-2 bridge under lake (PN-7) #53.

I will re-run the failed jobs once when the repository is quiet.


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

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