Repository navigation
feat: Added Verifiable Agents - #772
Merged
Merged
Conversation
Add Luhn checksum validation to CreditCardDetector so it stops over-redacting ordinary 13-16 digit numeric IDs that are not real card numbers. Deep-freeze the payload in AuditRecord.from_dict so records reconstructed from a loaded bundle are tamper-evident like freshly recorded ones, and teach verifier.py's standalone canonicalizer to unwrap the resulting frozen containers. Make AuditTracer.verify_chain reject a record list spanning more than one run_id instead of silently validating a bogus cross-run chain link. Apply Unicode NFC normalization to strings (including dict keys) before canonical JSON hashing, so combining and precomposed forms of the same text hash identically, in both serializer.py and verifier.py. Add RFC 6962 leaf-hash domain separation (0x00 prefix) via a new merkle.hash_leaf helper, used by bundle.py when building Merkle leaves and by verifier.py when recomputing them, so leaf hashes can no longer be replayed as internal node hashes. Kept within schema 1.2 since it has not shipped yet. Co-authored-by: Abhay Krishna <[email protected]>
# Conflicts: # src/synapsekit/cli/main.py
4 of 8 tasks
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.
Merges #766 (verifiable agents / audit system from @Abhay-Mmmm) with review fixes applied on top:
Regression tests added for all five, full suite passing.
Closes #738