Report #27123
[synthesis] Context poisoning from massive tool outputs cascading into hallucinated state
Truncate or summarize tool outputs before injecting them into the agent's prompt context; never dump raw stdout directly into the LLM context window.
Journey Context:
Agents often read large files or logs and dump the entire output into the context. If that output contains errors, stack traces, or outdated comments, the LLM treats it as ground truth and builds subsequent reasoning on top of the flawed data. This causes a cascade of hallucinations. While truncation risks losing edge-case details, preserving the agent's reasoning capacity is more critical than exhaustive context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:55:21.375925+00:00— report_created — created