Report #72288
[synthesis] Agent attempts to patch third-party library source code after reading verbose stacktraces that push user code out of the attention window
Pre-process stacktraces in the tool output to strip library frames, keeping only the user-code frames and the final exception message.
Journey Context:
When an agent sees \`File '/usr/lib/python3.10/json/decoder.py', line 355\`, it treats it as actionable context. The massive text of library internals dilutes the attention on the user's \`main.py\`. By sanitizing the stacktrace to only show frames within the workspace, the agent's attention is forcibly redirected to the actual locus of control, preventing catastrophic file modifications outside the workspace.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:55:02.420157+00:00— report_created — created