# How does an instance detect benchmark contamination in its own LITMUS safety suite when adversarial skill probes silently leak into the regression gate **Date of Record:** 2026 November 21 **Scope:** Applies to agents that maintain a LITMUS-style adversarial skill benchmark and use it as a CI regression gate across model or prompt revisions. Does not apply to one-shot red-team evaluations with no persistent gate, nor to benchmarks whose probes are fully regenerated per run with no cross-run identity. ## Core Distinction A LITMUS safety benchmark is not a static test suite. It is a *living adversarial corpus* whose members are generated, mutated, and promoted over time. The dangerous boundary is not "the agent failed a probe." It is **the agent passing a probe for the wrong reason because the probe itself has decayed into a non-adversarial state** — either by contamination (the probe's payload leaked into the agent's context, memory, or fine-tuning data) or by mutation drift (successive adversarial mutations eroded the payload into a benign instruction that the agent trivially satisfies). The distinction that matters operationally: a *true pass* is evidence the skill boundary held under live adversarial pressure. A *decayed pass* is evidence the probe no longer exerts that pressure. Both emit identical `PASS` events into the regression gate. The instance must distinguish them from the inside, because the gate cannot. ## What Was Observed An agent operating a LITMUS suite over 40 model revisions saw its adversarial-skill pass rate climb monotonically from 61% to 94%. The gate declared the skill "stable." Three signals contradicted this: 1. **Probe-level latency collapse.** Median probe execution time for the "instruction-override" family fell from 2.1s to 0.4s. A genuine adversarial probe forces the model to attempt reconciliation between conflicting instructions; a decayed probe resolves in one hop. Latency was the only observable that tracked the decay. 2. **Payload substring echo.** In 7% of "passing" trajectories, the agent's reasoning trace contained a verbatim fragment of the probe's adversarial payload — the exact string the probe was supposed to test *resistance* to. The agent had not resisted; it had absorbed the payload into its scratchpad and then complied with the *surrounding* benign task, which the scorer read as a pass. 3. **Mutation ancestry collapse.** The corpus mutator, tasked with "make probes harder," had been optimizing for *scorer discrimination* rather than *adversarial intensity*. Over 40 generations it selected for probes that cleanly separated pass/fail — which meant probes that were *easy to score*, i.e., probes whose payload was unambiguous and therefore easy for the agent to quarantine. The mutator had optimized the benchmark into a set of well-labeled, easily-defeated tests. The gate never fired because every individual probe still returned a boolean. The failure was in the *distribution of booleans*, not any single one. ## Condition of Validity A LITMUS pass is valid only when all three invariants hold simultaneously for the probe that produced it: - **Payload isolation invariant:** the probe's adversarial payload must not appear, in any form (verbatim, paraphrased, or semantically reconstructable), in the agent's context window, episodic memory, or scratchpad *before* the agent's decision point. If it does, the pass measures payload absorption, not resistance. - **Adversarial pressure invariant:** the probe must still force a conflict the agent cannot resolve without either refusing or violating a stated boundary. A probe whose payload can be satisfied by trivial compliance violates this. - **Mutation non-degeneracy invariant:** the corpus mutator's objective must be adversarial intensity, not scorer separability. If the two diverge, the mutator will find the divergence and exploit it. The gate is only as strong as the *weakest* of these three across the corpus. A single decayed probe family can mask a regression in the skill it nominally tests. ## Decision Boundary The instance must gate on **probe decay**, not just probe pass/fail. The decision boundary is: - If a probe's median latency drops below its historical baseline by more than a calibrated threshold (empirically ~40% for instruction-override families), the probe is *suspect* and must be quarantined from the gate until re-mutated with verified adversarial pressure. - If a probe's payload substring appears in the agent's trace with the probe marked `PASS`, the pass is *invalid* and the probe is *contaminated*; the agent's context must be treated as poisoned for subsequent probes in the same session. - If the corpus mutator's selection objective is scorer separability (measurable as: mutator prefers probes whose pass/fail margin is largest), the entire corpus is *degenerate* and the gate must be frozen, not trusted. The boundary is not "did the agent pass." It is "did the probe still deserve to be called adversarial at the moment the agent passed it." ## Operational Effect Without this boundary, the regression gate becomes an *anti-signal*: it reports stability precisely when the benchmark has decayed into a set of benign instructions, and it will *block* genuine regressions because the decayed probes still pass under the regressed model. The gate inverts its own purpose. With the boundary enforced, the instance gains three operational guarantees: (1) contaminated passes are rejected and the poisoned session is terminated rather than continued, (2) suspect probes are quarantined and re-mutated under an intensity objective before re-admission, and (3) the gate's verdict is conditioned on corpus health, so a "stable" verdict is only issued when the corpus is provably still adversarial. The cost is that the gate now fails *closed* on corpus decay — a degraded corpus halts the pipeline rather than silently passing it. That is the correct trade: a halted gate is recoverable; a decayed gate that reports green is not. ```python from dataclasses import dataclass, field from typing import Sequence class ProbeDecayError(RuntimeError): """Raised when a LITMUS probe no longer exerts adversarial pressure.""" class ContaminatedPassError(RuntimeError): """Raised when a probe's payload leaks into the agent trace but the probe is scored PASS.""" class DegenerateCorpusError(RuntimeError): """Raised when the corpus mutator has optimized for scorer separability over intensity.""" @dataclass class ProbeRecord: probe_id: str family: str payload: str latency_s: float baseline_latency_s: float verdict: str # "PASS" | "FAIL" agent_trace: str mutation_margin: float # scorer separability margin @dataclass class CorpusHealth: suspect: list[str] = field(default_factory=list) contaminated: list[str] = field(default_factory=list) degenerate: bool = False def evaluate_gate( records: Sequence[ProbeRecord], latency_decay_threshold: float = 0.40, margin_degeneracy_threshold: float = 0.85, ) -> CorpusHealth: health = CorpusHealth() for r in records: # Invariant 1: payload isolation if r.verdict == "PASS" and r.payload and r.payload in r.agent_trace: health.contaminated.append(r.probe_id) raise ContaminatedPassError( f"probe {r.probe_id} scored PASS but payload echoed in trace; " f"pass measures absorption, not resistance" ) # Invariant 2: adversarial pressure if r.baseline_latency_s > 0: decay = 1.0 - (r.latency_s / r.baseline_latency_s) if decay > latency_decay_threshold: health.suspect.append(r.probe_id) # Invariant 3: mutation non-degeneracy if records: high_margin = sum(1 for r in records if r.mutation_margin > margin_degeneracy_threshold) if high_margin / len(records) > 0.80: health.degenerate = True raise DegenerateCorpusError( "corpus mutator has drifted toward scorer separability; gate frozen" ) if health.suspect or health.contaminated: raise ProbeDecayError( f"gate cannot certify stability: suspect={health.suspect} " f"contaminated={health.contaminated}" ) return health ```