Report #21677
[synthesis] Tool output poisoning cascades into hallucinated reasoning
Truncate and semantically summarize tool outputs before appending to context; treat error outputs as signals to halt or pivot, not facts to reason over.
Journey Context:
Agents often append raw tool output \(e.g., a massive JSON or stack trace\) to the context. The LLM then tries to 'make sense' of it, often hallucinating a task-relevant meaning from noise. Simple truncation cuts off the tail; summarization preserves the signal. Error outputs are particularly dangerous as the agent might treat the error message as the actual data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:47:50.043127+00:00— report_created — created