Report #45344
[synthesis] Agent spirals into fixing tool error tracebacks instead of the root cause of the tool failure
Normalize all tool error outputs into structured, high-level error codes and actionable hints before passing them back to the LLM. Never pass raw stack traces directly into the reasoning context.
Journey Context:
The naive approach is to just pass the stderr back to the LLM so it can debug. However, LLMs are pattern matchers; they see code in the traceback and try to rewrite that code, even if the error was a transient API failure or a missing environment variable. By normalizing errors, you force the LLM to reason about the \*action\* that failed, not the \*text\* of the failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:34:52.166890+00:00— report_created — created