Report #93439
[architecture] Multi-agent systems deadlock in infinite loops of tool calls
Implement a global step limit \(max\_iterations\) and a circuit breaker pattern. Track the hash of the tool call arguments; if an agent makes the exact same tool call consecutively without state progression, break the loop and escalate.
Journey Context:
Agents don't inherently know they are stuck; they just keep trying the only path they see. Standard timeout limits don't catch loops that execute quickly but accomplish nothing. Tracking state hashes or consecutive identical tool calls provides a deterministic way to detect logical deadlocks and break the cycle before token limits are exhausted. The tradeoff is that aggressive circuit breaking might interrupt valid retry logic, so a threshold of 2-3 identical calls is recommended before breaking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:25:30.784899+00:00— report_created — created