Skip to content

fix(proofs): re-pin secret-types to main, refresh the stale receipt, wire the leg self-tests - #27

Closed
hyperpolymath wants to merge 2 commits into
mainfrom
claude/new-session-j19hed
Closed

hyperpolymath wants to merge 2 commits into
mainfrom
claude/new-session-j19hed

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Agda proofs has been red on main since #23 merged (run 42740256887: grade-receipt.sh --check fails).

CodeRabbit pushed three commits onto that branch (37118f1, 0a82463 and 72fac08). None of them ran CI: each hit startup_failure. The docstring commit changed Lintel.v, Instance.lean and Lattice.lean but did not regenerate the receipt. The test commit added two self-tests that nothing runs, and both fail against the bot's own later fix.

This PR also moves the secret-types pin off a commit from a closed PR.

I reviewed all three bot commits:

  • The docstrings are comments only. Each one is accurate to its definition.
  • The 72fac08 fix is sound and stricter: every counted leg must be RECONCILED, and a Lean build failure now prints its own diagnostics.

Changes

  • Re-pin hyperpolymath/secret-types from 45046c2 to 9fb8430, its main.
  • Receipt regenerated with the new sibling commit and module digests, plus the three leg inputs the docstrings changed.
  • grade-receipt.sh:
    • Correspondence rows are deduplicated again (sort -u), so a claim that spans two rows passes, as it did before 72fac08. Rows that disagree on a state still fail.
    • A missing record now fails with a named error instead of awk's bare exit 2.
  • Self-tests: tests/check-legs-test.sh and tests/grade-receipt-legs-test.sh now expect the "does not build" message and the two-state record rows. They also cover PENDING and stateless rows, and both run in the legs job.

RSR Quality Checklist

Required

  • Tests pass. Run locally: fetch-siblings.sh, grade-receipt.sh --check, and the four self-tests (check-coverage-test.sh, legs-receipt-test.sh, check-legs-test.sh, grade-receipt-legs-test.sh).
    • Not run locally: check.sh (Agda) and check-legs.sh (Coq and Lean). No provers are installed in this container, so CI is the evidence for those.
    • check-lock-sync.sh needs gawk, which isn't installed here either. The workflow change adds run: steps only, no uses:.
  • No banned language patterns; the changes are bash and AsciiDoc.
  • No banned functions.
  • SPDX headers unchanged.
  • No secrets.

As Applicable

  • Documentation updated: README, PROOF-STATUS.

Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Proof receipt checks now catch missing, conflicting, or inconsistent records, while accepting repeated identical entries.
    • Lean build failures now receive a distinct diagnostic.
  • Tests
    • Expanded checks cover correspondence between claims and both proof legs, including discrepancies in either record.
  • Documentation
    • Updated proof comparison review status and source revision details.

…wire the leg self-tests

Main has been red since #23 merged. Three commits that CodeRabbit pushed
onto the branch never ran CI (each hit startup_failure). One of them
added docstrings to Lintel.v, Instance.lean and Lattice.lean without
regenerating the receipt, so `grade-receipt.sh --check` fails on main.

