Step Execution Engine
class StepExecutionEngine<C : ExecutionContext>(planBuilder: (C) -> List<Step<C>>, timeBufferMs: Long = 200)
Orchestrates the execution of a list of Steps based on a given plan.
Each step is executed in order. Execution stops on:
failure (
Outcome.FAIL
)friction required (
Outcome.FRICTION_REQUIRED
)time budget exceeded
Parameters
C
The context type shared across all steps.
plan Builder
A lambda that builds the list of steps to execute, based on the context.
time Buffer Ms
Minimum buffer (ms) required before starting the next step.