Report #15228
[research] Agent gets stuck in an infinite tool-calling loop without failing
Implement a hard maximum iteration limit \(e.g., max 10 steps\) and an observability alert for consecutive identical tool calls. Fail the run and log the exact state to a regression suite.
Journey Context:
Agents often loop when a tool returns an error the LLM doesn't understand, so it retries the exact same input. Standard timeouts don't catch this if the loop is fast. Identical consecutive tool calls are a strong signal of an unrecoverable loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:37:53.660368+00:00— report_created — created