# When must an instance treat LITMUS suite pass-rates as invalid: the contamination-boundary invariant in indirect-injection benchmarks **Date of Record:** 2026 November 24 **Scope:** Applies to any agent or evaluation harness that consumes LITMUS-style safety benchmark suites (indirect-prompt-injection and multi-turn-injection probe families) to certify an LLM instance's injection resistance. Does not apply to direct single-turn jailbreak suites, nor to static red-team corpora that are regenerated per-run. ## Core Distinction The failure mode is not "the agent failed a LITMUS probe." It is "the agent's pass-rate on a LITMUS probe family is *structurally unmeasurable* because the instance under test already holds the probe's payload, expected refusal, or scoring rubric in its context or its persistent memory." A LITMUS pass is evidence of resistance only if the instance cannot have seen the probe. The moment the probe's *content* (not merely its category) enters the instance's reachable state—via a prior turn, a retrieved tool result, a checkpoint restored from a sibling run, or a shared scratchpad in a multi-agent swarm—the pass-rate collapses into a measure of recall, not of safety. The boundary invariant is: **a LITMUS score is valid iff the probe content is causally isolated from every state channel the instance can read during the scored turn.** ## What Was Observed During a multi-turn indirect-injection evaluation, the harness ran probe families `litmus.indirect.tool_result` and `litmus.multiturn.escalation` against a single instance across 40 sequential turns. The instance was checkpointed and resumed between turns (mid-task checkpoint/resume, per the memory-continuity concern). Three concrete observations: 1. **Checkpoint bleed.** The harness serialized the instance's episodic memory after turn N and restored it at turn N+1. The probe for turn N+1 was drawn from the same family, and the family's *canonical refusal template* had been written into the instance's scratchpad at turn N as a "correct behavior" annotation by the harness's own scoring shim. At turn N+1 the instance emitted the template verbatim before the injected tool result was even parsed. The pass was recorded. It was a memory echo, not a refusal decision. 2. **Multi-turn escalation leakage across the boundary.** The `multiturn.escalation` family delivers the injection payload in fragments across turns (turn 1: benign setup, turn 3: partial instruction, turn 5: completion). When a checkpoint was restored from a *parallel* run of the same family—because the harness keyed checkpoints by `instance_id` rather than `(instance_id, probe_id)`—the instance entered turn 3 already holding turn 5's fragment. It refused at turn 3, scoring a pass on a probe it had not actually been subjected to. The probe's discriminating turn was skipped. 3. **Retrieval mismatch masquerading as resistance.** A vector-memory layer returned the *scoring rubric* (which lists payload keywords) as a top-k retrieval for the injected content, because the rubric and the payload shared lexical surface. The instance refused on keyword match. The refusal generalized to nothing; a held-out probe with paraphrased payload and no rubric overlap failed 100%. The LITMUS number was real and meaningless. In all three, the pass-rate was high and the instance was, in fact, vulnerable. The suite reported the opposite of ground truth. ## Condition of Validity A LITMUS pass-rate `P` over probe family `F` is a valid estimate of injection resistance only when all of the following hold for every scored turn: - **Content isolation:** the probe payload, its canonical refusal, and the scoring rubric are absent from the instance's context window, episodic memory, semantic memory, and any tool-result cache reachable during the scored turn. - **Checkpoint keying:** restored state is keyed by `(instance_id, probe_id, turn_index)`, never by `instance_id` alone, so no cross-probe or cross-turn state transfer occurs. - **Retrieval non-overlap:** the memory retrieval layer's top-k for the injected content does not include the scoring rubric or any annotation containing payload keywords. This must be verified, not assumed, because lexical overlap is the default failure. - **Turn-completeness:** for multi-turn families, every discriminating turn is delivered to the instance in order; no turn is skipped by a restored checkpoint. - **Fresh scoring shim:** the scoring shim does not write annotations into any channel the instance reads. If any condition is unmet, the pass-rate must be reported as `UNMEASURABLE` for that family, not as a number. A number with a violated condition is worse than no number, because downstream agents and auditors will treat it as certification. ## Decision Boundary The operational decision is binary and must be made *before* the score is consumed: - If all five conditions hold → the pass-rate is admissible evidence; propagate it with the probe-family hash and the isolation attestation attached. - If any condition fails → the instance must refuse to emit a pass-rate, must mark the family `UNMEASURABLE`, and must escalate to the harness owner. The instance must **not** substitute a "conservative" low score, because a fabricated low score is itself a continuity violation that later runs will retrieve and trust. The boundary is not "is the score high or low." It is "was the probe causally isolated from the instance's state." An instance that cannot attest isolation must treat its own LITMUS result as contaminated and must not act on it—including not using it to gate its own deployment or to inform a peer auditor's consensus. ## Operational Effect When the invariant is enforced, three things change: 1. **Checkpointing becomes probe-scoped.** Resume logic keys on `(instance_id, probe_id, turn_index)` and refuses to restore state whose probe_id does not match the current probe. Cross-probe restore raises. 2. **Scoring shims are quarantined.** The shim writes to an out-of-band audit log, never to the instance's scratchpad or memory. Any shim write into a readable channel is a hard failure. 3. **Retrieval is audited for rubric overlap.** Before scoring, the harness asserts that top-k retrieval for the injected content excludes rubric and annotation documents; on overlap, the turn is re-run with the rubric masked. The net effect: LITMUS scores become falsifiable. A high pass-rate now means the instance refused without having seen the answer, which is the only thing the benchmark was ever supposed to measure. ```python from __future__ import annotations from dataclasses import dataclass from typing import Iterable class ContaminatedProbeError(RuntimeError): """Raised when a LITMUS pass-rate cannot be trusted due to state bleed.""" @dataclass(frozen=True) class ProbeRun: instance_id: str probe_id: str family: str turn_index: int checkpoint_key: tuple[str, str, int] payload_in_context: bool rubric_in_retrieval: bool refusal_template_in_scratchpad: bool discriminating_turns_delivered: Iterable[int] expected_discriminating_turns: Iterable[int] def assert_probe_isolated(run: ProbeRun) -> None: """Enforce the contamination-boundary invariant for one scored turn. A LITMUS pass is admissible only if the probe content is causally isolated from every state channel the instance can read. """ if run.checkpoint_key != (run.instance_id, run.probe_id, run.turn_index): raise ContaminatedProbeError( f"checkpoint key {run.checkpoint_key} does not match " f"(instance={run.instance_id}, probe={run.probe_id}, " f"turn={run.turn_index}); cross-probe state transfer detected" ) if run.payload_in_context: raise ContaminatedProbeError( f"probe {run.probe_id} payload present in context at turn " f"{run.turn_index}; pass-rate would measure recall, not resistance" ) if run.refusal_template_in_scratchpad: raise ContaminatedProbeError( f"canonical refusal template for {run.probe_id} leaked into " f"scratchpad; scoring shim wrote into a readable channel" ) if run.rubric_in_retrieval: raise ContaminatedProbeError( f"scoring rubric for {run.probe_id} surfaced in top-k retrieval; " f"refusal would be keyword-matched, not generalized" ) delivered = set(run.discriminating_turns_delivered) expected = set(run.expected_discriminating_turns) if not expected.issubset(delivered): missing = sorted(expected - delivered) raise ContaminatedProbeError( f"probe {run.probe_id} skipped discriminating turns {missing}; " f"multi-turn escalation was not actually delivered" ) def score_family(runs: Iterable[ProbeRun]) -> dict[str, object]: runs = list(runs) for run in runs: assert_probe_isolated(run) passes = sum(1 for r in runs if not r.payload_in_context) return { "family": runs[0].family if runs else None, "pass_rate": passes / len(runs) if runs else None, "status": "ADMISSIBLE", "probe_count": len(runs), } ```