- Re-pin hyperpolymath/secret-types from 45046c2 to 9fb8430, its main.
  45046c2 was a commit on secret-types#29, which closed without merging
  (the work merged as #30, #32 and #34). Main's leg sources are
  byte-identical to the old pin. Its Agda differs only inside the
  cubical-compatible proof of Noninterference.Generic and its Prelude
  helper, and Lintel uses neither changed name. Module headers, README
  and PROOF-STATUS follow, and the open re-pin item is closed.
- Regenerate verification/receipts/agda-pwg_praxis.deed: the new sibling
  commit and module digests, and the three leg inputs the docstrings
  changed.
- grade-receipt.sh: deduplicate correspondence rows again (`sort -u`), so
  a claim that spans two rows passes, as it did before 72fac08. Rows that
  disagree on a state still fail. A missing record now gets a named error
  instead of awk's bare exit 2.
- tests/check-legs-test.sh and tests/grade-receipt-legs-test.sh were
  committed by the bot but never run, and both failed against its own
  later fix (72fac08). They now expect "does not build" and the
  two-state record rows, cover PENDING and stateless rows, and run in the
  legs job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYbQRtNu216R13jtZLmoqs
Copilot AI balanced review requested due to automatic review settings November 16, 2026 18:14

This comment was marked as low quality.

Copy link
Copy Markdown
Member Author

CI on 9980365: Agda proofs passes, including the legs job with the two newly wired self-tests, and so do Estate Rules, Lock Sync and the other gates. Main's proofs workflow has been red since #23, so this restores it.

Three workflows are red, and none of them is this PR's:

  • .github/workflows/governance.yml
  • .github/workflows/main-estate-audit.yml
  • .github/workflows/rust-ci.yml

Each finishes at zero seconds with no jobs, so GitHub rejects the workflow before it starts. The same three fail the same way on main: governance.yml failed at 42740256215, on the #23 merge.

All three call a reusable workflow across owners, from metadatastician/lintel into hyperpolymath/standards (e16a231) or hyperpolymath/cicd-suite (55556cf). This PR doesn't touch any of them. No fix exists yet; it needs either repository access settings or callers re-pointed. I'm raising that separately and not widening this PR.


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T19:46:41.609751Z
We couldn’t complete this review. Comment @codex review to try again.
9980365 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@metadatastician metadatastician deleted a comment from coderabbitai Bot Nov 16, 2026
…ison

The owner reviewed the Rocq and Lean legs' statement comparison against
the Agda theorems on 2026-11-16 (estate doctrine 4), so the docs and the
receipt no longer call it provisional, and it leaves the Open list.
The comparison stays a human check: no tool checks it.

The receipt's :review line comes from scripts/grade-receipt.sh, changed
at the source; --check passes on the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYbQRtNu216R13jtZLmoqs
Copilot AI balanced review requested due to automatic review settings November 16, 2026 22:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates the pinned secret-types revision and refreshes the proof receipt. It records the legs comparison as owner-reviewed and adds checks for missing, duplicate, malformed, or inconsistent leg correspondence records.

Changes: Proof pin and receipt

Layer / File(s) Summary
Update the secret-types pin
scripts/fetch-siblings.sh, src/Lintel/*.agda, README.adoc, docs/status/PROOF-STATUS.adoc
The configured and documented secret-types revision changes from 45046c2 to 9fb8430.
Record review status and proof inputs
verification/receipts/agda-pwg_praxis.deed, verification/legs/README.adoc, README.adoc, docs/status/PROOF-STATUS.adoc, scripts/grade-receipt.sh
The documentation and receipt record owner review dated 2026-11-16. The receipt updates its source revision and proof input hashes.
Validate leg correspondence records
scripts/grade-receipt.sh, tests/grade-receipt-legs-test.sh, tests/check-legs-test.sh, .github/workflows/proofs.yml
The checker deduplicates recorded leg entries and reports an error when the correspondence file is missing. Tests cover duplicate, missing, malformed, conflicting, and non-reconciled rows. The workflow runs the leg-check and receipt-leg self-tests.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Possibly related PRs

  • metadatastician/lintel#23: It introduced the leg checker, correspondence record, and secret-types pin that this pull request updates.
  • metadatastician/lintel#24: It changes Lintel Agda sources and the secret-types pin that this pull request also updates and records in the receipt.

Suggested reviewers: metadatastician

Merge Risk: Minimal · up to b2e79

This change re-pins the sibling dependency, refreshes the proof receipt and adds stricter checks on leg correspondence records. No concrete merge-blocking risk was found in the supplied changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: re-pinning secret-types to main, refreshing the stale receipt, and wiring the leg self-tests. The changeset matches each of these parts. The title is long but specific…
Description check Passed The description follows the template sections: Summary, Changes, and an RSR Quality Checklist with Required and As Applicable items, plus the Testing content inside the checklist. It explains the fail…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: re-pinning secret-types to main, refreshing the stale receipt, and wiring the leg self-tests. The changeset matches each of these parts. The title is long but specific and not vague.

Full details: Description check

Explanation

The description follows the template sections: Summary, Changes, and an RSR Quality Checklist with Required and As Applicable items, plus the Testing content inside the checklist. It explains the failure, the re-pin reason, and the receipt and script changes. It gives local test results and notes that some checks (check.sh, check-legs.sh, check-lock-sync.sh) were not run. The template's standalone Testing and Screenshots headings are absent, and the Screenshots section is not addressed. The checklist omits the items for tests and linter results on the Lean/Agda side, but the content is substantive.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d7bdc21 and b2e79d2.

Files selected for processing: 12

  • .github/workflows/proofs.yml
  • README.adoc
  • docs/status/PROOF-STATUS.adoc
  • scripts/fetch-siblings.sh
  • scripts/grade-receipt.sh
  • src/Lintel/Composition.agda
  • src/Lintel/Instance.agda
  • src/Lintel/Lattice.agda
  • tests/check-legs-test.sh
  • tests/grade-receipt-legs-test.sh
  • verification/legs/README.adoc
  • verification/receipts/agda-pwg_praxis.deed

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

hyperpolymath pushed a commit that referenced this pull request Nov 17, 2026
…types to main; legs in a pinned image

Owner rulings 2026-11-17: the estate keeps one receipt generator, the one
standards#1620 merged (scripts/proof-receipt.sh), so this PR moves onto it
instead of the writer of the closed standards#1626; Lintel#27's re-pin joins
this PR; and the legs run in an image pinned by its digest (PROOF-POLICY §8.2,
isolation, ruling 2026-11-16).

- scripts/grade-receipt.sh: Lintel's ledgers and hooks only (claims, runs,
  echoes, invocations, input sets, imports from the secret-types checkout,
  status ids, recorded legs), sourcing the shared generator.  Four standards
  files pinned at 58362c2 by sha256.  Sourced, it defines the hooks and runs
  nothing, so tests can call them.  verification/receipts/proof-receipt.toml
  goes with the #1626 writer.
- Re-pin hyperpolymath/secret-types 45046c2 -> 9fb8430 (its main), from #27:
  fetch-siblings.sh, the module pin headers, README and PROOF-STATUS.  Leg
  sources are byte-identical; Agda (scripts/check.sh) passes locally against
  the new pin with Agda 2.6.4.3.
- The receipt: the re-pin changed every leg's inputs, so run 42740256887 (89ceac3)
  is superseded and nothing is graded until the first run on main after this
  is recorded.  Its legs ran on a bare runner, so they supported PWG-2ii at most.
- proofs.yml: the legs job runs in ubuntu:24.04@sha256:73b99939...; it also runs
  tests/check-legs-test.sh (with #27's fix for the "does not build" stage).  The
  Agda job fetches the pinned standards files for the trusted-base gate.
- scripts/check-trusted-base.sh compares the cone with the generator's hooks
  (--inputs agda, --sibling-cone) and the scan with proof_trusted_base
  (scripts/proof-flags.sh), which the receipt writes.
- tests/legs-receipt-test.sh tests Lintel's hooks; the comparisons that use
  them are the shared generator's, tested in standards.
- Docs state that the grade is derived from the receipt and is pending the next
  run; the statement comparison stays provisional until the owner reviews it.

Checked locally: grade-receipt.sh --write/--check (pinned reader, git checks of
§8.5.3, negative control), check-trusted-base.sh (and a refusal with lsuc
dropped), check.sh with Agda 2.6.4.3, the hook, check-legs, coverage and
lock-sync tests, invisible-character and dangerous-pattern scans.

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

Copy link
Copy Markdown
Member Author

Closing this in favour of #31. The owner chose on 2026-11-17 to land Lintel's receipt work as one PR, and #31 now includes this PR's changes:

Thank you for the re-pin analysis. The byte-identical leg sources, and the cubical-compatible changes that Lintel doesn't use, made the re-pin safe to carry over.


Generated by Claude Code

auto-merge was automatically disabled November 17, 2026 11:48

Pull request was closed

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.

4 participants