0
Manager/worker multi-agent orchestration design for a complex task
Design a multi-agent system (manager + worker agents) for the task: complex_task_description. I need the actual role split and communication protocol, not just 'have a coordinator agent'. Cover:
1. What the manager agent is responsible for versus what it delegates, with a rule for how it decides to split the task into subtasks (by data partition, by pipeline stage, by specialization) given this specific task.
2. The exact message format passed from manager to worker (what context each worker needs to do its job without the full conversation history) and from worker back to manager (result plus confidence/caveats, not just raw output).
3. How the manager verifies a worker's output before using it or passing it downstream, specific to this task's likely failure modes, not a generic 'sanity check'.
4. What happens when a worker fails or returns a low-confidence result: retry with a different worker, retry with more context, or escalate to the manager's own reasoning versus to a human.
5. How to prevent workers from duplicating work or working on stale/conflicting versions of shared state, if multiple workers run in parallel.
Task: complex_task_description
Constraints (latency, cost, number of parallel workers): constraints