cadrumo.domain.categories.registry module

Artifact-backed spending-category profile registry.

load_category_profiles(*, operation)[source]

Return the latest profiles while retaining each declared dated cap schedule.

Return type:

Mapping[SpendingCategory, CategoryProfile]

Parameters:

operation (PinnedAuthorityOperation)

category_profile_years(*, operation)[source]

Return the supported filing years every category profile resolves for.

Profiles resolve through the registry’s temporal projection, so coverage is the registry’s enumerated support span rather than a reading of each variant’s own window.

Return type:

frozenset[int]

Parameters:

operation (PinnedAuthorityOperation)

resolve_category_profiles(year, *, operation)[source]

Resolve every category profile for one exact filing year.

Return type:

Mapping[SpendingCategory, CategoryProfile]

Parameters: