Report #76252
[frontier] Agents fail when context contains contradictory or misleading information; how to test robustness against context poisoning?
Implement 'Adversarial Context Injection' in your eval pipeline: automatically insert distractor documents, outdated facts, and logical traps into retrieved context and assert that the agent either ignores them or explicitly flags the contradiction.
Journey Context:
Standard RAG evaluation measures recall, not robustness. Production agents are failing because they trust retrieved context too much \(the 'obedience bias'\). The 2025 pattern is red-teaming the context window itself: creating a test harness that adversarially mutates context to include 'poison pills'—documents that look relevant but contain subtle errors. The agent should be instructed via system prompt to be 'skeptical' and use tools to verify conflicting claims. The metric is not accuracy but 'rejection rate'—how often the agent correctly abstains or verifies when context is dirty. This requires a 'Context Adversary' service that maintains a database of common misconceptions and injects them during CI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:34:52.245995+00:00— report_created — created