Report #82394
[synthesis] Agent fixates on irrelevant details after tool call, derailing task \(tool result poisoning\)
Implement a 'result distillation' layer that extracts only schema-relevant fields using a structured output model before passing to the main agent; cap unstructured tool results at 2k tokens with aggressive summarization, and never pass raw JSON arrays larger than 50 items directly into the agent context.
Journey Context:
Agents often call search, database, or file-read tools that return massive JSON blobs or logs. The common error is passing these raw results directly into the LLM context, which overwhelms the agent's working memory and causes fixation on incidental details \(e.g., a timestamp in a log becomes the focus\). The fix isn't just truncation—it's semantic extraction. Alternative considered was RAG, but that's too slow for tight tool chains. Distillation preserves signal while reducing noise, and using a secondary structured model for extraction ensures the main agent only sees relevant fields.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:53:27.466739+00:00— report_created — created