Skip to content

element: the class variable by node EMPTY:0000401 "software class" - #500

Merged
jesshaley merged 4 commits into
V2from
claude/element-class-by-node
Nov 20, 2026
Merged

jesshaley merged 4 commits into
V2from
claude/element-class-by-node

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Part of Waltham-Data-Science/DID-schema#89

Decided by Jess Haley, 2026-11-19 [variable terms batch 1] (did-schema docs/plans/did_v2_go_forward_class_audit.md): the v1 'ndi element class' variable becomes the registered node EMPTY:0000401 "software class". #496 built the other lookups and stopped on this one because NDI-matlab V2 compared the phrase by name. The NDI half, VH-Lab/NDI-matlab#1280 (same branch name), makes every NDI reader match the node first and still accept the old name; this PR merges after it.

did-schema main holds the node: schemas/registry/did_v2_term_registry.json has "name": "software class", "node": "EMPTY:0000401" (status decided, Jess Haley, 2026-10-26 [census terms]).

Changes

  • +did2/+convert/+migrators_j/element.m: the kept class assertion (only where the class does not rebuild, [ndi element class not kept]) writes its variable through did2.convert.registeredTerm('EMPTY:0000401', 'software class'), like the other variable terms batch 1: statement variables by node; modality unresolved is a report note #496 lookups. The now-unused kindAssertion helper is removed.
  • +did2/+convert/+roundtrip/element.m: reads the class from a variable with node EMPTY:0000401, or the old label 'ndi element class'.
  • +did2/+convert/+roundtrip/wholeBatch.m (unlinkedDevice): the same two spellings.
  • tests/+did2/+unittest/testRawV1RoundTripElement.m: the "not written" checks look for either spelling (so they cannot pass just because the label changed); the kept assertion carries node EMPTY:0000401 with the registry label and not the old label; new testTheRoundTripReadsBothClassSpellings rebuilds the class from node and label, node only, and old label.

NDI's TestElementLabelMatchesMigrator (#1280) accepts the node lookup, and counts both spellings toward its one-site check.


Generated by Claude Code

Decided by Jess Haley, 2026-11-19 [variable terms batch 1] (did-schema
docs/plans/did_v2_go_forward_class_audit.md): the v1 'ndi element class'
variable becomes the registered node EMPTY:0000401 "software class".
#496 built the other lookups and stopped here because NDI-matlab compared
the phrase by name; NDI-matlab claude/element-class-by-node now reads the
node first and the old name too.

- +migrators_j/element.m writes the kept class assertion's variable
  through did2.convert.registeredTerm('EMPTY:0000401', 'software class'),
  like the other #496 lookups; the unused kindAssertion helper goes.
- +roundtrip/element.m and +roundtrip/wholeBatch.m (unlinkedDevice) read
  the node, or the old label with no node.
- testRawV1RoundTripElement: the not-written checks look for either
  spelling; the kept assertion carries the node and the registry label and
  not the old label; a new test rebuilds the class from all three
  spellings (node and label, node only, old label).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
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 November 20, 2026 00:02
@jesshaley
jesshaley merged commit dc27739 into V2 Nov 20, 2026
11 checks passed
@jesshaley
jesshaley deleted the claude/element-class-by-node branch November 25, 2026 21:46
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