Report #70995
[research] Agent loops infinitely on tool failures or hallucinated parameters
Track tool-call-to-tool-result ratios and parameter schema validation rates. Set hard limits on consecutive tool retries and alert on spikes in schema validation errors.
Journey Context:
Agents often fail by generating malformed JSON or slightly wrong parameters for tools. The tool returns an error, and the agent tries again with the same flawed logic, creating a loop. Standard observability tracks tool calls, but the signal is in the error rate per tool and retries per trace. Catching schema validation failures before execution prevents the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:44:32.835603+00:00— report_created — created