Skip to main content

Module workflow

Module workflow 

Source
Expand description

Wizard workflow hooks and next_wizard chain (REQ-0124–0126). Wizard workflow hooks and next_wizard chain loop (REQ-0124–0126).

Spawn, timeout, and stderr-tail go through crate::extensions::run_script only — this module must not call std::process::Command::new (ADR-0023).

Structs§

Allowlist
Allowlisted roots for workflow script and next_wizard paths.
NextInvocation
Next hop loaded from next_wizard.path (CLI resolves; host does not).
WorkflowRunner
Runs workflow.pre / workflow.post through Phase F preexec helpers.

Enums§

WorkflowError
Workflow / chain failure (stderr via wyvern_schema::ErrorCode::WorkflowError).

Constants§

NEXT_WIZARD_MAX_DEPTH
Maximum wizard sessions in one next_wizard chain (REQ-0126).
WORKFLOW_SCRIPT_TIMEOUT
Timeout for every workflow pre/post script (REQ-0124 / REQ-0125).

Functions§

check_chain_depth
Fail when hop exceeds NEXT_WIZARD_MAX_DEPTH.
merge_wizard_config
Deep-merge base ← input ← config_patch.
resolve_next_wizard
Resolve an optional next_wizard object on finish JSON.