Definitively. Run. Coordinator
(definitively v0.3.1)
Copy Markdown
Application facade for starting and controlling ephemeral workflow runs.
Summary
Functions
Approves an approval gate (label must exist on the current state's on map).
Cancels a run when the program defines a :failed final state.
Continues an in-flight run until final, approval, or error.
Starts a run from a YAML program path; drives active nodes until a final state.
Loads a program and starts an engine process registered by run_id.
Returns a snapshot of the run's current FSM state.
Executes the active node, classifies the result, and transitions the engine.
Functions
Approves an approval gate (label must exist on the current state's on map).
Cancels a run when the program defines a :failed final state.
Continues an in-flight run until final, approval, or error.
Starts a run from a YAML program path; drives active nodes until a final state.
Loads a program and starts an engine process registered by run_id.
@spec status(String.t()) :: {:ok, Definitively.Run.Snapshot.t()} | {:error, term()}
Returns a snapshot of the run's current FSM state.
Executes the active node, classifies the result, and transitions the engine.