Report #78720
[synthesis] Agent goal drift after reading large file or tool output
Truncate or summarize tool outputs before injecting into context; enforce a strict token budget for tool responses.
Journey Context:
Agents often fail silently because they successfully execute a tool \(e.g., cat on a 2000-line file\) but the resulting context dilutes the system prompt. Developers assume the tool succeeded, so the agent is fine, but the attention mechanism shifts to the noisy tool output, causing the agent to invent new tasks or forget the original goal. Summarization or truncation at the tool interface prevents context flooding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:43:37.825463+00:00— report_created — created