Skip to content

Carry v1 classes with no migrator whole as v1, citing their row - #329

Merged
jesshaley merged 1 commit into
V2from
claude/no-migrator-carry
Oct 31, 2026
Merged

jesshaley merged 1 commit into
V2from
claude/no-migrator-carry

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Decided by Jess Haley, 2026-10-31 [classes without a migrator carry as v1] (did-schema docs/plans/did_v2_go_forward_class_audit.md, recorded in Waltham-Data-Science/DID-schema#253). Jess answered "Ok" to: "the 9 v1 classes with no migrator are kept unchanged as v1 [...] Each would get a carry row, and a migrator can replace that row later."

Built for 7 classes. did2.convert.noMigratorCarryRows holds the 7 classes and their register rows:

class row
animalsubject carry-158
demoNDISeries carry-159
demoNDISeriesMixed carry-160
imageCollection carry-161
projectvar carry-162
stimulus_parameter_table carry-163
valid_interval carry-164

In v1_to_v2, a document of one of these classes is now carried whole as v1. The carry is the untouched source, stamped did_v1, with a carried_as_v1 note that cites the class's row. It no longer goes through universalRenames and the identity fallback. A legacy ndi_document block beside base still cites carry-049. The new option 'NoMigratorCarryClasses' restores the old path when set to {}. The new counter bodies_carried_no_migrator is in summary.legacy_ndi_document, inside the bodies_unreached partition, and census_digest.py prints it.

Not built: ensemble and generic_file. Both were in the list Jess answered, but each has a conversion: NDI's second pass converts ensemble (ensembleMembership, did-schema [ensemble retired]), and foldGenericFiles converts generic_file. A carry would also cascade to their dependents (carry-064). The question is open as did-schema docs/V2_PLAN.md #143 Q4.

Checked against V2 41b6621 and #324. Comparing the NDI templates at the locked main 441530d with rawV1Classes gives the same 9 classes that #324 lists. #324 also names the superclass-only templates and NDIcalc-vis-matlab's hartley_reverse_correlation and reverse_correlation, which are outside the decision.

universalRenames and carry-049 are not touched.

Tests:

  • Two testConvertV1ToV2 tests of the renamed path (projectvar bodies) now pass 'NoMigratorCarryClasses', {}.
  • New tests in testMiscSingletons: the projectvar carry and its note, the opt-out, and the table.

The carry register rows are on did-schema #253. This branch's CI reads them from the same-name did-schema branch claude/no-migrator-carry, which is at the same commit.

Local Python checks pass: check_carry_citations.py (carry-158..164 cited), test_check_carry_citations.py, test_census_digest.py, test_batch_pass_wiring.py, test_check_migrator_roster.py, check_migrator_roster.py. MATLAB has not run this change locally; CI is the check.


Generated by Claude Code

Decided by Jess Haley, 2026-10-31 [classes without a migrator carry as v1]
(did-schema docs/plans/did_v2_go_forward_class_audit.md): "Ok" to "the 9 v1
classes with no migrator are kept unchanged as v1 [...] Each would get a carry
row, and a migrator can replace that row later."

- did2.convert.noMigratorCarryRows: the 7 classes and their register rows
  (carry-158 animalsubject, carry-159 demoNDISeries, carry-160
  demoNDISeriesMixed, carry-161 imageCollection, carry-162 projectvar,
  carry-163 stimulus_parameter_table, carry-164 valid_interval).
- v1_to_v2: such a class is carried whole as v1 (the untouched source,
  stamped did_v1) with a carried_as_v1 note citing its row, instead of going
  through universalRenames and the identity fallback. A legacy ndi_document
  block beside base still cites carry-049. Option 'NoMigratorCarryClasses'
  ({} restores the old path); counter bodies_carried_no_migrator in
  summary.legacy_ndi_document, inside the bodies_unreached partition.
- ensemble and generic_file are NOT listed: NDI's second pass converts
  ensemble ([ensemble retired]) and foldGenericFiles converts generic_file;
  open as did-schema docs/V2_PLAN.md #143 Q4.
- universalRenames and carry-049 stay.
- Tests: two universalRenames-path tests pass 'NoMigratorCarryClasses', {};
  new tests for the projectvar carry, the opt-out and the table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
@jesshaley
jesshaley merged commit d028aa3 into V2 Oct 31, 2026
11 checks passed
@jesshaley
jesshaley deleted the claude/no-migrator-carry branch November 25, 2026 21:48
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