cadrumo.application.aggregation.inventory module¶
Encrypted inventory-ledger resolver for typed inventory binding projections.
- class InventoryLedgerRepositoryProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolRead boundary required by the inventory source resolver.
- class InventorySourceResolver(*, inventory_repository=None)[source]¶
Bases:
objectResolve 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)
-
owned_sources:
ClassVar[tuple[BindingSourceKind,...]]¶
- resolve(context)[source]¶
Resolve inventory bindings for the selected calculation context.
- Return type:
- Parameters:
context (CalculationSourceContext)