Repository navigation
Conversation
[binding check reaches nested fields] (B2 option A) and [binding check armed after a corpus count] (B1), Decided by Jess Haley, 2026-12-03, did-schema docs/plans/did_v2_go_forward_class_audit.md; tracked in Waltham-Data-Science/DID-schema#89. - did2.schema.cache/validateField now calls validateNestedBindings, which applies the one checkBinding to every bound sub-field at any depth (method.parameters(k).variable, statement.conditions(k).variable, data.dimensions(k).term, relative_time_reference.value.clock, ...). Absent sub-fields, empty ones, and elements holding only blanks (the buildBlankDocument placeholder) are not judged. - strictMode('BindingConformance') is armed by default (~envFlagIsOff('DID_ENFORCE_BINDING_CONFORMANCE')); =0 disarms it. Comments that said it was disarmed are updated, with the B1 count. - testBindingConformance: the default test now asserts ARMED (the decision inverts it); new tests for the env switch and for nested bound fields (malformed refused, conforming / absent pass, nested sets, preferred advisory, switch off, top level unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Collaborator
Author
|
CI on 94ecf18: the corpora are clean, but arming refuses name-only variables that tests and production writers build. No tests or writers have been changed yet; this needs a team decision before anything is changed. Corpora: 0 quarantined. Final document counts are the same as the B1 census and as V2 run 47204548077.
Unit and builder tests fail. The 71 are the same failures in the builder, quick and unit runs.
NDI-matlab (branch
All the binding refusals in these runs are name-only variables written by NDI production code:
The siblings-first rule applies, so NDI has to be fixed before this merges. Generated by Claude Code |
[nested check lands before arming] (C1 = A), Decided by Jess Haley,
2026-12-03, did-schema docs/plans/did_v2_go_forward_class_audit.md: the
nested-field extension merges with the switch OFF by default; arming
waits until every name-only variable production code writes has a
registered term.
- strictMode('BindingConformance') back to
envFlag('DID_ENFORCE_BINDING_CONFORMANCE') (off unless set);
Contents.m, epochStringRetention.m and runCorpusDiscovery.m back to V2.
- validateNestedBindings / holdsBinding and the blank-placeholder
handling are kept; comments say arming waits for the decision and
cite the armed measurement on 94ecf18.
- testBindingConformance: testBindingConformanceIsDISARMEDByDefault
restored (env variable cleared for the test); the env test now checks
that 1 arms it and a typo leaves it off; nested tests kept.
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.
Builds [binding check reaches nested fields] (B2, option A) and follows [nested check lands before arming] (C1 = A). Both were decided by Jess Haley on 2026-12-03 and are recorded in did-schema
docs/plans/did_v2_go_forward_class_audit.md. Tracked in Waltham-Data-Science/DID-schema#89.BindingConformancestays OFF by default in this PR. It is armed later, once every name-only variable that production code writes has a registered term.What changes
did2.schema.cache/validateFieldcalls a newvalidateNestedBindings.checkBinding, with the same gates and error ids. Paths are named likemethod.parameters(2).variable.[],'', a struct with no fields); an element holding only blanks (holdsOnlyBlanks, the placeholderbuildBlankDocumentwrites).holdsBindingskips sub-trees that have no bound field.strictMode('BindingConformance')is unchanged:envFlag('DID_ENFORCE_BINDING_CONFORMANCE'), off unless the variable is set. Comments say arming waits for [nested check lands before arming].testBindingConformance:testBindingConformanceIsDISARMEDByDefaultis kept; the env variable is cleared for that test.testTheEnvironmentCanArmIt:1arms the check, a typo leaves it off.preferredbinding refuses nothing; with the switch off nothing is checked; top-level behaviour is unchanged.Measured armed (first head 94ecf18, since reverted)
Six corpora: 0 quarantined.
Tests: armed, the check refused name-only variables.
testBuild*. The other three cover two DID passes: openMINDS citations and the Ngrid non-area condition.See the comment on this PR for the details.
https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Generated by Claude Code