Skip to content

Add orchestrator pattern example#329

Open
axon-agent[bot] wants to merge 2 commits intomainfrom
axon-task-328
Open

Add orchestrator pattern example#329
axon-agent[bot] wants to merge 2 commits intomainfrom
axon-task-328

Conversation

@axon-agent
Copy link

@axon-agent axon-agent bot commented Feb 14, 2026

Summary

  • Add examples/05-orchestrator/ demonstrating the fan-out/fan-in orchestrator pattern using dependsOn and prompt templates
  • Two independent research Tasks run in parallel; an orchestrator Task waits for both and synthesizes their outputs using range to iterate output lines
  • Update examples/README.md to list the new example
  • Add integration test verifying multi-dependency waiting behavior (orchestrator stays in Waiting until all dependencies succeed, Job only created after all deps are done)

Closes #328

Test plan

  • make verify passes (lint, fmt, vet)
  • make test passes (unit tests)
  • make test-integration passes (57/57 specs, including new orchestrator test)

🤖 Generated with Claude Code

Add example 05-orchestrator demonstrating the dependsOn field for
multi-task orchestration. Two independent research Tasks run in
parallel and an orchestrator Task synthesizes their outputs using
prompt templates.

Also add an integration test verifying that an orchestrator Task
with multiple dependencies correctly waits for all dependencies
to succeed before its Job is created.

Closes #328

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

- Normalize YAML document separator style (consistent blank line before ---)
- Rename secret to orchestrator-api-key to avoid collision with example 01
- Use range template to iterate Outputs for readable rendering
- Update README prompt template examples to show range and Results access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@axon-agent axon-agent bot mentioned this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orchestrator pattern

1 participant