cadrumo.application.flows.wizard_projection module

One-way projection of the wizard catalogue into flow definitions.

The one-shot wizard catalogue (cadrumo.application.wizard) remains the authoring source of the setup questions: it keeps feeding the compile_profile_keys projection and the register_wizard_catalogue core slot. This module adds the one-way projection from that vocabulary into the substrate’s FlowDefinition so the engine and its frontends can drive the same questions without a second authored catalogue — one source, two descriptor views, zero drift by construction.

The mapping is mechanical: question ids become page keys unchanged, profile_key becomes domain_key, the translation-key prompt and help become locale-key CopyRef references, and the visible_when clause shapes carry over one-to-one. Nothing here re-derives requirement or visibility semantics.

flow_definition_from_wizard_flow(flow, *, checkpoint)[source]

Project a wizard descriptor into a substrate flow definition.

checkpoint is supplied by the caller because the per-mode declaration is a flow-surface decision the one-shot descriptor never carried.

Return type:

FlowDefinition

Parameters: