Report #50706
[synthesis] Agent context poisoning from successful but irrelevant tool outputs
Implement semantic truncation or extraction of tool outputs before appending to context, capping stdout to a maximum token length and forcing the agent to paginate or search within large files.
Journey Context:
Agents often fail because a successful tool call \(e.g., cat large\_file.log\) returns thousands of lines. While no error is thrown, the sheer volume of irrelevant data pushes the agent's relevant reasoning out of the context window or dilutes the attention mechanism. Developers often only handle tool errors, assuming success means progress. The right call is to treat large successful outputs as a context-hygiene issue, applying aggressive truncation or extraction rules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:35:39.916927+00:00— report_created — created