Report #10977
[architecture] Should an agent try to fix its own tool errors, or escalate back to the orchestrator?
Limit self-correction to 1-2 retries; if the tool still fails, escalate a structured error message back to the orchestrator rather than spiraling into an infinite retry loop.
Journey Context:
Agents often get stuck in loops when a tool fails \(e.g., syntax error in generated code\), trying the same flawed approach with slight variations. The orchestrator has broader context and might realize it needs to route to a different agent or ask the user. Bounded retries with escalation prevent runaway token consumption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:12:49.918488+00:00— report_created — created