cadrumo.domain.calculations.registry.revision_context module¶
Lookup context for per-revision validation.
Builds the RevisionValidationContext lookup tables from a
ModeloRevision, aggregating id sets and by-id mappings used
across every per-section validator.
- class IdentifiedRecord(*args, **kwargs)[source]¶
Bases:
ProtocolA record carrying a string id, which is all indexing by id requires.
- records_by_id(records)[source]¶
Index identified records by their stable identifiers.
- Return type:
dict[str,TypeVar(RecordT, bound=IdentifiedRecord)]- Parameters:
records (Iterable)
- ConstructMemberObject¶
Every schema class the development compiler may look up as a construct member. Every member of this union declares
legal_refsandsource_refs– the single source of truth for the type thatdev.registry.compiler.validate_revision_closurebuilds its construct member objects from, so the two stay in lock-step rather than one drifting to a bareobject.
- collect_export_field_ids(revision)[source]¶
Collect field identifiers declared by every export layout.
Core types:
ModeloRevision.- Return type:
- Parameters:
revision (ModeloRevision)
- class RevisionValidationContext(ids_by_kind, export_layout_ids, extraction_profile_ids, cross_reference_ids, workbook_parity_ids, verification_expectation_ids, application_link_ids, deadline_window_ids, filing_schedule_ids, casilla_by_id, formula_by_id, binding_by_id, parameter_by_id, export_layout_by_id, extraction_profile_by_id, cross_reference_by_id, workbook_parity_by_id, verification_expectation_by_id, application_link_by_id, deadline_window_by_id, filing_schedule_by_id, construct_by_id, dependency_classification_by_id, casillas, formulas, bindings, parameters, resolvable_values, exported_casillas)[source]¶
Bases:
objectPre-indexed revision data shared by construct validators.
- Parameters:
casilla_by_id (dict[CasillaId, CasillaDefinition])
formula_by_id (dict[str, FormulaDefinition])
binding_by_id (dict[BindingId, BindingDefinition])
parameter_by_id (dict[str, ParameterDefinition])
export_layout_by_id (dict[str, ExportLayoutDefinition])
extraction_profile_by_id (dict[str, ExtractionProfileDefinition])
cross_reference_by_id (dict[str, LiveCrossReferenceDecision])
workbook_parity_by_id (dict[str, WorkbookParityReference])
verification_expectation_by_id (dict[str, VerificationExpectationDefinition])
application_link_by_id (dict[str, ApplicationLinkDefinition])
deadline_window_by_id (dict[str, DeadlineWindowDefinition])
filing_schedule_by_id (dict[str, ModeloScheduleDefinition])
construct_by_id (dict[str, ConstructDefinition])
dependency_classification_by_id (dict[str, DependencyClassificationDefinition])
formulas (dict[str, FormulaDefinition])
bindings (set[BindingId])
-
casilla_by_id:
dict[TypeAliasType,CasillaDefinition]¶
-
formula_by_id:
dict[str,FormulaDefinition]¶
-
binding_by_id:
dict[TypeAliasType,BindingDefinition]¶
-
parameter_by_id:
dict[str,ParameterDefinition]¶
-
export_layout_by_id:
dict[str,ExportLayoutDefinition]¶
-
extraction_profile_by_id:
dict[str,ExtractionProfileDefinition]¶
-
cross_reference_by_id:
dict[str,LiveCrossReferenceDecision]¶
-
workbook_parity_by_id:
dict[str,WorkbookParityReference]¶
-
verification_expectation_by_id:
dict[str,VerificationExpectationDefinition]¶
-
application_link_by_id:
dict[str,ApplicationLinkDefinition]¶
-
deadline_window_by_id:
dict[str,DeadlineWindowDefinition]¶
-
filing_schedule_by_id:
dict[str,ModeloScheduleDefinition]¶
-
construct_by_id:
dict[str,ConstructDefinition]¶
-
dependency_classification_by_id:
dict[str,DependencyClassificationDefinition]¶
-
formulas:
dict[str,FormulaDefinition]¶
- build_revision_validation_context(revision)[source]¶
Build lookup indexes needed to validate one modelo revision.
Core types:
ModeloRevision.- Return type:
- Parameters:
revision (ModeloRevision)