Executes a validated workflow document.
The executor topologically sorts the step DAG using each step's
declared needs: plus the step ids referenced by ${...}
expressions inside any of its fields. Each step is then run in
turn:
- Skip the step if any of its dependencies were skipped.
- Evaluate
when:. If it is false, mark the step as skipped. - Interpolate the step's fields against the current context.
- Dispatch on
kindto the matching handler (cmd,http,map). - Record the step's output in the context.
After all steps have run, the top-level output expression is
resolved and returned.