aeat.application.aggregation._source_fincas module

Source-mesh readiness resolver adapter for the fincas domain.

Provisions the fincas calculation-source surface without enrolling it as a live calculation source. The fincas domain is not yet ready to feed registry bindings (fincas_source_readiness()), so this resolver resolves NO binding value and emits a blocked-readiness CalculationSourceDiagnostic. It is deliberately NOT registered in merge_source_resolutions(): it exists so the surface is provisioned and its unreadiness is visible rather than a silent blank (no-dormant-source-resolvers: provision the surface, refuse visibly). When fincas persistence is hardened, the readiness flips and this adapter is replaced by a real projecting resolver enrolled in the mesh.

See also

fincas_source_readiness()

Domain readiness fact that supplies the blocking reason.

CalculationSourceResolution

Shared source-mesh envelope returned by this blocked resolver.

_source_inventory

Sibling readiness adapter for the inventory calculation-source surface.

class FincasSourceReadinessResolver[source]

Bases: object

Refuse the fincas calculation source visibly until it is ready.

Owns no live binding source (owned_sources = ()) because fincas is not enrolled as a calculation source. resolve() returns an empty resolution carrying a blocked-readiness diagnostic whenever fincas is not ready.

resolver_id
owned_sources: tuple[BindingSourceKind, ...]
resolve(context)[source]

Return an empty resolution plus a blocked-readiness diagnostic when unready.

Parameters:

context (CalculationSourceContext) – The calculation source context. Unused: fincas readiness is a context-independent fact (unready regardless of modelo or period).

Return type:

CalculationSourceResolution

Returns:

A CalculationSourceResolution that resolves no binding value and carries one source_domain_not_ready diagnostic while fincas is not ready.