Job Execution Lifecycle

JobExecutionEngine — the single execution path shared by the CLI, rc.invoke() and the standalone binary

Job Execution Lifecycle JobExecutionEngine — the single execution path shared by the CLI, rc.invoke() and the standalone binary 01 / Entry Points 02 / JobExecutionEngine 03 / Workflow & Dependencies EX / Failure Exits 05 / Result & History Resolve Validate & gate Execute Entry Points · CLI, rc.invoke(), binary · Entry Points › Resolve Entry Points CLI, rc.invoke(), binary ExecutionContext · materialize fn, bind DI · JobExecutionEngine › Resolve ExecutionContext materialize fn, bind DI Resolve DI · registry + capabilities · JobExecutionEngine › Resolve Resolve DI registry + capabilities Validate Args · Field() constraints · JobExecutionEngine › Validate & gate Validate Args Field() constraints PRE_EXECUTE Hooks · before_job events · JobExecutionEngine › Validate & gate PRE_EXECUTE Hooks before_job events Job Body · middleware wraps body · JobExecutionEngine › Execute Job Body middleware wraps body Workflow Prelude · before DI and hooks · Workflow & Dependencies › Resolve Workflow Prelude before DI and hooks Dependencies · then pre-flight skip · Workflow & Dependencies › Validate & gate Dependencies then pre-flight skip Fail Before Run · AFTER_FAILURE only · Failure Exits › Validate & gate Fail Before Run AFTER_FAILURE only JobResult · at invoke_depth 0 · Result & History › Execute JobResult at invoke_depth 0 dep failed execute() FAILURE args valid invalid Legend User UI Agent logic Policy Tool action Context / trace