aeat.domain.calculations.registry._validate_revision_sections module

Per-revision registry section validation dispatch.

Orchestrates all per-section validators for a single ModeloRevision within its ModeloDefinition, collecting every failure into a flat list returned to the registry-level validator.

The dispatcher builds a RevisionValidationContext once and reuses it across record, surface, dependency, algorithm, completeness, and closure validators. Legal/source refs are checked through the shared EvidenceValidator.

See also

aeat.domain.calculations.registry.RegistryValidator

Registry-level validator that calls validate_revision_definition().

aeat.domain.calculations.registry._validate_record_sections

Record-section validators dispatched from this module.

aeat.domain.calculations.registry._validate_revision_closure

Closure validators dispatched after section-level checks.

validate_revision_definition(modelo, revision, *, legal_refs, source_refs, evidence, justificante_corpus_root)[source]

Return all registry validation failures for one modelo revision.

The ModeloDefinition supplies the modelo scope and the ModeloRevision supplies the revision payload. The function applies revision-level reference/evidence gates, builds the validation context, dispatches all section validators, then runs closure validators before returning the accumulated failures.

Return type:

list[str]

Parameters: