test: add action receipt conformance fixtures#101
Open
carloshvp wants to merge 1 commit into
Open
Conversation
Signed-off-by: Carlos Hernandez-Vaquero <carloshvp@gmail.com>
carloshvp
marked this pull request as ready for review
July 17, 2026 11:07
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.
What this changes
Refs #95. Builds on #66 and agentrust-io/cmcp#392.
Adds nine signed action-receipt conformance fixtures for:
action_refmismatches;The fixture contract uses RFC 8785 JCS for
action_ref, detached evidence hashing, and the Ed25519 receipt signature preimage. Each case pins the trusted issuer key outside the receipt and carries machine-readable expected results.tests/test_action_receipt_fixtures.pyrecomputes the hashes, verifies signatures, checks call/session binding, enforces freshness and receipt ordering, and compares each result with the fixture expectation.The fixtures are static. They add no ROS runtime dependency and do not change the TRACE schema, library API, or normative spec text.
Type of change
Spec section
Informative examples for
spec/trace-v0.1.mdsection 3.3.2, "Action receipts for embodied workflows."Validation
uv run --extra dev ruff check src/ tests/uv run --extra dev pytest -q(89 passed)uv run --extra dev mypy src/agentrust_tracegit diff --checkBackward compatibility
No schema, API, or normative verification behavior changes.
Checklist
git commit -s)CHANGELOG.mdupdated (not applicable; no normative change)