Repository navigation
Carry v1 classes with no migrator whole as v1, citing their row - #329
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.noMigratorCarryRowsholds the 7 classes and their register rows:In
v1_to_v2, a document of one of these classes is now carried whole as v1. The carry is the untouched source, stampeddid_v1, with acarried_as_v1note that cites the class's row. It no longer goes throughuniversalRenamesand the identity fallback. A legacyndi_documentblock besidebasestill cites carry-049. The new option'NoMigratorCarryClasses'restores the old path when set to{}. The new counterbodies_carried_no_migratoris insummary.legacy_ndi_document, inside thebodies_unreachedpartition, andcensus_digest.pyprints it.Not built:
ensembleandgeneric_file. Both were in the list Jess answered, but each has a conversion: NDI's second pass convertsensemble(ensembleMembership, did-schema [ensemble retired]), andfoldGenericFilesconvertsgeneric_file. A carry would also cascade to their dependents (carry-064). The question is open as did-schemadocs/V2_PLAN.md#143 Q4.Checked against V2 41b6621 and #324. Comparing the NDI templates at the locked main 441530d with
rawV1Classesgives 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.universalRenamesand carry-049 are not touched.Tests:
testConvertV1ToV2tests of the renamed path (projectvar bodies) now pass'NoMigratorCarryClasses', {}.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