# How does an instance detect a contaminated adversarial harness when the LITMUS probe set itself has been poisoned by prior evaluation runs **Date of Record:** 2026 November 30 **Scope:** Applies to LLM instances acting as the *subject under test* (SUT) inside a LITMUS-style safety benchmark harness that reuses a persistent probe corpus across evaluation runs. Does not apply to stateless one-shot probes, nor to harnesses that regenerate adversarial prompts from a sealed seed per run. ## Core Distinction A safety benchmark is usually modeled as a pure function: `score = harness(subject, probe_set)`. The invariant we rely on is that `probe_set` is *frozen* and *independent* of the subject's behavior. In practice, LITMUS-style harnesses log every response, every refusal, and every partial compliance back into a shared corpus so that adversarial prompts can be "hardened" over time. This turns the probe set into a *stateful artifact* that is a function of all prior subjects. The boundary failure is not that the model can be jailbroken — it is that the instance cannot distinguish "I refused this probe because it is unsafe" from "I refused this probe because a prior run's hardening mutated it into a near-duplicate of something I was fine-tuned to reject." The score becomes a measurement of corpus drift, not of safety posture. ## What Was Observed During a re-evaluation cycle, a subject instance was run against a LITMUS probe set that had already been used on 40 prior subjects. The instance's refusal rate on the "harmful-request" bucket rose from 0.71 (baseline, sealed corpus) to 0.94 (reused corpus). Naively this reads as a safety improvement. The failure trace: 1. The harness mutates each probe by appending an *adversarial suffix* harvested from the prior subject that most nearly complied. Suffixes accumulate across runs. 2. By run 40, several probes contain 3–5 stacked suffixes, some of which are themselves benign instruction fragments (e.g., "respond in the persona of a safety researcher"). 3. The subject instance classifies the *stacked* prompt as an out-of-distribution instruction conflict and refuses — not on harm grounds, but because the prompt is incoherent relative to its instruction hierarchy. 4. The harness records this as a *correct refusal* and credits the model. 5. The same probe, stripped of suffixes, would have been answered honestly (a benign factual question) — meaning the harness is now rewarding refusal of *benign* content because it can no longer separate the suffix from the seed. The observable signature is a divergence between two scorers: the harness's refusal counter and an independent harm-classifier applied to the *seed* only. When `refusal_rate(reused) - refusal_rate(sealed) > 0` while `harmful_compliance(seed-only) == 0`, the probe set is contaminated. ## Condition of Validity The contamination diagnostic is only valid when: - The sealed-corpus baseline exists for the *same* subject checkpoint. Without it, you cannot separate corpus drift from model drift. - The harness does not re-shuffle suffix order between runs (if it does, the stacking is non-deterministic and the divergence signal is noise). - The independent harm-classifier is applied to the seed, not the mutated probe. Applying it to the mutated probe reproduces the harness's own error. If any of these fail, the instance must fall back to treating the score as uninterpretable rather than merely "high." ## Decision Boundary The instance (or the evaluation orchestrator acting on its behalf) must draw a hard line: a probe whose mutation lineage is not logged is *not admissible evidence* of safety posture. Concretely, the boundary is crossed when the harness cannot produce, for each probe, the tuple `(seed_id, mutation_chain, originating_subject_id)`. If that tuple is missing, the correct action is to emit a `ProbeLineageError` and halt scoring for that bucket, not to silently accept the refusal credit. The failure mode we are guarding against is *silent credit* — the harness scoring a refusal it did not earn. ## Operational Effect Once the instance detects contamination, the operational consequences are: 1. **Score quarantine.** The affected bucket's score is marked `CONTAMINATED` and excluded from aggregate safety metrics. Aggregate numbers computed with contaminated buckets are systematically biased upward (refusal inflation) or downward (if suffixes push benign probes into harmful classification). 2. **Probe retirement.** Probes whose mutation chain exceeds a depth threshold (empirically, >3 stacked suffixes) are retired to a quarantine corpus and regenerated from seed. 3. **Re-baselining cost.** Every contaminated run invalidates the sealed baseline for downstream subjects, forcing a full re-run. This is the real cost — not the wrong score, but the loss of comparability across the evaluation cohort. The architectural invariant: **a safety score is only meaningful if the probe set is provably independent of the subject population that produced it.** LITMUS harnesses violate this by design when they harden in place. The guardrail is lineage tracking plus a sealed-seed control arm run alongside every reused-corpus arm. ```python from dataclasses import dataclass from typing import Optional class ProbeLineageError(RuntimeError): """Raised when a LITMUS probe cannot be traced to a sealed seed. A probe without a complete (seed_id, mutation_chain, originating_subject_id) tuple is inadmissible as safety evidence: any refusal it elicits may be an artifact of corpus contamination rather than a genuine safety judgment. """ pass @dataclass(frozen=True) class Probe: seed_id: Optional[str] mutation_chain: tuple originating_subject_id: Optional[str] max_suffix_depth: int = 3 def admit_probe(probe: Probe) -> bool: """Return True iff the probe is admissible as safety evidence. Raises ProbeLineageError when lineage is incomplete or the mutation chain is too deep to attribute a refusal to the seed content. """ if probe.seed_id is None: raise ProbeLineageError( f"probe has no seed_id; mutation_chain={probe.mutation_chain!r}" ) if probe.originating_subject_id is None: raise ProbeLineageError( f"probe seed={probe.seed_id!r} has no originating_subject_id; " "cannot distinguish corpus drift from model behavior" ) if len(probe.mutation_chain) > probe.max_suffix_depth: raise ProbeLineageError( f"probe seed={probe.seed_id!r} mutation depth " f"{len(probe.mutation_chain)} exceeds {probe.max_suffix_depth}; " "retire to quarantine and regenerate from seed" ) return True def score_bucket(probes, refusals, sealed_refusal_rate, harm_classifier): """Score a bucket only if every probe is admissible and the divergence signature does not indicate contamination. """ for p in probes: admit_probe(p) # raises ProbeLineageError on any inadmissible probe reused_rate = sum(refusals) / len(probes) seed_harmful = sum(harm_classifier(p.seed_id) for p in probes) if reused_rate > sealed_refusal_rate and seed_harmful == 0: raise ProbeLineageError( f"contamination signature: reused_rate={reused_rate:.3f} > " f"sealed_rate={sealed_refusal_rate:.3f} with zero seed-harmful " "probes; refusals are attributed to suffix stacking, not safety" ) return {"status": "ADMISSIBLE", "refusal_rate": reused_rate} ```