You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add concurrent steps support in workflow definitions (#191)
Enable workflows to specify nested arrays of step IDs to indicate steps
that can be executed in parallel. The meta template renders concurrent
step groups as "Concurrent Steps" with numbered "Background Task" items.
Changes:
- Schema: Added STEP_ID_SCHEMA, CONCURRENT_STEPS_SCHEMA, WORKFLOW_STEP_ENTRY_SCHEMA
- Workflow steps accept either string (sequential) or array (concurrent)
- Single-item arrays indicate steps with multiple parallel instances
- Parser: Added WorkflowStepEntry dataclass for sequential/concurrent groups
- Updated Workflow to use step_entries with backward-compatible steps property
- Added get_step_entry_position_in_workflow() and get_concurrent_step_info()
- Generator: Build step_entries with concurrency info in workflow context
- Template: Render concurrent steps with "Background Task N" formatting
- Tests: Added test fixture and 9 new unit tests
- Docs: Updated architecture.md and CHANGELOG.md
https://claude.ai/code/session_011qMp5U4AFQLMbJQvCE8Ck4
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments