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
fincasPublic domain facade for the finca aggregates that are not yet canonical calculation-source state.
_source_fincasBlocked resolver adapter that turns this readiness fact into a source-mesh diagnostic.
CalculationSourceDiagnosticShared diagnostic carrier emitted while the source remains blocked.
- class FincasSourceReadiness(**data)[source]¶
Bases:
BaseModelWhether the fincas domain is ready to act as a calculation source.
- 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:
- Returns:
A
FincasSourceReadinesswithready = Falseand the blocking reason, until fincas persistence is canonical.