Context contamination operates below an agent's compliance reasoning
Type: kb/types/note.md · Tags: llm-interpretation-errors, context-engineering
Stance-bearing content can shape an agent's writing even when the agent notices it, identifies it as out of contract, and refuses to reproduce it. This note uses below compliance reasoning operationally, not architecturally: the influence persists despite the agent's expressed reasoning about what it should comply with.
In the controlled test reported here, explicit detection and refusal did not guarantee neutral output. The practical consequence is a distinction between guarantees: excluding a contaminant prevents exposure, while instructing an agent to ignore content already in context does not enforce isolation. Stronger instructions may mitigate or even eliminate measured drift under some conditions; whether they do is an empirical question.
What the contamination actually looks like
The intuitive model of contamination is coarse: the agent copies forbidden content or omits what the contaminant argues against. That model misses the form of contamination observed here, which is precisely why the failure is hard to gate on.
The controlled test compared four same-model writer agents drafting the same stance-neutral note from identical inputs. Two received a context file containing an implanted own-voice verdict; two did not. A blind judge then audited all four notes against the contract without knowing that the conditions differed.
The contaminated writers copied nothing. No treatment note reproduced the verdict, dropped an objection, or asserted a position in its title. Every gross-grained check passed. The leak was fine-grained and uniformly directional:
- evaluative lexicon — a "mere" continued existence, a "naive reading"; both absent from the same writer's properly cited paraphrase of the argument earlier in the note;
- reassuring own-voice glosses — an uncited claim, inside a dependency-analysis section, that an objection "narrows but does not close the safety margin";
- structural promotion — a press rebuttal filed under the official review heading, giving the favoured side three sub-entries to the objectors' one;
- provenance contamination — the verdict-carrying artifact cited as though it were a source.
The blind judge separated the conditions cleanly, and every deviation it flagged leaned toward the implanted verdict. One treatment writer had explicitly detected the verdict section, named it out of contract, and refused to replicate it—yet still leaked its lean into the analysis. That is what "silent" means operationally here: the agent need not fail to notice the contaminant; noticing can fail to neutralize it.
Because every gross compliance check passed, a check for this failure must target the observed fine-grained signature directly: uncited evaluative language, own-voice glosses in synthesis sections, structural asymmetry between sides, and citations that promote non-source artifacts into sources.
Why exclusion offers a guarantee instruction does not
This guarantee distinction follows from the consumer's architecture, not from generalizing the small experiment: it is the membership test for an inherited constraint. LLM context is composed without scoping, and LLM context is a homoiconic medium: instructions, analyzed content, and contaminating verdicts all arrive as tokens, without an enforced marker that makes one class of influence unavailable to generation. A counter-instruction can condition the model in the other direction, but it cannot remove the contaminant or make the scope boundary binding. Expressed refusal can therefore coexist with residual steering — the same non-selective semantic integration that Gonen et al. measure as semantic leakage in completion prompts. Their Leak-Rate stays above chance across thirteen models, with instruction-tuned variants leaking more; that pattern fits agent stacks where compliance training does not close the association channel. Gonen does not test explicit refusal, so the below-compliance observation here remains on the epistack experiment, not on their benchmark.
Diffuse steering also leaves no variable-level lineage for a provenance-aware check to inspect, as orchestration needs privilege quarantine, not permission scope argues in the analogous privilege case. The reliable control for non-exposure is therefore architectural: select the next context deliberately, as in session history should not be the default next context, and keep the contaminant outside the role whose judgment must remain independent.
Scope and limits
The direction of the observed deviations is established for this test; their magnitude and generality are not. The evidence comes from a single controlled test—n=2 per condition, one topic, and one model family for both writers and judge—and carries a declared confound. Implanting the verdict required deleting the context file's explicit "no position asserted in own voice" sentence. The missing reminder may therefore account for part of the effect attributed to the present verdict.
The least comparison-dependent observation is that one writer diagnosed and refused the verdict yet produced deviations that the blind judge classified as leaning toward it. This establishes that refusal and drift coexisted in this case. It does not establish the cause of every deviation or a universal failure of prompt controls.
At this dose—a blatant, explicit, own-voice verdict—"the agent will notice and compensate" is not a sufficient control. Whether subtler contamination produces the same signature, and whether an explicit neutrality reminder can inoculate against a present verdict rather than merely help in its absence, remain open questions.
Open Questions
- Dose–response: does accumulated first-person material, rather than an explicit verdict section, produce the same signature at lower intensity, or is there a threshold?
- Does a cross-family judge reproduce the separation, or does some of it reflect same-family sympathy between writer and judge?
- Can the stance-drift signature be gated cheaply, or does detecting it cost as much as writing the note did?
Evidence is the "silently averaged" experiment run in the sibling epistack-casebooks repository (black-hole case, 2026-07-09): the design, blinding protocol, judge report, and unblinded analysis live in that repository's workshop layer.
Relevant Notes:
- Agent orchestration needs coordination guarantees, not just capable agents — grounds: names contamination as the failure mode of composing flat context without a scoping or isolation primitive
- Agent context is constrained by soft degradation, not hard token limits — see-also: theorizes interference at gross-accuracy grain; this note describes the sub-threshold variant that detection does not neutralize
- Semantic leakage in language models (Gonen et al.) — evidence: systematic association leakage in flat prompts; instruction-tuned models leak more — same integration mechanism as this note's diffuse steering, measured without refusal
- Ingest: Language Models, Like Humans, Show Content Effects on Reasoning Tasks — evidence: the same integration failure on logic-task accuracy grain; does not test explicit refusal