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:

dict[str, str]

Parameters:
setup_answer_declarations(*, authority=None)[source]

Return answer-field profile bindings from the setup catalogue.

Return type:

dict[str, tuple[str, type[str] | type[bool], str | None]]

Parameters:

authority (GovernedFactSource | None)

profile_field_bindings(*, authority=None)[source]

Return profile-field names and their canonical persisted paths.

Return type:

dict[str, str]

Parameters:

authority (GovernedFactSource | None)

wizard_page_declarations(*, authority=None)[source]

Return page format/widget declarations keyed by page ID.

Return type:

dict[str, dict[str, str]]

Parameters:

authority (GovernedFactSource | None)

legal_source_kind_declarations(*, authority=None)[source]

Return legal-reference kind to citation-source mappings.

Return type:

dict[str, str]

Parameters:

authority (GovernedFactSource | None)