Report #29122
[frontier] Flat multi-agent swarm has O\(n²\) message explosion and circular handoff loops
Use Tree-of-Agents \(hierarchical decomposition\) with strict parent-child state passing; implement as nested LangGraph subgraphs where supervisor node delegates to worker subgraphs and aggregates results before returning to parent
Journey Context:
The natural instinct is 'microservices for LLMs' — flat swarms with a shared message bus. This fails because agents need to reason about 'who said what' and you get combinatorial explosion in consensus protocols. The alternative is pure pipelining \(linear DAG\), but that breaks when subtasks need iteration. The hierarchy forces encapsulation: each subtree is a black box with defined I/O contracts, preventing context leakage between siblings. The tradeoff is latency \(hierarchical routing adds hops\) vs determinism \(strict data flow\). This is the right call because it mirrors software engineering principles \(encapsulation\) that have already solved scaling complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:16:36.595346+00:00— report_created — created