feat(receipts): bind receipts to patch identity - #563
Merged
Conversation
Co-Authored-By: Codex <codex@openai.com>
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This was referenced Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification receipts now bind a passing command to the Git state it checked. Each new receipt records:
baseline_committree_fingerprintchanges_patch_sha256The verify run retains the exact patch bytes as
changes.patch. Both fresh and reused receipts use the same capture path.Fingerprint and untracked-file policy
The tree fingerprint is the object ID returned by Git plumbing against a temporary index:
git read-tree HEADgit add -Agit write-treeThe temporary index includes tracked state and every non-ignored untracked file. Gitignored files are excluded. The caller's real index is unchanged. Capture rechecks both
HEADand the generated tree after writing the patch. If either changes or patch collection fails, the receipt records null identity fields and does not print a derived binding.changes_patch_sha256is SHA-256 over the retainedchanges.patchbytes. A clean tree is represented by a zero-byte patch, whose digest ise3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.Schema compatibility
New verification receipts use
schema_version: 2. The fields are additive, deterministic, and written through the existing sorted-key serializer. Existing stored receipts without a schema version or identity fields still load and display. Identity lines are omitted when the three binding values are unavailable.Tests
Verification
./scripts/verify20260726-213137-work-verify-04216104383 passed, 3 skipped82.79%Sample receipt excerpt:
Closes #485.