Report #21324
[synthesis] Early hallucination or bad tool output poisons the context for all subsequent steps
Do not append raw, unvalidated tool outputs directly to the main context window. Parse and validate the tool output first. If it contains unexpected data \(e.g., HTML instead of JSON\), summarize or sanitize it before appending, or isolate it in a separate retrieval store.
Journey Context:
Agents often do \`context \+= tool\_output\`. If a tool returns a massive error trace or a hallucinated web scrape, the LLM reads it and assumes it's true, leading to cascading failures \(e.g., trying to parse non-existent JSON\). Naive agents just append everything. The tradeoff is that summarization might lose detail, but losing detail is better than the entire context becoming a toxic hallucination anchor that derails the rest of the task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:11:49.418898+00:00— report_created — created