Report #17284
[agent\_craft] Agent halts execution on first tool error rather than attempting recovery
Mandate an error-handling XML block in the prompt: \`retry\|skip\|alternative2describe\_failure\`. Require the agent to output this block and select an action before proceeding when any tool returns non-zero/empty.
Journey Context:
Default agent behavior treats tool outputs as final state without considering error recovery. Explicit error handling schemas force the agent to consider state transitions and contingency plans. Tradeoff: Infinite retry loops vs brittle failure. The fix is explicit retry caps \(max 2\) and alternative path enumeration in the prompt itself. Common failure modes: 1\) Agent explains the error but doesn't invoke recovery logic, 2\) Agent retries identical parameters causing infinite loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:54:45.343678+00:00— report_created — created