cadrumo.domain.calculations.registry.setup_profile_bindings module¶
Registry-backed setup and wizard binding declarations.
The setup surface has several consumers which need the same answer-to-profile coordinates: the core answer projector, deadline profile construction, the Typer option surface, and page decoration. They all resolve this small catalogue through one mapping-fact seam so none of those consumers becomes a second home for the declarations.
This module deliberately keeps resolution lazy. Importing the core answer model must remain possible before the bundled authority is initialised; a consumer resolves the authored catalogue only when it actually projects or renders a setup value.
- mapping_fact_entries(fact_id, *, authority=None)[source]¶
Resolve one string mapping fact and return its exact entries.
The returned mapping is copied at the boundary; the authority remains the only source of the declarations and no Python fallback is retained when a required entry is absent.
- Return type:
- Parameters:
fact_id (str)
authority (GovernedFactSource | None)
- setup_answer_declarations(*, authority=None)[source]¶
Return answer-field profile bindings from the setup catalogue.
- profile_field_bindings(*, authority=None)[source]¶
Return profile-field names and their canonical persisted paths.
- Return type:
- Parameters:
authority (GovernedFactSource | None)