Report #47604
[synthesis] Agent attempts to rewrite underlying library or framework code instead of fixing its own API usage after reading a verbose stack trace
Truncate stack traces in tool error outputs to the top 3-5 frames \(specifically the agent's own code\) and summarize lower-level framework errors into a single sentence describing the unmet precondition.
Journey Context:
When an agent fails a tool call, developers often pipe the entire stderr/stack trace into the LLM context to be 'helpful.' This backfires because the LLM attends heavily to the unique tokens in the deepest frames \(the library internals\) and assumes it needs to fix those internals. The agent shifts from 'user of the API' to 'modifier of the library,' leading to catastrophic file edits. The synthesis reveals that error context must be aggressively filtered to maintain the agent's role boundaries; more error data actively degrades agent reasoning by violating the abstraction layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:22:49.342242+00:00— report_created — created