aeat.application.aggregation._source_profile module¶
Source-mesh resolver for user-profile backed registry bindings.
Owns PROFILE and returns the
profile-sourced values as a CalculationSourceResolution.
Accepts an optional
RegistrySnapshot at construction;
when none is supplied the resolver fetches the matching snapshot lazily from the
resident registry authority at resolution time.
- class ProfileSourceResolver(*, caller_binding_ids=(), registry_snapshot=None, profile_record=None)[source]¶
Bases:
objectResolve formula-consumed
source = "profile"bindings.- Parameters:
caller_binding_ids (Iterable[BindingId])
registry_snapshot (RegistrySnapshot | None)
profile_record (object | None)
- resolver_id¶
-
owned_sources:
tuple[BindingSourceKind,...]¶
- resolve(context)[source]¶
Resolve all
source="profile"bindings for the given calculation context.Fetches the
RegistrySnapshotlazily from the resident registry authority when none was supplied at construction, then delegates toresolve_profile_sourced_bindings, which returns the completeCalculationSourceResolution(typed binding channels plus aCalculationSourceProvenancerow per profile-sourced binding).- Parameters:
context (
CalculationSourceContext) – ACalculationSourceContextcarrying the modelo, filing year, period, and bucket identifier needed to select the correct registry snapshot.- Return type:
- Returns:
A
CalculationSourceResolutionwith typed binding maps and a provenance tuple covering every profile-sourced binding.