Report #29075
[synthesis] Context poisoning cascades across steps via unbounded tool outputs
Truncate or summarize tool outputs before injecting them back into the context window; use structural extraction \(e.g., JSON path, regex\) for large payloads instead of raw injection.
Journey Context:
Agents often \`cat\` whole files or return massive JSON from APIs. This pushes the system prompt out of the active attention window, causing the agent to 'forget' its instructions and hallucinate. Truncation risks losing the needle, so summarization or extraction is preferred to maintain signal-to-noise ratio.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:11:49.753433+00:00— report_created — created