aeat.domain.calculations.registry package

Registry-backed AEAT legal calculation authority.

The public surface re-exports every canonical spine type so callers import from one location. Core structs include ModeloDefinition (static modelo metadata), ModeloRevision (one period-scoped revision of a modelo), RegistrySnapshot (validated snapshot for a single filing context), ValidatedRegistryAuthority (the production access point that loads, validates, and caches registry material), and CasillaObservation (one typed casilla value carrying full legal and source provenance).

Registry definitions are declarative authority, not application workflow state. ValidatedRegistryAuthority loads bundled TOML, validates cross-file references, and returns snapshots. calculate_registry_snapshot() evaluates the snapshot with already-resolved casilla inputs, binding values, enum binding values, relation values, and date context. The application source mesh resolves those values before entering this package.

The facade also exposes the typed binding and observation helpers used by mesh resolvers: ledger observations, invoice observations, previous-filing carries, relation materialisation, detail-row folds, unsupported-observation diagnostics, export layout resolution, applicability rules, verification expectations, live parity/oracle structures, workbook parity helpers, and registry query reports.

See also

ValidatedRegistryAuthority

Production loader, validator, and snapshot cache for bundled registry material.

calculate_registry_snapshot()

Formula runtime entry point that emits CasillaObservation rows with legal and source provenance.

DataBindingDefinition

Declarative binding contract resolved by application source owners.

application.aggregation

Source-mesh contract that supplies application.aggregation.CalculationSourceResolution envelopes before registry calculation.

application.calculations

Prior-filing, relation-prefill, IVA-wallet, and row-set stores that feed registry binding and relation inputs.

Submodules