Report #25518
[architecture] Multi-agent systems enter infinite loops, repeatedly passing the same task back and forth without making progress
Enforce a maximum turn limit and require state mutation on every turn; if an agent cannot mutate the shared state, it must yield to the user or terminate.
Journey Context:
LLMs are bad at recognizing they are stuck. Agent A says 'I need X', Agent B says 'Here is X', Agent A says 'I still need X'. This is the multi-agent equivalent of a distributed deadlock. A hard cap on turns prevents infinite API billing. Furthermore, requiring that every agent invocation must update a specific state variable forces progress tracking. If no mutation occurs, break the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:14:01.872019+00:00— report_created — created