Migrate TRACE TROs to canonical TROv 0.1 namespace#314
Merged
Conversation
Switches the TROv vocabulary URI emitted in TRACE Transparent Research Objects from the prerelease 2023/05 namespace to the canonical https://w3id.org/trace/trov/0.1# URI. policyengine-us-data has emitted TROs under TROv 0.1 since #746, so the two sides can now share SHACL validators and TROs from either side validate against the same vocabulary without manual rewrite. Touched: src/policyengine/provenance/trace.py (constant + module docstring), src/policyengine/data/schemas/trace_tro.schema.json (the @context.trov const), tests/test_trace_tro.py (literal assertion), and docs/release-bundles.md (the documented URI). All 435 non-integration tests pass; the 36 TRACE tests in particular confirm schema-level validation still accepts the new URI. Fixes #313. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
MaxGhenis
added a commit
to PolicyEngine/household-api-docs
that referenced
this pull request
Apr 21, 2026
Pairs with PolicyEngine/policyengine.py#314 which migrates the emitted TROv vocabulary URI from the prerelease 2023/05 namespace to the canonical 0.1 namespace. Landing both together keeps the docs consistent with what policyengine.py actually emits. Co-Authored-By: Claude Opus 4.7 (1M context) <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
https://w3id.org/trace/2023/05/trov#(prerelease TROv) withhttps://w3id.org/trace/trov/0.1#(canonical) in the TRO emitter, the TRO JSON-LD schema, the tests, and the release-bundles docs.Testing
uv run pytest tests/test_trace_tro.py -q→ 36 passeduv run pytest tests/ -q --ignore=tests/integration→ 435 passeduv run ruff format/uv run ruff checkcleanFollow-ups
Fixes #313.
🤖 Generated with Claude Code