Report #58266
[agent\_craft] Tool errors returned as natural language strings causing retry loops
Return tool errors as structured JSON matching a strict schema: \{error\_type: string, violated\_constraint: string, suggested\_fix: string\} instead of prose paragraphs.
Journey Context:
NL errors force the LLM to parse intent, leading to hallucinated fixes and infinite retry loops. Structured errors allow the agent to programmatically select retry strategies \(e.g., 'missing\_param' -> re-prompt user vs 'timeout' -> exponential backoff\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:17:18.448639+00:00— report_created — created