Skip to content

Read did-schema files by their did_v2_ names, falling back to V_eta_ - #252

Merged
jesshaley merged 2 commits into
V2from
claude/did-v2-names-2
Oct 27, 2026
Merged

jesshaley merged 2 commits into
V2from
claude/did-v2-names-2

Conversation

@jesshaley

@jesshaley jesshaley commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

This builds DID-matlab's part of the decision by Jess Haley, 2026-10-26 [markdown cleanup and rename], recorded in did-schema schemas/V_eta_go_forward_class_audit.md, part (6). did-schema will rename its JSON registers in schemas/ from V_eta_* to did_v2_*, and move its documents into docs/ under did_v2_* names. Siblings change first: DID-matlab and NDI-matlab code that reads a renamed file must accept both names before the old ones go.

What changes

Every reader of a renamed file now tries the did_v2_ name first and falls back to the V_eta_ name:

  • tools/did_schema_names.py (new) is the one place that holds the two names and their order.
  • tools/corpus_proven.py reads the coverage ledger this way.
  • tools/affected_corpora.py: its --ledger default.
  • tools/check_carry_citations.py reads the carry register this way.
  • .github/workflows/test-corpus.yml copies the corpus-proof snapshot under either name.

There are tests for each tool: the old name alone, the new name alone, and the new name winning when both are present.

Also included: the testBatchPassWiring divergence row for NDI's isOntologyLabelClass, cherry-picked from claude/phase2 (25388d3). NDI-matlab V2 gained that function in #1076, so DID-matlab V2 failed this test against NDI V2 until the row lands. When phase 2 merges later, this commit makes no difference.

Pairing

NDI-matlab #1077 has the matching NDI change. Its end-to-end run used this branch and passed: 510 passed, 0 failed.

CI on d629d2a

  • Quick migrator tests: success. Runs 40467245231 and 40467243380.
  • Fixture corpus (fast validate): success.
  • Spelling: success.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf

did-schema renames its registers in schemas/ from V_eta_* to did_v2_*
and the corpus proof snapshot to did_v2_corpus_proof.* ([markdown
cleanup and rename], Jess Haley, 2026-10-26, did-schema
V_eta_go_forward_class_audit.md, part (6): "Siblings first"). Every
DID-matlab reader accepts both names first, the new one preferred, so
the rename breaks nothing:

- tools/did_schema_names.py (new): the one place the two names and
  their order are kept.
- tools/corpus_proven.py: the coverage ledger on disk, its mtime, the
  `git show HEAD:` baseline and the artifact copy.
- tools/affected_corpora.py: the default --ledger (default_ledger()).
- tools/check_carry_citations.py: the carry register.
- test-corpus.yml: the snapshot copy takes did_v2_corpus_proof.json and
  docs/generated/did_v2_corpus_proof.md, else the V_eta_ files.

Tests: each tool reads the old name alone, the new name alone, and the
new name when both are present; corpus_proven counts a ledger written
under the new name as rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
NDI-matlab V2 (4effe11e0, #1076; b729b8728) added
ndi.migrate.internal.isOntologyLabelClass, called from ndi.migrate.local, so
the cross-repo divergence gate failed on every DID-matlab branch: a pass on
the NDI side only, with no row. It is a predicate (either spelling of the v1
ontology-label class), not a transform; the row says why it has no DID twin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
@jesshaley
jesshaley marked this pull request as ready for review October 27, 2026 07:34
@jesshaley
jesshaley merged commit 4001a59 into V2 Oct 27, 2026
6 checks passed
jesshaley pushed a commit that referenced this pull request Oct 27, 2026
Keeps phase 2's isOntologyLabelClass divergence row (ontologyLabel is now
switched), dropping V2's interim text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
@jesshaley
jesshaley deleted the claude/did-v2-names-2 branch November 25, 2026 21:45
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.

2 participants