aeat.domain.fincas._source_readiness module

Fincas calculation-source readiness.

Declares whether the fincas domain may act as a calculation source that feeds registry bindings. The fincas rendimiento and amortization aggregates are computed in-domain (fincas), but they are not yet persisted through the canonical secure-storage revision boundary, so enrolling fincas as a live calculation source would resolve bindings against non-canonical state. Until that persistence is hardened, fincas readiness is NOT ready and the aggregation resolver must refuse visibly (a blocked-readiness diagnostic) rather than resolve a silent blank.

The readiness is deliberately a pure, context-independent domain fact: fincas is unready regardless of the modelo or period being calculated.

See also

fincas

Public domain facade for the finca aggregates that are not yet canonical calculation-source state.

_source_fincas

Blocked resolver adapter that turns this readiness fact into a source-mesh diagnostic.

CalculationSourceDiagnostic

Shared diagnostic carrier emitted while the source remains blocked.

class FincasSourceReadiness(**data)[source]

Bases: BaseModel

Whether the fincas domain is ready to act as a calculation source.

Parameters:
ready: bool
source_kind: str
reason: str
fincas_source_readiness()[source]

Return the current fincas calculation-source readiness.

Fincas is not yet a calculation source: its rendimiento and amortization aggregates are not persisted through the canonical secure-storage revision boundary, so a resolver enrolled today would read non-canonical state. The surface is provisioned but blocked until fincas persistence is hardened.

Return type:

FincasSourceReadiness

Returns:

A FincasSourceReadiness with ready = False and the blocking reason, until fincas persistence is canonical.