Skip to content

fix(receipt): re-hash leg inputs edited after #23's receipt - #32

Closed
hyperpolymath wants to merge 1 commit into
mainfrom
claude/lucid-turing-q03zj3
Closed

hyperpolymath wants to merge 1 commit into
mainfrom
claude/lucid-turing-q03zj3

Conversation

@hyperpolymath

Copy link
Copy Markdown
Member

Summary

Agda proofs / Lattice laws, pinned sibling, controls and expected rejections has been red on main since 89ceac3 (#23, run 42740256887). Every PR based on main inherits the failure, including #29 and #30. Neither of those PRs touches proof code.

The lattice laws are not what fails. Agda, the pinned sibling (secret-types 45046c2, fetched and checked), the 5 positive controls, the 4 expected rejections and the negative control all pass. Only the next step fails: scripts/grade-receipt.sh --check ("Verification receipt matches the tree").

Cause. #23 wrote its receipt at 537b197. CodeRabbit's later commit 37118f1 ("docs(verification): Document leg helpers and proofs") then added doc comments to three hashed leg inputs, and #23 merged without regenerating the receipt:

File Receipt (537b197) Tree (main)
verification/legs/rocq/Lintel.v 72fefcaa… 47eb36dd…
verification/legs/lean/Lintel/Instance.lean 643fd533… 6810fc39…
verification/legs/lean/Lintel/Lattice.lean 0b2134c8… 43233665…

git diff 537b197 d7bdc21 on those three files shows only added /-- … -/ and (** … *) doc comments. No statement or proof changed. The legs job (Rocq 8.18.0 and Lean 4.24.0, no axioms) already passes on this tree in the #29 and #30 runs.

Ruled out. The pinned sibling (it fetches at its pin and its whole tree checks), and the re-pointing to metadatastician/standards in #29 (#30 fails identically without it).

Changes

  • verification/receipts/agda-pwg_praxis.deed: regenerated with bash scripts/grade-receipt.sh --write. Only the three input hashes and :source-commit change. Claims, PWGs, the module cone and the sibling hashes are unchanged.

RSR Quality Checklist

Required

  • Tests pass: bash scripts/fetch-siblings.sh && bash scripts/grade-receipt.sh --check → PASS: verification receipt matches the tree (4 Lintel modules, 7 sibling modules, all sha256 verified); bash tests/legs-receipt-test.sh → all PASS
  • Code is formatted: generated file, written by the script
  • Linter is clean
  • No banned language patterns
  • No unsafe blocks without // SAFETY: comments: n/a
  • No banned functions
  • SPDX license headers present (the header is emitted by the generator)
  • No secrets, credentials, or .env files included

As Applicable

  • Repo deed (status) / (maturity): unchanged; the project state did not change

Testing

  • Reproduced locally on main (d7bdc21) before the fix: the same 3-line diff and exit 1 as CI.
  • After the fix: --check passes and the legs-receipt self-test passes.
  • Agda, Coq and Lean were not run locally. The Agda gate and the legs job ran in CI on byte-identical leg files, and this PR's own Agda proofs run re-runs both.

Follow-ups (for the owner)

  1. How this got past review. Rocq and Lean recheck legs for L-1..4, L-6, L-7 (PWG-2ii) #23 merged with this check red. Once the CodeRabbit commits landed after the receipt, the check was red on the PR. Options:
    • make Agda proofs / Lattice laws… a required status check;
    • stop CodeRabbit from pushing commits that touch hashed files (verification/**).
  2. After this merges, Re-point scorecard and mirror callers to metadatastician/standards #29 and docs(status): refresh ROADMAP to what is true now #30 go green on their next pull_request run: the merge ref picks up the new main. A plain re-run reuses the old merge SHA, so each branch needs an update from main (for example the "Update branch" button).

Generated by Claude Code

The Agda proofs job has failed on main since 89ceac3 (#23), and so on
every PR based on it, at "Verification receipt matches the tree". The
lattice laws, the pinned sibling, the controls and the rejections all
pass. Only the receipt step fails.

Cause: #23's receipt was written at 537b197. CodeRabbit's later commit
37118f1 ("Document leg helpers and proofs") then added doc comments to
three hashed leg inputs, and the receipt was not regenerated:

  verification/legs/rocq/Lintel.v
  verification/legs/lean/Lintel/Instance.lean
  verification/legs/lean/Lintel/Lattice.lean

`git diff 537b197 d7bdc21` on these files shows only added `/-- -/` and
`(** *)` doc comments. No statement or proof changed, and the legs job
passes on this tree.

Fix: bash scripts/grade-receipt.sh --write. Only the three input
hashes and :source-commit change. Claims and PWGs are unchanged.

Verified locally: grade-receipt.sh --check passes (4 Lintel modules,
7 sibling modules, all sha256 verified), and tests/legs-receipt-test.sh
passes.

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

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 17, 2026

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member Author

Closing this. It duplicates part of #31, and the owner ruled on 2026-11-17 that Lintel's receipt work lands as that one PR. #31 also replaces this receipt shape with the §8.5.1 one from the shared generator. On its head 46519c6, all three proof jobs pass: the lattice laws, the proof receipt and both legs.

The root-cause analysis above still holds for the record: CodeRabbit's 37118f1 changed three hashed leg inputs after #23's receipt was written. The changes are doc comments only.


Generated by Claude Code

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