Skip to content

Tests follow did-schema #236: text channel bound ahead of the map; lick spout registered - #297

Merged
jesshaley merged 1 commit into
V2from
claude/text-channel-type
Oct 29, 2026
Merged

jesshaley merged 1 commit into
V2from
claude/text-channel-type

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Two DID-matlab tests on V2 went red after Waltham-Data-Science/DID-schema#236 merged (d5c83628) together with DID-matlab #294. I caused this: #236 changed a list these tests pin, without updating them first. This PR fixes the tests only.

  1. testChannelType/testTheTenTypesAreTheSchemasBoundSet expected 10 bound types but found 11. SQLite search: 'hasmember' puts a text value into the SQL unquoted (errors, wrong results, SQL injection) #236 binds EMPTY:0000410 "text channel" beside NCIT Text, per [text channel replaces NCIT Text]. The writers move in order: first NDI's +vintage/channelTypes.m, which today maps tx only to NCIT:C25704, then did2.convert.channelType. So the test now allows "text channel" to be bound ahead of the map. Once the map writes it and NCIT Text leaves the list, the comparison is exact again.
  2. testMigratorsJRecordingObservation/testUnmappedTypeIsFlaggedQueryablyAndKeepsObserves expected lick-spout but got lick spout. SQLite search: 'hasmember' puts a text value into the SQL unquoted (errors, wrong results, SQL injection) #236 registers EMPTY:0000414 "lick spout" ([device kinds minted]), and Find a registry term by its name ignoring case, spaces, underscores and hyphens #294 finds it from the v1 type lick-spout ([term names match ignoring spacing]). The Guard A behaviour is unchanged: the modality is still flagged as unresolved and no observation is emitted. Only the flag's term is now the registered one.

No source code changes. This unblocks #295 and #296, whose only other failures are these two.


Generated by Claude Code

…ck spout registered

did-schema #236 (merged d5c83628) binds EMPTY:0000410 "text channel" beside
NCIT Text ([text channel replaces NCIT Text]; NDI's +vintage/channelTypes.m
moves first, then channelType), and registers EMPTY:0000414 "lick spout"
([device kinds minted]), which #294 finds from the v1 type 'lick-spout'.
That turned V2 red in testChannelType/testTheTenTypesAreTheSchemasBoundSet
(10 vs 11 bound) and testMigratorsJRecordingObservation/
testUnmappedTypeIsFlaggedQueryablyAndKeepsObserves ('lick spout' vs
'lick-spout'). No code change: the map keeps NCIT Text for tx until NDI reads
the new node; the Guard A flag and its no-observation behaviour are
unchanged, only the flag's term is now the registered one.

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 29, 2026 22:33
@jesshaley
jesshaley merged commit 1285f5a into V2 Oct 29, 2026
10 checks passed
@jesshaley
jesshaley deleted the claude/text-channel-type branch October 30, 2026 13:58
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