security: pre-launch hardening#19
Merged
Merged
Conversation
- update schema subject pattern to accept did: URIs (aligns with v0.2 spec) - add private key material check in TR-SIG: fail if cnf.jwk contains 'd' field - sync __version__ to 0.2.0 (matches pyproject.toml) - tighten subject URI validation regex in tr_env (require method+id for DID) - pin CI workflow action references to commit SHAs Signed-off-by: Imran Siddique <imran.siddique@opaque.co> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The loader intentionally allows a top-level 'signature' field in plain TRACE records because sign_record() embeds the Ed25519 signature inline. Only 'trace' and 'gateway' are unambiguous cmcp envelope markers. The [signature] parametrize case was testing behavior the loader explicitly chose not to implement, causing a pre-existing test failure on main. Signed-off-by: Imran Siddique <imran.siddique@opaque.co> Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
Pre-launch security hardening fixes identified in a full security review of all agentrust-io repos before public launch (CC Summit June 23, 2026).
See individual commit message for the full list of changes.
Test plan
🤖 Generated with Claude Code