Repository navigation
test(vocabulary): pin zero old-namespace IRIs on fresh export; e2e reads both term forms (aegis-v2o) - #40
Merged
Conversation
…acy-record verify (aegis-v2o) The runtime writers (export.py, signing.py) already mint published w3id terms since #37; this pins it end-to-end and closes the remaining reader gap. - tests: a full CLI define/start/advance/export plus key registration emits zero legacy-namespace IRIs; the signed transition message carries no vocabulary namespace at all; a transition read back under the former-name predicates still verifies, and a tampered one is refused. - e2e: the window query read only the legacy predicates, so it could not see a fresh export. It now uses shuttle's own vocabulary.pattern (published term UNION former-name alias). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014TTLD9BeKbCa3AoKQNz4sm
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.
aegis-v2o (slice of aegis-m5s.3).
Re-measure on origin/main (3399023), excluding tests/docs
git grep -E 'aegis\.gastown\.local|scbrown\.github\.io/quechua':shuttle/export.py: 0,shuttle/signing.py: 0. fix(vocabulary): write published terms and read historical workflow facts #37 had already moved both writers to the published terms (https://w3id.org/intigraph/quipu/ns#,https://w3id.org/intigraph/camayoc/core/ns#, taken from the retained ownership crosswalk).shuttle/vocabulary.py: 1, theLEGACYconstant. It is a deliberate FORMER-NAME READ ALIAS and is already labelled (export.AEGISis the labelled compatibility re-export).scripts/e2e_slice.sh: 1, a reader that queried only the legacy predicates. After fix(vocabulary): write published terms and read historical workflow facts #37 it could not see a fresh export. Fixed in this PR.queries/repository-share-shuttle.rq6,scripts/build-repository-knowledge.py1,scripts/build-repository-share.py1, which is a labelledFORMER_NAME_LEGACY,scripts/publish_repository_share.py1, and its two test scripts 1+1) is not a runtime writer. It is out of scope for this slice and remains for aegis-m5s.3.SHUTTLE_ENTITY_NS=urn:shuttle:. That is neutral, and there is no private host default.Runtime writers: before 0, after 0. Readers: e2e before 1 legacy-only, after 0 (published term UNION alias).
Signing
The signed bytes are
shuttle-transition-v1|run_iri|step|from|to|at|agent. They contain no vocabulary IRI. The run IRI is instance identity (urn:shuttle:run:...) and is unchanged. So the term move does not invalidate any existing signature, and old records verify unchanged. Stored data is not rewritten.Tests
New
tests/test_vocabulary_transition.py:keys initemits zero old-namespace IRIs across all 5 knots and the registration.shuttle verify. The query carries both term forms. As a control, a tampered signature on the same legacy row is refused (BAD SIGNATURE, exit 1).just test: 116 tests OK.just e2eagainst the local quipu 0.19.4 fails at the identity registration load (/knotHTTP 400). That step comes before the changed query, and the failure happens without this change as well. It is not fixed here.🤖 Generated with Claude Code
https://claude.ai/code/session_014TTLD9BeKbCa3AoKQNz4sm