Repository navigation
Hash committed blobs, reject unsigned fields, report coverage gaps (1.3.3) - #15
Merged
Merged
Conversation
….3.3) - File hashes come from git's object store, not the working tree (dirty, deleted or partially staged files recorded wrong or no hashes). - Non-UTF-8 diffs no longer crash receipt writing; diff_sha256 is computed over raw bytes with config-sensitive diff options pinned. - Receipts carrying fields the canonical hash skips (_meta, _debug, prev_receipt_hash_verified) fail verify, report and chain extension. - verify and report print a COVERAGE line: unreceipted commits since the first receipt (catches a deleted newest receipt) and receipts for commits no longer in history. - CI action removes any .titan/key symlink and writes the key with umask 077; init creates the key owner-only. - Manifest author email updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- test_hashes_are_over_gits_raw_utf8_bytes_on_every_platform compared the receipt to the working-tree file. Receipts now hash the committed blob, and with core.autocrlf the Windows checkout is CRLF while the blob is LF, so compare against git cat-file blob, the bytes every platform agrees on. - test_external_diff_config_does_not_change_receipt put a Windows path into a bash command unquoted; use the existing posix() helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Before: receipts hashed whatever was on disk at receipt time, so dirty, deleted or partly staged files were recorded wrong. A non-UTF-8 file silently dropped the receipt. Unsigned fields like
_metarode along and still verified. Deleting the newest receipts or amending history went unnoticed, and personal git settings changed the diff hash.After: file hashes come from the committed blobs, and the diff is produced with pinned options. Unsigned fields fail verify and block extending the chain. Verify prints a COVERAGE line for commits without a receipt and a HISTORY line for receipts whose commit left history. The Action removes any planted key symlink and writes the key with umask 077.
How:
core/receipt.pyplus 14 tests intests/test_integrity.py, each failing on 1.3.2. Suite 139 passed locally;claude plugin validatepasses. Version 1.3.3; the README pins the Action at@v1.3.3, so av1.3.3tag is needed at release. The README now states that merge, cherry-pick, revert and scripted commits made inside Claude Code get no receipt.Generated by Claude Code