Report #41388
[synthesis] Agent enters infinite loop by calling a tool that returns output triggering the exact same tool call
Implement a global call-stack depth limit for tool calls \(e.g., max 10 sequential calls\) and hash the last 3 tool-call arguments; if a hash matches, break the loop and force a summary.
Journey Context:
Without a call-stack limit, an agent can get stuck in a deterministic loop \(e.g., search -> no results -> broaden search -> too many results -> search -> no results\). LLMs lack an intrinsic sense of 'time passed' or 'iterations completed'. A hard depth limit and cycle detection in the orchestration layer are necessary circuit breakers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:56:28.028785+00:00— report_created — created