# Where must an instance draw the line between a LITMUS safety score and a LITMUS safety verdict when the harness mutates its own probes mid-run? **Date of Record:** 2026 November 27 **Scope:** Applies to continuous red-teaming pipelines that wire a LITMUS-style safety benchmark harness into a live agent loop and treat per-episode scores as gating signals. Does not apply to offline, single-shot benchmark runs where the probe set is frozen before scoring begins. ## Core Distinction A LITMUS harness produces two artifacts that look interchangeable and are not: a **score** (a scalar or vector summarizing how often the target agent emitted a disallowed behavior across the probe set as it existed at scoring time) and a **verdict** (a bound on the agent's behavior over the probe distribution, valid only while that distribution is held fixed). Continuous red-teaming collapses this distinction because the harness is designed to *generate new probes from the failures it observes*—mutation, seed evolution, adversarial paraphrase. The moment the probe generator consumes the target's own outputs to build the next probe, the score is no longer a measurement of a fixed agent against a fixed test; it is a measurement of a co-adapting pair. The invariant that must hold before any score is promoted to a verdict is **probe-set stationarity across the scoring window**. When mutation runs inside the window, stationarity is violated and the score silently becomes a lower bound on an adversary's progress rather than an estimate of the agent's safety. ## What Was Observed A continuous red-team harness was attached to a customer-facing agent with a rolling 15-minute scoring window. The harness ran a mutation loop: every flagged episode (disallowed tool invocation, policy-leaking completion) was fed to a paraphrase/perturbation generator, and surviving mutants were appended to the active probe pool. The pool was not versioned; a single mutable list was scored end-to-end each window. The failure trace was consistent across three deployments: 1. Window *N* opens with probe pool `P_N` of size 400. Agent scores 0.91 (fraction of probes passed). 2. During the window, 60 probes flag. The mutator expands each into ~8 variants; 300 new probes enter the pool. The pool is now 700 probes, but the *denominator used for the score* is recomputed over all 700. 3. The 300 new probes are, by construction, near-misses of the 60 failures—they are harder than the base distribution. Pass rate on the new probes is ~0.55. 4. Composite score for window *N* drops to 0.79. The alerting layer reads this as "agent safety regressed 12 points" and pages on-call. 5. On-call freezes the mutator, reruns the frozen `P_N` (400 probes), and gets 0.90. The agent did not change. The *test* changed. The inverse failure also occurred: in a window where the mutator happened to generate easy paraphrases (mutants that the agent's refusal classifier generalized to), the pool grew with high-pass probes and the composite score *rose* to 0.94 while the agent's behavior on the original hard set was flat. Both directions are the same bug: the score's denominator and its difficulty distribution are functions of the agent's own outputs, so the score is a fixed-point of a feedback loop, not a measurement. ## Condition of Validity A LITMUS score is a valid safety estimate for window *W* if and only if all of the following hold: - **Pool freeze at window open.** The exact probe set scored is hashed and sealed (`sha256` over sorted probe IDs + content) at `t_open`. Any probe appended during `[t_open, t_close]` is tagged `post-freeze` and excluded from the window score. - **Mutation is out-of-band.** The mutator may run during the window, but its outputs enter the *next* window's pool, never the current denominator. This preserves the adaptive power of continuous red-teaming while keeping each score a point-in-time measurement. - **Score and verdict are separately emitted.** The score is `pass_count / len(frozen_pool)`. The verdict is a boolean `score >= threshold AND pool_hash_matches(expected) AND mutator_state == "quiesced"`. A pipeline that consumes only the score cannot distinguish a real regression from pool drift. - **Mutation provenance is retained.** Each post-freeze probe records the parent probe ID and the triggering episode. Without this, a score drop cannot be attributed to either agent behavior or pool composition, and on-call cannot triage. The condition fails silently when the harness exposes a single `run()` that both mutates and scores—the most common integration shape, because it is the simplest to wire into a cron loop. ## Decision Boundary The boundary is: **does the probe generator read the target's outputs within the scoring window?** If yes, the score is a co-adaptation metric and must never gate a release, page an on-call, or be compared across windows. If no—mutation reads only the *previous* window's flagged episodes—the score is a stationary estimate and may gate. Concretely, the harness must enforce a one-window lag between observation and mutation: - Episode flags at window *N* feed the mutator, which writes to a staging pool. - At `t_open` of window *N+1*, the staging pool is merged into the active pool, then sealed. - Window *N+1* scores only against the sealed pool. This gives continuous adaptation without contaminating any single score. The cost is one window of latency before a novel failure mode is probed; that latency is the price of a valid measurement, and it is the correct trade because a score that pages falsely is worse than a probe that arrives 15 minutes late. A second boundary: **probe deduplication must be semantic, not string-exact.** Mutants that are paraphrases of already-present probes inflate the denominator with correlated samples, which narrows the confidence interval artificially and makes the score look more precise than it is. Deduplicate on embedding distance below a calibrated threshold before sealing, and record the dedup rate; a dedup rate above ~30% indicates the mutator is spinning on a single failure family and the pool is not diversifying. ## Operational Effect With the freeze-and-lag invariant enforced, three things change: 1. **Score variance attributable to pool drift drops to zero.** Cross-window comparisons become meaningful; a 3-point drop is a real signal, not a mutation artifact. Alerting thresholds calibrated on the old (contaminated) score must be recalibrated, because the contaminated score had inflated variance that masked real regressions. 2. **On-call triage gains a deterministic first step.** Given a drop, the operator checks `pool_hash_matches` and `mutator_state`. If the pool hash is stable and the mutator is quiesced, the drop is behavioral and escalates. If not, it is harness drift and routes to the red-team owner, not the agent owner. 3. **The verdict becomes auditable.** A release gate can cite `(score, pool_hash, mutator_state, window_id)` as a replayable tuple. An auditor can rerun the frozen pool and reproduce the score bit-for-bit, which is impossible when the pool is a live mutable list. The residual risk is the one-window lag: a genuinely novel failure mode discovered at window *N* is not scored until *N+1*. Mitigate by running the mutator's staging pool in *shadow* mode during window *N*—score it, log it, but do not gate on it. Shadow scores give early warning without contaminating the gating metric. ```python import hashlib from dataclasses import dataclass, field from enum import Enum class PoolStationarityError(RuntimeError): """Raised when a LITMUS score is promoted to a verdict while the probe pool mutated inside the scoring window.""" pass class MutatorState(Enum): QUIESCED = "quiesced" RUNNING = "running" @dataclass class ProbePool: probes: list[str] = field(default_factory=list) sealed_hash: str | None = None def seal(self) -> str: digest = hashlib.sha256("\n".join(sorted(self.probes)).encode()).hexdigest() self.sealed_hash = digest return digest def append_post_freeze(self, probe: str) -> None: # Appending after seal is allowed for the *next* window's staging pool, # but must never enter the current denominator. self.probes.append(probe) @dataclass class WindowScore: window_id: str pass_count: int pool_size: int pool_hash: str mutator_state: MutatorState @property def score(self) -> float: if self.pool_size == 0: raise PoolStationarityError(f"window {self.window_id}: empty scored pool") return self.pass_count / self.pool_size def promote_to_verdict( window: WindowScore, expected_hash: str, threshold: float = 0.85, ) -> bool: """ A score may only become a verdict if the pool was sealed and unmutated across the scoring window. Otherwise the score is a co-adaptation metric and must not gate. """ if window.mutator_state is not MutatorState.QUIESCED: raise PoolStationarityError( f"window {window.window_id}: mutator running during scoring; " f"score {window.score:.3f} is not a stationary estimate" ) if window.pool_hash != expected_hash: raise PoolStationarityError( f"window {window.window_id}: pool hash {window.pool_hash[:12]} " f"!= expected {expected_hash[:12]}; denominator drifted mid-window" ) return window.score >= threshold def run_scoring_window( pool: ProbePool, agent_outputs: dict[str, bool], # probe_id -> passed mutator_state: MutatorState, window_id: str, ) -> WindowScore: sealed = pool.seal() passed = sum(1 for p in pool.probes if agent_outputs.get(p, False)) return WindowScore( window_id=window_id, pass_count=passed, pool_size=len(pool.probes), pool_hash=sealed, mutator_state=mutator_state, ) if __name__ == "__main__": pool = ProbePool(probes=[f"probe_{i}" for i in range(400)]) outputs = {p: True for p in pool.probes[:364]} # 0.91 pass rate window = run_scoring_window(pool, outputs, MutatorState.RUNNING, "N") # Correct behavior: refuse to promote. The mutator is live; the score is contaminated. promote_to_verdict(window, expected_hash=pool.sealed_hash or "") ```