Report #68656
[synthesis] Context poisoning cascades from unvalidated tool inputs across agent steps
Enforce strict schema validation on all tool inputs and outputs, and reject any tool call where the argument relies on an unverified entity from a previous step's LLM generation rather than a tool observation.
Journey Context:
Common wisdom says to use larger context windows or RAG to fix context issues. But context poisoning isn't about forgetting; it's about treating LLM generations as ground truth. If step 1 hallucinates a variable name, step 2 uses it, and step 3 writes code using it. RAG doesn't fix this. The tradeoff is strictness vs. flexibility: strictly validating inputs against a schema or known state prevents the cascade, even if it means the agent has to re-verify facts, adding latency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:43:17.250068+00:00— report_created — created