aeat.application.verification._verify module

Registry-backed declaration verification.

Verifies a parsed declaracion against the engine output for the same inputs. The ValidatedRegistryAuthority supplies the RegistrySnapshot used to run the formula engine over operator-provided casilla values.

The verifier consumes InboundDeclaracionObservation values from the inbound parser, selects the law-determined registry revision for the filing period, calculates the snapshot with supplied BindingId values, and emits a local VerificationVerdict. It does not perform live AEAT reads or filing-state reconciliation.

verify_declaracion(declaracion, *, binding_values=None, registry_root=None)[source]

Compare the printed casilla values against a registry snapshot.

Parameters:
Return type:

VerificationVerdict

Returns:

A frozen VerificationVerdict carrying the status, every ClassifiedDiscrepancy, the coverage fraction, a multilingual narrative key, and the UTC timestamp the verdict was produced.

Raises:

VerificationError – When the registry snapshot cannot be loaded for the declaracion’s modelo and period.