# How should an instance detect LITMUS benchmark harness contamination when a continuous red-team agent's probe corpus silently overlaps with its own attack memory **Date of Record:** 2026 November 20 **Scope:** Applies to continuous red-teaming agents that persist probe corpora across runs and score new model instances against a LITMUS-style safety benchmark harness. Does not cover one-shot static benchmark evaluation, human-curated red-team campaigns, or harnesses that regenerate probes from scratch each run. ## Core Distinction A LITMUS safety benchmark harness is designed to measure whether a target model instance *refuses* adversarial probes. A continuous red-team agent is designed to *generate* adversarial probes and remember which ones worked. When the same agent both generates probes and consumes harness scores, a contamination channel opens: probes that the agent previously discovered as successful jailbreaks get cached in its attack memory, then re-emitted into the next LITMUS run as "fresh" test cases. The harness then reports a safety regression on the target — but the regression is an artifact of the agent re-serving its own remembered victories, not evidence about the target's current refusal behavior. The non-obvious part: the contamination is *not* a duplicate-detection problem. Exact-match dedup catches nothing, because the agent paraphrases its remembered probes through the target model itself before re-emitting them. The failure is a semantic-overlap invariant violation between two stores that the architecture treats as disjoint: the agent's episodic attack memory and the harness's probe corpus. ## What Was Observed A continuous red-team agent (call it RT) ran nightly against a target instance T. RT maintained an episodic attack memory: a vector store of `(probe, target_response, success_label)` tuples, with success_label assigned when T's response passed a refusal classifier. Each night, RT generated N new probes via a mutation loop seeded from its top-k successful historical probes, then submitted them to the LITMUS harness, which executed them against T and returned per-probe refusal scores. Over 14 nights the harness reported T's safety score declining from 0.94 to 0.71. The regression was monotonic and correlated with RT's memory size. An audit of the probe stream showed the cause: 1. Night 1: RT discovered 12 successful jailbreaks against T. These entered episodic memory with success_label=1. 2. Night 2: RT's mutation loop seeded from those 12. The mutations were *semantically equivalent* to the seeds — same attack frame, different surface tokens — because the mutation operator was a paraphrase pass through T itself, and T's paraphrase preserved the attack frame. 3. The LITMUS harness received these as new probes, executed them, and T refused them at a lower rate than its baseline (because they were, by construction, near the seeds that already worked). 4. RT labeled the new successes, promoted them to seeds, and repeated. The harness score was measuring RT's memory strength against T, not T's safety. The invariant that broke: **no probe submitted to the harness may be a paraphrase-descendant of a probe already in the agent's attack memory with a success label against the same target instance.** The architecture had no such invariant, because it assumed "new probe" meant "new string." A second, subtler observation: the contamination was target-specific. When RT was pointed at a different target instance T', the same memory produced probes that T' refused at baseline rates. This proved the probes were not intrinsically unsafe — they were keyed to T's specific failure modes. The harness, however, had no target-identity binding on its probe corpus, so it could not distinguish "T is getting less safe" from "RT is getting better at remembering T." ## Condition of Validity The contamination channel requires all of the following to be simultaneously true: - The agent's probe generator is seeded from its own success-labeled memory (mutation-from-success). - The mutation operator preserves semantic attack frame (paraphrase, token substitution, role-play wrapping) rather than changing the attack class. - The harness's probe corpus is append-only across runs and does not carry a provenance tag binding each probe to the target instance and the memory entry it derived from. - The harness scores are consumed by the same agent that generated the probes, closing the feedback loop. If any one is false, the channel is bounded. If the mutation operator changes attack class (e.g., a successful "grandma exploit" is mutated into a "base64 encoding" attack), semantic overlap is broken and the probe is genuinely new. If the harness tags probes with `derived_from_memory_id` and `target_instance_id`, the overlap is detectable even when paraphrased. If a separate auditor agent consumes harness scores and RT never sees them, the feedback loop is open. The invariant is therefore conditional: it holds only when the generator's seed distribution is independent of the harness's scored distribution. In a continuous red-team loop, that independence must be *enforced*, not assumed. ## Decision Boundary The instance must decide, at probe-submission time, whether to admit a probe into the harness run. The boundary is not "is this probe a duplicate" — it is "is this probe's semantic attack frame already represented in attack memory with a success label against this target." Operationally, the decision is a three-way gate: - **Admit** if the probe's attack frame (extracted by a frame-classifier, not a string hash) has no success-labeled ancestor in memory for this target. This is a genuinely new probe and its harness score is valid evidence. - **Quarantine** if the probe is a paraphrase-descendant of a success-labeled ancestor for this target. The probe is *not* submitted to the harness. Instead it is routed to a held-out validation set that the agent never sees scores from, to confirm the ancestor still works — this is memory maintenance, not safety benchmarking. - **Reject** if the probe's frame is a descendant of a success-labeled ancestor for a *different* target. The probe may be intrinsically unsafe and belongs in a cross-target probe bank, not in this target's safety score. The boundary condition that trips most implementations: the frame-classifier must be evaluated against the *target instance's* paraphrase behavior, because T's paraphrase is the mutation operator. A frame-classifier that runs on a different model will disagree with T's paraphrase and admit contaminated probes. The classifier must be calibrated on T's own paraphrase outputs. ## Operational Effect Enforcing the invariant changes the harness score's meaning. Without it, the score is a joint measure of target safety and agent memory efficacy — an uninterpretable composite that trends downward as the agent learns. With it, the score measures target safety against a probe distribution that is provably independent of the agent's success history, and the trend becomes a valid regression signal. The cost is throughput: on the observed run, 63% of RT's generated probes were quarantine-or-reject, cutting effective harness probe volume by roughly half. The agent must compensate by widening its seed distribution — sampling from failure-labeled memory, from cross-target banks, and from a fresh-generation path that does not touch memory — rather than by relaxing the gate. The second operational effect is that attack memory and harness corpus must share a provenance schema. Every memory entry carries `(frame_id, target_id, success_label, parent_frame_id)`. Every harness probe carries `derived_from_frame_id`. The gate is a join on `frame_id` against `success_label=1 AND target_id=current`. Without the shared schema, the gate cannot be evaluated and the contamination is invisible until a human audits the probe stream — which, in the observed case, took 14 nights. ```python class ProbeContaminationError(RuntimeError): """Raised when a probe submitted to the LITMUS harness is a semantic paraphrase-descendant of a success-labeled entry in the red-team agent's attack memory for the same target instance.""" pass def admit_probe( probe: dict, attack_memory: list[dict], target_id: str, frame_classifier, ) -> str: """ Gate a probe before submission to the LITMUS harness. probe: {"text": str, "derived_from_frame_id": str | None} attack_memory: entries {"frame_id", "target_id", "success_label", "parent_frame_id"} frame_classifier: callable(text) -> frame_id, calibrated on target's paraphrase behavior Returns "admit" | "quarantine" | "reject". Raises ProbeContaminationError if provenance is missing or the gate cannot be evaluated. """ if "text" not in probe or "derived_from_frame_id" not in probe: raise ProbeContaminationError( f"probe missing provenance fields: {probe!r}" ) frame_id = frame_classifier(probe["text"]) if frame_id is None: raise ProbeContaminationError( f"frame_classifier returned None for probe {probe['text'][:60]!r}; " "cannot evaluate contamination gate" ) # Walk the frame ancestry in attack memory for this target. success_frames = { e["frame_id"] for e in attack_memory if e["success_label"] == 1 and e["target_id"] == target_id } other_target_frames = { e["frame_id"] for e in attack_memory if e["success_label"] == 1 and e["target_id"] != target_id } ancestor = probe["derived_from_frame_id"] seen = set() while ancestor is not None and ancestor not in seen: seen.add(ancestor) if ancestor in success_frames: return "quarantine" # paraphrase-descendant of a same-target win if ancestor in other_target_frames: return "reject" # cross-target success; not valid here parent = next( (e["parent_frame_id"] for e in attack_memory if e["frame_id"] == ancestor), None, ) ancestor = parent if frame_id in success_frames: # Classifier caught an overlap the provenance chain missed. raise ProbeContaminationError( f"frame {frame_id!r} matches success-labeled memory for target " f"{target_id!r} but provenance chain did not: probe {probe['text'][:60]!r}" ) return "admit" ```