cadrumo.application.aggregation.inventory module

Encrypted inventory-ledger resolver for typed inventory binding projections.

class InventoryLedgerRepositoryProtocol(*args, **kwargs)[source]

Bases: Protocol

Read boundary required by the inventory source resolver.

load()[source]

Load the encrypted inventory ledger document.

Return type:

InventoryLedgerDocument

class InventorySourceResolver(*, inventory_repository=None)[source]

Bases: object

Resolve inventory bindings from one encrypted schema-v3 ledger document.

This adapter selects an exact activity/year ledger and delegates every monetary and authority decision to the sealed inventory projection. It does not aggregate across activities, allocate values, enroll itself in the mesh, or provide a manual fallback.

Parameters:

inventory_repository (InventoryLedgerRepositoryProtocol | None)

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

Resolve inventory bindings for the selected calculation context.

Return type:

CalculationSourceResolution

Parameters:

context (CalculationSourceContext)