aeat.domain.calculations.registry._validate_dependency_sections module

Relation, dependency-classification, and filing-schedule validation helpers.

Validates relations, dependency classifications, and filing schedules declared on a ModeloRevision for reference closure and legal grounding.

Relation validation ties RelationDefinition records back to declared DataBindingDefinition targets. Dependency classification validation checks DependencyClassificationDefinition rows against constructs, relations, and official-source evidence.

See also

aeat.domain.calculations.registry._validate_revision_sections.validate_revision_definition()

Per-revision dispatcher that invokes these section validators.

aeat.domain.calculations.registry.relation_source_requirements()

Runtime relation requirement projection that relies on validated relation/dependency metadata.

validate_relation_section(failures, *, prefix, revision, bindings, binding_by_id, legal_refs, source_refs, evidence)[source]

Append relation reference, period, and grounding failures.

The supplied ModeloRevision contributes relation declarations. Each relation must target a known BindingId, include the legal and source refs carried by that target binding, and stay inside the revision period selector.

Return type:

None

Parameters:
validate_dependency_classification_section(failures, *, prefix, revision, construct_by_id, relation_by_id, legal_refs, source_refs, evidence)[source]

Append dependency-classification closure and duplicate failures.

The ModeloRevision supplies dependency classifications and relations. Each DependencyClassificationDefinition must cite known refs, point at declared constructs/relations, and cover every relation source modelo with a dependency-bearing treatment.

Return type:

None

Parameters:
validate_filing_schedule_section(failures, *, prefix, revision, legal_refs, source_refs, evidence)[source]

Append filing-schedule reference and period-selector failures.

The ModeloRevision supplies the accepted period selector and filing-schedule declarations. Each schedule and profile condition must be legally/source grounded and may only name periods declared by the revision selector.

Return type:

None

Parameters: