v0.5.0 (November 8, 2026) — The first step runs in the runner
Changed
WorkflowStem.Runner.start/3no longer runs the first step in the caller. It returns{:ok, execution_id}once the runner process has offered itself to the control store and emitted:started; the engine'sinit/2, which runs the initial state's entry action, now runs in the runner. A long first step no longer blocks the caller, and a host that follows the run's events sees them from the start.- Init errors arrive as events, not as
start/3's return value. A spec the engine refuses ({:error, reason}) or an entry action that fails marks the run failed and emits:step_failed(with the reason) and:paused; aninit/2that raises, throws, exits or returns an unexpected value does the same with{:init_raised, message},{:init_threw, value},{:init_exited, reason}or{:unexpected_init_result, value}, and an init crash never takes the caller down through the link.start/3returns{:error, reason}only when the runner does not report started within a second (:runner_start_timeout); that runner is now stopped rather than left running, and its report can never answer a laterstart/3from the same process. - A failed step whose runtime names no state is reported as step
"unknown", not"". - An event sink that raises, throws or exits, or whose
append_event/2returns{:error, reason}, is logged once per run instead of crashing the run and its linked caller (an error return used to pass in silence). The other adapter calls now absorb a throw too, as they already did a raise or an exit. - A control store that fails to give a pause report leaves the default
report (it used to be
:ok).
Fixed
- A first step that waits. An initial state whose entry action returns
{:wait, runtime, cfg}(a checkpoint as the first step) raised aCaseClauseErrorin the caller. It now waits like any later step: it emits:step_started, is checkpointed, emits its wait (:checkpointor:paused) and resumes on{:resume, payload}. - A spec without a profile. A spec with no
:profile(orprofile: nil) no longer raises aKeyErrorwithmobus_stepwise0.3; it defaults to:stepwise. An unsupported profile returns{:error, {:unsupported_profile, profile}}instead of raising.
Dependencies
- Requires
mobus_stepwise ~> 0.3.0(was~> 0.2.0), so the stepwise engine runs on the 0.3.x line. - Lock updates pulled in transitively by that bump:
jason1.4.5 andtelemetry1.4.2.
v0.4.0 (August 15, 2026) — Full ALF routing emission
Added
- Runtime pipeline generation now emits recursive
plug_withbodies, including nested route primitives.
Changed
- Route validation rejects malformed primitive options and
gotodeclarations without a requiredtotarget before runtime AST emission. - The declared Elixir requirement is now
~> 1.19, matching the effective minimum already required bymobus_stepwise.
v0.3.1 (June 2026) — Public release hygiene
Changed
- Documentation cleanup. Rewrote the changelog and trimmed internal-only framing from module docs so the package reads as a standalone library.
CHANGELOG.mdis now included in the Hex package files list.
v0.3.0 (June 2026) — Host-parameterized Runner
Added
WorkflowStem.Runner— a host-parameterized execution runner that owns the FSM walk, wait/resume loop, control checks, checkpoint hooks, and canonical event emission. Hosts plug in persistence, live publication, and control state through adapter behaviours.start/3,start_from_runtime/2, andreplay/3with tenant-scoped executions, durable ordered events, and safe adapter calls.
WorkflowStem.EventLog— an append-then-publish facade: append the canonical event durably, publish the persisted copy, and replay for late subscribers.- Adapter behaviours:
Adapters.EventSink,Adapters.ControlStore,Adapters.CheckpointStore,Adapters.CapabilityInvoker, andAdapters.ProcessController.
Changed
mobus_stepwisedependency switched from a git ref to the Hex0.2.0release.
v0.2.0 (May 2026) — Engine delegation & conversation generalization
Added
- Dependency on
mobus_stepwise. The shared stepwise substrate (engine, capabilities, several components) now comes from themobus_stepwisepackage. Roughly 440 lines of duplicated substrate were replaced withdefdelegate. WorkflowStem.Application— bridges:workflow_stemadapter config keys into:mobus_stepwiseapplication env at startup. Consumers configure:workflow_stemkeys; the engine reads them transparently from:mobus_stepwise.extensionsfield onWorkflowStem.Projection, structurally compatible with the engine's projection. Thebuild_extensions/2hook respectsspec.projection_enricher.
Changed
StepwiseEngineis now a thin shim overMobus.Stepwise.Engine.init/handle_event/restoredelegate to the engine; projection structs are converted on the way back. The shim injectsWorkflowStem.Pipelines.Stepwiseas the defaultpipeline_mod, since the static pipeline lacks conversation support.- Duplicated substrate replaced with
defdelegate:Artifacts,Components.FsmBreakpoint,Components.StepwiseContextMerge, andComponents.StepwiseAction. - Component hardening inherited from the engine:
- Wait short-circuit in
StepwiseAdvance+StepwiseEntryAction: capabilities returning{:wait, ...}are honoured at all pipeline stages. - Transition-policy hook:
spec.transition_policycan:allow,{:redirect, state}, or{:deny, reason}before every state move. - Projection-enricher hook:
spec.projection_enrichercan inject custom fields intoprojection.extensions. metapassthrough:runtime.metais included in capability input.- Init-error propagation:
init/2returns{:error, {:initial_entry_action_failed, reason, runtime}}when the initial state's entry capability fails. - Telemetry spans on all lifecycle phases (
[:mobus_stepwise, :engine, *]).
- Wait short-circuit in
Changed: Conversation completion (behaviour change)
WorkflowStem.Components.StepwiseAction no longer hardcodes domain-specific
field names in completion events. Completion payloads now merge transparently
into runtime.context with no interpretation. Consumers define their own
completion vocabulary in their Adapters.ConversationHandler implementation.
The test handler at test/support/test_conversation_handler.ex demonstrates
the generalized contract using conversation_response, conversation_history,
and conversation_complete.
Removed
StepwiseEngineno longer contains its own ALF orchestration, projection computation, or pipeline management — all delegated to the engine.WorkflowStem.Capabilitiesremains for direct consumer use but is no longer called internally.
v0.1.0 (April 2026)
Initial public release: stepwise, FSM, and flow engines backed by ALF pipelines, with spec → IR compilation and static (non-generated) pipelines.