Skip to content

feat: v0.2 -- accept DID URIs in TR-ENV-003 subject check#18

Merged
imran-siddique merged 2 commits into
mainfrom
feat/v0.2-did-subject-support
Jun 17, 2026
Merged

feat: v0.2 -- accept DID URIs in TR-ENV-003 subject check#18
imran-siddique merged 2 commits into
mainfrom
feat/v0.2-did-subject-support

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Summary

Updates the conformance test suite to accept both spiffe:// and did: subject URIs, aligned with trace-spec v0.2.0.

What changed:

  • src/trace_tests/modules/tr_env.py: TR-ENV-003 check accepts spiffe:// or did:, fail message updated
  • tests/test_level0.py: SPIFFE_RESUBJECT_RE, test renamed test_subject_is_valid_workload_identity_uri
  • tests/unit/test_tr_env.py: added test_did_subject_passes and test_did_mesh_subject_passes; renamed test_non_spiffe_subject_failstest_non_spiffe_non_did_subject_fails

Test plan

  • pytest tests/ passes
  • did:key: subject passes TR-ENV-003
  • did:mesh: subject passes TR-ENV-003
  • https:// subject still fails TR-ENV-003

References

  • Companion PR: agentrust-io/trace-spec (feat/v0.2-did-subject-support)
  • trace-spec#35

🤖 Generated with Claude Code

imran-siddique and others added 2 commits June 17, 2026 07:03
Updates tr_env.py, test_level0.py, and test_tr_env.py to accept both
spiffe:// and did: subject URIs. Adds did:key and did:mesh passing tests.
Aligns with agentrust-io/trace-spec#35 and trace-spec v0.2.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ests

- tr_sig.py: verify Ed25519 embedded signatures in plain trace records (sign_record() output)
- loader.py: remove "signature" from partial envelope markers so signed plain records load
- test_tr_sig.py: add test_plain_trace_embedded_ed25519_signature_passes and tamper test
- README.md: v0.2 badge, "What changed in v0.2" section
- pyproject.toml: bump version to 0.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique imran-siddique force-pushed the feat/v0.2-did-subject-support branch from 90378c0 to e4d6ddf Compare June 17, 2026 14:05
@imran-siddique imran-siddique merged commit 863446f into main Jun 17, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant