Skip to content

test(vocabulary): classify and label repository-share old-namespace uses (aegis-3r1) - #41

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

scbrown merged 1 commit into
mainfrom
eph/aegis-3r1

Conversation

@scbrown

@scbrown scbrown commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

aegis-3r1 (aegis-m5s.3 slice 2). This PR classifies every old-namespace (http://aegis.gastown.local/ontology/) use in the repository-share/knowledge tooling. Nothing is rewritten to w3id. Each use is now labelled in place (former-namespace (aegis-3r1)) and pinned by tests.

File Old-ns lines Class Why
queries/repository-share-shuttle.rq 14 1 vocabulary (the aegis: prefix), 13 alias The prefix names the pendant predicates and classes. The other 13 lines select, rename and sameAs-link producer entity names (code/doc/chunk, repo_, directive).
scripts/build-repository-knowledge.py 1 (A) alias + vocabulary Subjects must be the existing indexed pointers (by construction); predicates and classes are pendant vocabulary.
scripts/build-repository-share.py 2 1 alias (FORMER_NAME_LEGACY), 1 vocabulary (filePath positive control)
scripts/publish_repository_share.py 1 vocabulary Refuses content/startLine/endLine by their only published name.
scripts/test-repository-share-query.py 1 fixture Producer-store names.
scripts/test-repository-share-publication.py 1 fixture

The vocabulary uses are left as they are. These predicates and classes (filePath, knowledgeKind, Concept, …) are the stack-wide pendant vocabulary. Bobbin emits it and the shipped shapes (docs/knowledge/repository-knowledge.shapes.ttl, Bobbin's share shapes) validate it, and every stack repo's share tooling uses it identically. No w3id owner is published for it: shuttle/vocabulary.py owns workflow terms only, and a cross-repo index search for a w3id.org/intigraph/bobbin namespace found nothing. Renaming it here alone would make the producer read select nothing and fail the receiver shapes. It needs a camayoc/Bobbin-owned term first.

Tests:

  • tests/test_share_namespace_classification.py (unit suite):
    • pins the count per file and requires a label on each, so a new unclassified use fails;
    • checks that the rendered knowledge emits old-namespace IRIs only as alias subjects/objects or as vocabulary that the release query's VALUES list carries.
  • scripts/test-repository-share-query.py: the release CONSTRUCT lets no old-namespace identity escape unrenamed. Old-namespace IRIs appear only as predicates, rdf:type classes or owl:sameAs former names.

just test: 118 OK. The three repository-share script suites pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_014TTLD8SbxKDVtDZeeqbx1G

…ses (aegis-3r1)

Every old-namespace use in the share/knowledge tooling is either a former-name
alias (producer entity names the release query renames to w3id and links with
owl:sameAs) or the stack-wide repository-pendant vocabulary Bobbin emits and the
shipped shapes validate, which has no published w3id owner. Nothing is
rewritten; each use is labelled in place and pinned by tests: the knowledge
build emits only alias subjects/objects and released vocabulary, and the
release query lets no unrenamed old-namespace identity escape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014TTLD8SbxKDVtDZeeqbx1G
@scbrown
scbrown merged commit a6e8c1f 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