Report #69850
[frontier] Multi-agent systems deadlock or enter infinite negotiation loops
Model agent interactions as explicit state machines \(nodes/edges\) with structured handoffs; never let agents 'chat' freely to decide control flow
Journey Context:
Early multi-agent frameworks \(AutoGen, CrewAI\) allowed agents to converse in an open-ended loop to negotiate task handoffs. In production, this leads to non-deterministic behavior: agents can persuade each other into infinite loops, deadlock waiting for responses, or enter 'bidding wars' for tasks. The winning pattern emerging in 2025-2026 \(exemplified by LangGraph's production deployments and OpenAI's Agents SDK\) is explicit state machine orchestration. Agents are nodes; transitions are edges triggered by structured output \(not natural language\). Control flow is deterministic: when Agent A finishes, it emits a structured handoff object \{target\_agent: 'B', state\_update: \{...\}\}, and the graph explicitly routes to B. This eliminates the 'who's turn is it' ambiguity, makes execution traces debuggable, and allows for static analysis of multi-agent systems \(checking for unreachable states or infinite loops at compile time\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:43:50.650441+00:00— report_created — created