cadrumo.domain.calculations.registry.reference_sections module¶
Specialized snapshot-reference section walkers.
Per-section walkers that traverse the typed-ID fields of a
ModeloRevision and call into an
IdReferenceChecker
to accumulate dangling-reference diagnostics.
See also
domain.calculations.registry.reference_checks.check_all_id_references()Snapshot-level referential-integrity gate that invokes these walkers.
cadrumo.domain.calculations.registry.reference_checkerAccumulator that owns the per-kind typed-id sets used here.
- CONSTRUCT_MEMBER_ID_AXES: tuple[tuple[str, str], ...]¶
Each
ConstructDefinitionmember-reference field paired with theIdReferenceCheckerid set its values must resolve against. Public because the pairing is policy with a coverage gate of its own: a member axis missing here is walked by nothing, so its references are never checked and the gap is silent.
- check_construct_refs(checker, revision)[source]¶
Check construct member references for one revision.
The
ModeloRevisionsupplies construct declarations. TheIdReferenceCheckersupplies the typed member-id sets and legal/source-ref closure checks.- Return type:
- Parameters:
checker (IdReferenceChecker)
revision (ModeloRevision)
- check_dependency_classification_refs(checker, revision)[source]¶
Check dependency-classification construct and binding refs.
The
ModeloRevisionsupplies dependency classifications. The checker verifies target constructs, binding refs, and legal/source refs against the snapshot id sets.- Return type:
- Parameters:
checker (IdReferenceChecker)
revision (ModeloRevision)
- check_export_layout_refs(checker, revision)[source]¶
Check export-layout record and field references for one revision.
The
ModeloRevisionsupplies export layouts. The checker validates dictionary source refs, record positive-casilla gates, row-field casillas, field casilla/binding refs, and field legal/source refs.- Return type:
- Parameters:
checker (IdReferenceChecker)
revision (ModeloRevision)
- check_binding_selector_shapes(checker, revision)[source]¶
Validate each binding’s provider against its family’s build-time invariants.
- Parameters:
checker (
IdReferenceChecker) – The reference checker whose failures list accumulates any selector-shape validation errors found.revision (
ModeloRevision) – TheModeloRevisionwhose binding selectors are validated.
- Return type: