aeat.application.calculations package

Application-layer calculation source stores, proof records, and prefill helpers.

The registry runtime consumes already-resolved binding_values and relation_values for domain.calculations.registry.calculate_registry_snapshot(). This package is the public application facade for the stores, source resolvers, and typed proof records that produce those inputs from local filing history, IVA wallet reconciliation, relation prefill, row-set detail captures, and cross-period clean-state evidence.

This facade is not the formula runtime. It owns persisted observations, source-proof assembly, carry-forward policy, and source resolvers that feed the registry engine; the registry remains the authority for casilla definitions, binding declarations, relation closure, and formula execution.

Direct prior-filing bindings and registry relations are deliberately separate source owners. PreviousFilingSourceResolver resolves core.BindingSourceKind.PREVIOUS_FILING binding carries; RelationPrefillSourceResolver resolves core.BindingSourceKind.RELATION_PREFILL relation fold-ins and their materialised target bindings; IvaWalletDecisionSourceResolver resolves the Modelo 303 core.BindingSourceKind.IVA_WALLET_DECISION compensation authority outside the ordinary previous-filing carry; and IvaCompensationAnnualPartitionSourceResolver resolves Modelo 390 core.BindingSourceKind.IVA_COMPENSATION_ANNUAL_PARTITION boxes 97 and 662 from the same FIFO carry projection.

The main public surfaces are:

See also

application.aggregation

Defines the source-mesh contracts consumed by the calculation path.

domain.calculations.registry

Owns the pure registry snapshots, binding definitions, relation requirements, and formula runtime.

application.modelo

Orchestrates these package-level services inside work calculation, verification, filing, and export workflows.

Submodules