cadrumo.application.modelo._calculation_aggregation_context module

Context loading for bucket-aggregation calculation actions.

Core types: RegistrySnapshot.

load_bucket_aggregation_context(work_unit_id, *, work_unit_repository, profile)[source]

Return (work_unit, snapshot, profile) for aggregation calculation.

profile is the record the calling command already loaded, or None for the gate to load it; either way the returned profile is the one the readiness gate checked, and it is the only profile the calculation reads.

Return type:

tuple[WorkUnit, RegistrySnapshot, ModeloWorkProfile]

Parameters: