aeat.application.inventory._source_readiness module

Inventory calculation-source readiness.

Declares whether inventory may act as a calculation source that feeds registry bindings. Inventory is currently an application service (InventoryService) over the profile inventory; its movements and valuations are not yet persisted through the canonical secure-storage revision boundary, so enrolling inventory as a live calculation source would resolve bindings against non-canonical state. Until that persistence is hardened, inventory readiness is NOT ready and the aggregation resolver must refuse visibly (a blocked-readiness diagnostic) rather than resolve a silent blank.

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

See also

InventoryService

Application service whose current persistence boundary keeps inventory out of the live calculation-source mesh.

_source_inventory

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

CalculationSourceDiagnostic

Shared diagnostic carrier emitted while the source remains blocked.

class InventorySourceReadiness(**data)[source]

Bases: BaseModel

Whether inventory is ready to act as a calculation source.

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

Return the current inventory calculation-source readiness.

Inventory is not yet a calculation source: its movements and valuations are served by an application service over profile inventory and 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 inventory persistence is hardened.

Return type:

InventorySourceReadiness

Returns:

An InventorySourceReadiness with ready = False and the blocking reason, until inventory persistence is canonical.