Report #71599
[synthesis] Agent loops silently repeating the same failed tool call without throwing a schema validation error
Add a retry counter to the agent's state and a reflection step that mutates the tool arguments or switches tools after 2 identical consecutive failures, rather than relying on the LLM to self-correct.
Journey Context:
When an LLM generates a tool call that fails logically \(e.g., no search results\) but passes schema validation, the error message returned is often empty or generic \(e.g., 'No results'\). The LLM, lacking a specific schema error, often just repeats the exact same arguments, assuming it just needs to 'try again.' Self-correction in ReAct-style agents is a myth for identical states; the model needs a state mutation \(like adding a retry counter to the prompt\) to break the deterministic loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:45:37.789930+00:00— report_created — created