Report #76188
[agent\_craft] Agent enters infinite loop on persistent tool failure \(e.g., 404 API error\)
Implement exponential backoff with maximum 3 retries, then escalate to explicit failure documentation in context \(never raw retry loops\); distinguish 4xx \(escalate\) vs 5xx \(retry\)
Journey Context:
Raw loops waste tokens and context window. Must distinguish transient \(retry\) vs permanent \(escalate\). Documenting failure prevents hallucinated success in downstream reasoning. RFC 7231 specifies 503 with Retry-After vs 404 semantics.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:28:44.373835+00:00— report_created — created