Skip to content

hartley column terms; spike interface sorting carried as v1; final-document term census - #495

Merged
jesshaley merged 2 commits into
V2from
claude/hartley-column-terms
Nov 19, 2026
Merged

jesshaley merged 2 commits into
V2from
claude/hartley-column-terms

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Builds two decisions recorded in did-schema docs/plans/did_v2_go_forward_class_audit.md, and adds one report line to the corpus harness.

[hartley column terms] (Decided by Jess Haley, 2026-11-19). +migrators_j/hartley_calc.m (hartleyNumberColumns, hartleyNumbersBody) now writes the variables of the four per-frame covariates as nodes, through did2.convert.registeredTerm:

  • S -> EMPTY:0000449 "contrast polarity"
  • KXV -> EMPTY:0000450 "horizontal spatial frequency component"
  • KYV -> EMPTY:0000451 "vertical spatial frequency component"
  • ORDER -> NCIT:C25390 "Index"

+roundtrip/hartley_calc.m reads each covariate by its node first. A covariate with no node falls back to its name, either the new name or the old plain label ('hartley S', ...). New test: testTheRoundTripReadsTheHartleyColumnsByNodeAndOldLabels.

[spike interface sorting carried as v1] (Decided by Jess Haley, 2026-11-19). Until now, a template-shaped v1 SpikeInterfaceSortingOutputs was a bare passthrough with no note. The migrator now writes a carried_as_v1 note that names the decision, so v1_to_v2 carries the document whole as v1 (the untouched source, stamped did_v1) and the report counts it. The class has no carry row yet: did-schema #286 is still "Build pending: did-schema (its carry row)". So the site's marker is % carry-register: none and the note cites only the decision. When the row lands, the tag goes in the note. New test: testTheSortingOutputsAreCarriedWholeAsV1WithANote. The fixture's expected outcome in writerFixtures changes from passthrough to carried, which is what the decision says.

Corpus harness. UNREGISTERED TERMS IN FINAL DOCUMENTS (helper unregisteredTermsInFinal, with its own test) counts the collector's rows again, this time in the run's final documents, and reports how many documents it walked. The collector records every term did2.build was given, including documents a batch pass drops later. For example, Dab's 400 element type statements are dropped by resolveEpochProbemap (mode_statements_dropped_recorded 400 of mode_statements_seen 400 in the Dab summary on V2 run 44458300150), but they still appear in the collector's list.

Merge waits for did-schema main to hold the registry rows EMPTY:0000449, EMPTY:0000450, EMPTY:0000451 and NCIT:C25390.

Part of #487. Part of Waltham-Data-Science/DID-schema#286.


Generated by Claude Code

…cument term census

[hartley column terms] (Decided by Jess Haley, 2026-11-19, did-schema
did_v2_go_forward_class_audit.md): hartley_calc writes the four per-frame
covariates' variables as nodes, S EMPTY:0000449 "contrast polarity", KXV
EMPTY:0000450 "horizontal spatial frequency component", KYV EMPTY:0000451
"vertical spatial frequency component", ORDER NCIT:C25390 "Index", through
the term registry. The round trip reads them by node, and a body migrated
before the decision by its old plain label ('hartley S', ...).

[spike interface sorting carried as v1] (Decided by Jess Haley, 2026-11-19):
a template-shaped v1 SpikeInterfaceSortingOutputs is carried whole as v1
with a carried_as_v1 note naming the decision (carry-register: none; the
class's carry row is pending in did-schema #286). Test added; the round-trip
fixture's outcome is now 'carried'.

Corpus harness: UNREGISTERED TERMS IN FINAL DOCUMENTS, the collector's rows
counted in the final documents (the collector counts what did2.build was
given, including documents a batch pass later drops), with its denominator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Corpus run 44467146813 (others) read 0 final documents for every collector
row whose node is empty ('element type', 'isspike', 'stimulus
sequence.frame times', the Cre lines) and the right counts for every row
with a node: a term with an empty node can be stored with no `node` field,
which the walk required. A struct with a `name` is now read as a term (only
one at a row's own field can match). Test added.

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 19, 2026 07:22
@jesshaley
jesshaley merged commit 2ddb958 into V2 Nov 19, 2026
11 checks passed
@jesshaley
jesshaley deleted the claude/hartley-column-terms branch November 25, 2026 21:47
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