Parent
#355
What to build
Extract executeFlow(ctx *Context, runScripts func() error) error containing the four phases that execute() and executeParallel() currently duplicate verbatim: initCmd, executeDepends, persistChecksum, and executeAfterScript. Both existing methods become thin callers that supply either a sequential or a parallel runScripts closure.
No observable behaviour changes. The test suite from #363 must remain fully green as the verification signal.
Acceptance criteria
Blocked by
Parent
#355
What to build
Extract
executeFlow(ctx *Context, runScripts func() error) errorcontaining the four phases thatexecute()andexecuteParallel()currently duplicate verbatim:initCmd,executeDepends,persistChecksum, andexecuteAfterScript. Both existing methods become thin callers that supply either a sequential or a parallelrunScriptsclosure.No observable behaviour changes. The test suite from #363 must remain fully green as the verification signal.
Acceptance criteria
executeFlowfunction (or equivalent internal helper) encapsulates initCmd, executeDepends, persistChecksum, and executeAfterScriptexecute()delegates toexecuteFlowwith a sequential runScripts closureexecuteParallel()delegates toexecuteFlowwith a parallel (errgroup) runScripts closureExecute,NewExecutor,Context, error types) is unchangedBlocked by