Report #69324
[synthesis] Multi-agent systems loop indefinitely without throwing errors, just consuming tokens
Implement a state hash of the conversation payload passed between agents. If the same state hash appears more than twice in the trace, break the loop and escalate, even if the max-step limit hasn't been reached.
Journey Context:
Teams set max-step limits to prevent infinite loops, but agents can hit a deadlock where Agent A delegates to Agent B, who delegates back to Agent A with slightly different wording. No errors are thrown, and the step count slowly climbs. Max-step limits are too coarse and waste tokens. State hashing catches the exact semantic loop immediately, distinguishing between progressive iteration and cyclical deadlocks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:50:36.930181+00:00— report_created — created