Skip to content

test(vocabulary): pin zero old-namespace IRIs on fresh export; e2e reads both term forms (aegis-v2o) - #40

Merged
scbrown merged 1 commit into
mainfrom
eph/aegis-v2o
Nov 26, 2026
Merged

scbrown merged 1 commit into
mainfrom
eph/aegis-v2o

Conversation

@scbrown

@scbrown scbrown commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

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, the LEGACY constant. It is a deliberate FORMER-NAME READ ALIAS and is already labelled (export.AEGIS is 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.
  • The repository-share/knowledge tooling (queries/repository-share-shuttle.rq 6, scripts/build-repository-knowledge.py 1, scripts/build-repository-share.py 1, which is a labelled FORMER_NAME_LEGACY, scripts/publish_repository_share.py 1, 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.
  • Deployment instance IRIs: the default is 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:

  • A full CLI define/start/advance/export plus keys init emits zero old-namespace IRIs across all 5 knots and the registration.
  • The signed message contains neither the legacy nor the w3id namespaces.
  • A transition read back under the legacy predicates verifies through 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 e2e against the local quipu 0.19.4 fails at the identity registration load (/knot HTTP 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

…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
@scbrown
scbrown merged commit 57c8a0d into main Nov 26, 2026
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