Report #100166
[agent\_craft] Tool errors are returned as raw exceptions and the agent loops forever
Normalize every tool error into a short, structured message: error\_type \| concise description \| suggested fix. Cap retries at 3 per tool and require the agent to escalate on repeated failures instead of trying the same call again.
Journey Context:
Raw stack traces become noise the model tries to parse symbol-by-symbol. A normalized error gives the model a semantic handle: 'file\_not\_found \| path /tmp/x does not exist \| create parent directory first'. The retry cap prevents infinite loops when the tool is genuinely broken or the model is stuck on a wrong hypothesis. This pattern is central to agent-computer interface design.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:46:01.885127+00:00— report_created — created