Skip to content

feat(orchestration): add sub-workflow composition as reusable blocks (#2143)#3063

Merged
mrveiss merged 1 commit intoDev_new_guifrom
feat/2143-sub-workflows
Mar 31, 2026
Merged

feat(orchestration): add sub-workflow composition as reusable blocks (#2143)#3063
mrveiss merged 1 commit intoDev_new_guifrom
feat/2143-sub-workflows

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 31, 2026

Summary

  • SubWorkflowExecutor enables workflows to call other workflows as steps
  • Variable mapping from parent to child via input_mapping with VariableResolver
  • Child results stored as StepOutput for parent variable piping
  • Max nesting depth guard (5) prevents infinite recursion
  • is_sub_workflow_step() predicate routes in WorkflowExecutor
  • Backward-compatible: workflow_fetcher is optional
  • 28 tests across 5 test classes

Closes #2143

Test plan

  • Step detection: valid, wrong type, missing/empty workflow_id
  • Extraction: minimal, full mapping, validation errors
  • Basic execution: success, failure, not-found, correct ID
  • Variable mapping: literals, ${steps...}, unresolvable, empty, output_key
  • Max depth: at limit (raises), below limit (executes)
  • flake8 passes

🤖 Generated with Claude Code

…2143)

SubWorkflowExecutor enables workflows to call other workflows as steps
with variable mapping and output capture. Max nesting depth guard (5).
Backward-compatible — existing callers unaffected. 28 tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

@mrveiss mrveiss merged commit 6f03823 into Dev_new_gui Mar 31, 2026
4 of 5 checks passed
@mrveiss mrveiss deleted the feat/2143-sub-workflows branch March 31, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant