neutral
Phase 5: Multi-Agent Orchestration
Status: Completed (2026-02-09)
Goal: First-class support for agent coordination patterns.
Scope:
- Supervisor pattern
- Coordination patterns (delegate, broadcast, debate, pipeline, map-reduce, voting)
- Inter-agent communication
- Saga pattern with compensation
Tasks and subtasks:
- Supervisor runtime
- Define supervisor workflow and agent delegation
- Support result aggregation and iteration
- Coordination patterns
- Implement delegate, broadcast, debate, pipeline, map-reduce, voting
- Provide standard pattern APIs
- Communication
- Signals for direct messages
- Shared blackboard storage
- Pub/sub events
- Sagas
- Saga definition and compensation
- Failure handling across agents
- Tests
- Multi-agent integration tests
- Saga compensation tests
Deliverables:
- Supervisor runtime
- Coordination APIs
- Inter-agent communication mechanisms
- Saga pattern support
- Tests
Dev environment checks:
- Run a 3-agent supervisor scenario
- Verify debate/voting output and saga compensation
Dependencies:
- Phase 3 completion
- Phase 4 recommended
Files to add/change (TBD) Files to add/change:
internal/supervisor/types.gointernal/supervisor/workflow.gointernal/supervisor/activities.gointernal/blackboard/store.gointernal/blackboard/postgres_store.gocmd/supervisor-run/main.gocmd/supervisor-query/main.gocmd/supervisor-signal/main.gocmd/worker/main.go