Skip to content

feat(proofs): write the machine receipt of THY-1 (WO 1.5) - #58

Merged
hyperpolymath merged 1 commit into
mainfrom
marina/eager-dijkstra-wlmapg
Nov 10, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
marina/eager-dijkstra-wlmapg

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Work order 1.5 of docs/proposals/mathesis-re-anchoring.adoc. Mathesis now has the PROOF-POLICY §8.5.1 machine receipt for its one theory theorem, THY-1.

Changes

  • verification/receipts/theory_praxis.deed, written from the THY-1 record. The canon reader (standards be39f90, deed_lint.js --proof-receipt-json) derives PWG-2ii, the grade in PROOF-STATUS.adoc. It refuses the same receipt when it records PWG-1. Each receipt says it is a local run, because no CI lane has given one yet; that is why the grade is not PWG-1.
  • Trusted base: agda --dependency-graph puts Agda.Primitive in the cone of FeatureReachability. It postulates exactly Level, lzero, lsuc and _⊔_, each bound by BUILTIN. The THY-1 record said the cone was the module alone; it now names Agda.Primitive (§8.4).
  • CI validates every verification/receipts/*_praxis.deed with the canon reader. The canon pin of the other checks (8e48b1c) predates the reader, so this step has its own pinned, sparse checkout.

Not done here: the claim hyperpolymath/mathesis#THY-1 in the registry. The registry's own parser reads only the older quoted receipt shape, so it would show THY-1 as ungraded. WO 2.2 moves the registry to the canon reader, and the claim lands with it.

RSR Quality Checklist

Required

  • No banned language added
  • SPDX header on the new file

Testing

  • The canon reader reads the receipt and derives PWG-2ii; a tampered PWG-1 copy fails with exit 1.
  • .github/hooks/validate-deed.sh with the pinned canon: passes.
  • just validate-repo-map: up to date.

Generated by Claude Code

verification/receipts/theory_praxis.deed is the PROOF-POLICY 8.5.1 receipt
of THY-1, written from its record in PROOF-STATUS.adoc. The canon reader
(standards be39f90, deed_lint.js --proof-receipt-json) derives PWG-2ii from
it, the grade PROOF-STATUS records, and refuses the same receipt when it
claims PWG-1. Each receipt says it is a local run, because no CI lane has
given one yet; that is why the grade is not PWG-1.

- The trusted base is the Agda.Primitive block: agda --dependency-graph
  puts Agda.Primitive in the cone of FeatureReachability (checked
  2026-11-10), and it postulates exactly Level, lzero, lsuc and _⊔_, each
  bound by BUILTIN. The THY-1 record said the cone was the module alone;
  it now names Agda.Primitive (PROOF-POLICY 8.4).
- CI validates every verification/receipts/*_praxis.deed with the canon
  reader. The canon pin of the other checks (8e48b1c) predates the reader,
  so this step has its own pinned, sparse checkout.

Not done here: the claim hyperpolymath/mathesis#THY-1 in the registry. The
registry's own parser reads only the older quoted receipt shape, so it would
show THY-1 as ungraded. WO 2.2 moves the registry to the canon reader; the
claim lands with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZnDRsCLfZcFcEzvPcM
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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 marked this pull request as ready for review November 10, 2026 18:36
@hyperpolymath
hyperpolymath merged commit c527480 into main Nov 10, 2026
46 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

hyperpolymath added a commit that referenced this pull request Dec 1, 2026
…ceipt (#133)

## Summary

Re-pin the nine `hyperpolymath/secret-types` claims (N-1 to N-9, lines
1-9 of `docs/atlas/claims/claims.jsonl`) to the re-issued receipt, and
regenerate `docs/atlas/generated/registry.adoc`.

| Field | Old | New |
|---|---|---|
| `source_commit` | `4ed067220f1357b37f7d54c5ae0690ff35b292bd` |
`0bce5bda840cdbdf91e191608b7aafe38a5f9489` |
| `receipt.sha256` |
`4ed7e550e399074cc8a93bd190f193a0fea78de97d54e27889263b9d386ce9cc` |
`ecbddcdcc7b1be46542567d624ab955ba1407a9ae2a4d38cf1183cca7e0cb122` |

`source_commit` is the home-repo commit at which the receipt is fetched
and hashed (ADR 0004; `loadReceiptBytes` in
`scripts/registry/claims-registry.mjs`). `0bce5bd` is secret-types PR
#58, the commit where `verification/receipts/agda_praxis.deed` last
changed. The receipt is byte-identical at current main `c772168d`.

## Why

The secret-types receipt was re-issued (#57, #58). The reader at
standards 940a27af accepts it and derives PWG-1 for N-1, N-2, N-3, N-7,
N-8 and N-9. N-4, N-5 and N-6 are demonstrations with no claim in the
receipt, so they stay `ungraded` by kind.

The registry view shows those six as `PWG-1` where it showed `ungraded`
before (the old receipt recorded PWG-1 but its legs supported PWG-2ii).

## Changes

- `docs/atlas/claims/claims.jsonl`: only `source_commit` and
`receipt.sha256` on lines 1-9; still JCS-canonical.
- `docs/atlas/generated/registry.adoc`: regenerated with `bun
scripts/registry/claims-registry.mjs build` (not hand-edited).
- Lintel rows are deliberately left alone until lintel records its first
main run (its #31 merged at 434228b with the receipt still `ungraded`).
- The `READER` pin in `claims-registry.mjs` is unchanged (standards
84c2d1c1); it derives PWG-1 for the new receipt, so no bump was needed
here. The 940a27af reader was not run by this PR.

## Testing

Run with Bun, `MATHESIS_STANDARDS` = standards checkout at the pinned
reader commit 84c2d1c1 (receipts and git checks fetched over the
network):

```
bun scripts/registry/claims-registry.mjs check
PASS: claims registry derived from 5 pinned source(s); views match (54 claims, 3 bridges, 1 admissions); the theory ledger is current and append-only (6 entries)
bun scripts/registry/theory-ledger.mjs verify
PASS: the theory ledger matches the admissions and the claim pins
bun test tests/registry/   -> 107 pass, 0 fail
bun scripts/atlas/census-atlas.mjs check
PASS: generated atlas matches census
bun test tests/atlas/census-atlas.test.mjs -> 14 pass, 0 fail
bash scripts/check-ijson-jcs.sh --enforce
ijson-jcs: 26 file(s) checked, 26 canonical, 0 not canonical, 0 invalid; 2 JSONC carve-out(s) skipped
```

Not run: the full `just check` (`just` and the pinned Guix shell are
unavailable here), so `catalogue-check`, `applied-check`,
`ultraplan-check`, `adr-check`, `repo-files-test`, `site-check`,
`check-proofs` and `receipt-check` were not run. This change touches
none of their inputs.

## Checklist

- [x] No banned languages; Bun only
- [x] Generated view regenerated, not hand-edited
- [ ] Full `just check` in the pinned Guix (CI)

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

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

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

## Summary by CodeRabbit

* **Documentation**
* Updated nine claim records to reference a different receipt digest and
source commit. Claim identifiers, statements, and statuses remain
unchanged.
* **No user-facing changes**
  * This update does not change product functionality.

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

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