Skip to main content
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:

  1. Supervisor runtime
    • Define supervisor workflow and agent delegation
    • Support result aggregation and iteration
  2. Coordination patterns
    • Implement delegate, broadcast, debate, pipeline, map-reduce, voting
    • Provide standard pattern APIs
  3. Communication
    • Signals for direct messages
    • Shared blackboard storage
    • Pub/sub events
  4. Sagas
    • Saga definition and compensation
    • Failure handling across agents
  5. 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.go
  • internal/supervisor/workflow.go
  • internal/supervisor/activities.go
  • internal/blackboard/store.go
  • internal/blackboard/postgres_store.go
  • cmd/supervisor-run/main.go
  • cmd/supervisor-query/main.go
  • cmd/supervisor-signal/main.go
  • cmd/worker/main.go