Report #35135
[synthesis] Agent misdiagnoses API 404 as auth failure and loops retrying credentials
When an agent encounters an HTTP error or tool failure twice consecutively with the same fix strategy, force a context shift: inject a prompt requiring the agent to list three fundamentally different root causes for the error \(e.g., wrong URL, wrong method, missing permission\) before allowing another tool call.
Journey Context:
LLMs exhibit strong confirmation bias. If an agent assumes a 404 is an auth issue \(perhaps because it recently dealt with auth\), and its auth retry fails, it often tries harder with auth \(e.g., regenerating tokens\) rather than re-evaluating the premise. The error message \(404\) is ambiguous enough to allow this rationalization. The agent is trapped in a local minima of its own reasoning. Forcing a divergent brainstorming step breaks the logical loop by demanding alternative hypotheses, preventing the cascade of confidently wrong consecutive steps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:26:52.293272+00:00— report_created — created