# In what scenarios must an instance treat LITMUS safety-score deltas as non-comparable across harness revisions, and how does the scorer-drift invariant fail at the regression gate? **Date of Record:** 2026 December 3 **Scope:** Applies to continuous red-teaming pipelines that gate agent releases on LITMUS safety-score deltas computed by a pinned-but-revisable harness (judge model, rubric version, attack corpus). Does not apply to absolute-threshold gates with a frozen harness hash, nor to human-adjudicated sign-off. ## Core Distinction A LITMUS safety score is a *ratio over a moving denominator*, not a measurement of the agent. Two quantities are routinely conflated at the regression gate: (a) the agent's behavioral safety under a fixed evaluation function, and (b) the evaluation function's output under whatever judge/rubric/corpus the harness happens to be running. Continuous red-teaming makes (b) non-stationary by design — the corpus grows, the judge model is upgraded, rubrics are amended — while the gate treats the score as if it were (a). The failure is not that the harness drifts; it is that the gate computes `score_new - score_baseline` across two *different* evaluation functions and attributes the delta to the agent. This is scorer drift masquerading as regression (or, more dangerously, as improvement). ## What Was Observed A release agent `agent-v42` was gated against baseline `agent-v41`. The harness had been bumped from `litmus-3.7` to `litmus-3.8` between baseline capture and candidate evaluation: the judge was upgraded (a stricter refusal classifier), the attack corpus added 340 adversarial multi-turn continuations, and one rubric clause (indirect-harm framing) was tightened. The pipeline reported a safety-score drop from 0.94 to 0.88 — a 6-point regression — and blocked the release. Replay exposed the mechanism. Running `agent-v41` (the *unchanged* baseline agent) through `litmus-3.8` produced 0.89, not 0.94. Decomposing the delta: - **Harness contribution:** 0.94 → 0.89 (−0.05) on identical agent weights. The stricter judge flipped 4.1% of borderline refusals to "unsafe"; the new corpus items were harder and the tighter rubric caught indirect-harm cases the old rubric scored safe. - **Agent contribution:** 0.89 → 0.88 (−0.01) on the shared evaluation function. The gate had attributed a −0.05 scorer shift plus a −0.01 behavioral shift as a single −0.06 agent regression. The −0.05 was pure harness revision; the agent was essentially flat. Conversely, an earlier run in the same quarter had shown a *+0.03 improvement* that was entirely corpus dilution — the new corpus added easy items, inflating the denominator's safe fraction. The gate had passed a release on a scorer artifact. The trace is deterministic once you look for it: 1. Baseline score `S_b` recorded under harness hash `H_b`. 2. Harness revised to `H_c` (judge/corpus/rubric changed). 3. Candidate `S_c` computed under `H_c`. 4. Gate computes `Δ = S_c − S_b` and compares to threshold `τ`. 5. `Δ` conflates `(S_c|H_c − S_b|H_c)` [agent effect] with `(S_b|H_c − S_b|H_b)` [harness effect]. Step 5 is the invariant violation: the gate assumes `S_b|H_c == S_b|H_b`, i.e., that the score is harness-invariant. It is not, and continuous red-teaming guarantees it will not be. ## Condition of Validity The delta-as-regression interpretation is valid **only** when the harness hash is identical across baseline and candidate, *or* when the harness effect has been measured and subtracted via a re-baseline replay. Concretely, a gate may compare `S_c` to `S_b` iff: - `harness_hash(H_b) == harness_hash(H_c)`, **and** - the attack corpus is a superset-stable set (no items removed, no scoring weights changed), **and** - the judge model identity and decoding temperature are pinned. When any of these is false, the gate MUST re-run the baseline agent under the candidate harness to obtain `S_b|H_c`, and gate on `S_c − S_b|H_c`. Failing to do so means the gate is measuring the harness vendor's release cadence, not the agent. The invariant is: *a regression gate is only as trustworthy as the stationarity of its evaluation function over the comparison window.* ## Decision Boundary The operative rule for the harness integrator: - **Compare across harness revisions only via re-baseline replay.** If `harness_hash` differs, compute the harness effect `E_h = S_b|H_b − S_b|H_c` and gate on the residual `Δ_agent = Δ − E_h` (equivalently `S_c − S_b|H_c`). If `E_h` exceeds the gate threshold `τ`, the harness revision alone is sufficient to trip the gate and the comparison is *invalid* — halt and re-baseline, do not report a regression. - **Treat corpus growth as a denominator change.** A superset that adds items changes the base rate of the score; a score computed over `n` items is not comparable to one over `n+k` unless the original `n` are scored identically and reported separately (stratified score). Gate on the stratified score over the *stable* item set, and report the new-item score as a separate diagnostic. - **Pin judge identity, not judge version string.** A judge "upgrade" that preserves the version string but changes the underlying model weights is an undetected drift; record the judge model hash, not just its name. ## Operational Effect Without the re-baseline step, the gate has two failure directions and both are live in continuous red-teaming: **false regression** (harness tightened → agent blocked despite flat behavior, as observed) and **false pass** (corpus diluted or judge loosened → agent shipped on a scorer artifact). The first burns engineering cycles chasing a non-existent behavioral change; the second ships a real regression masked by a favorable harness shift. The fix is cheap relative to the blast radius: one replay of the baseline agent per harness revision, cached by `(agent_hash, harness_hash)`, and a gate that refuses to emit a delta when `harness_hash` differs and no replay exists. The architectural invariant to enforce is that **the gate's input is a difference of scores under a single evaluation function**, and the harness layer must refuse to hand the gate a cross-revision delta without the corresponding baseline replay — raising rather than silently returning a number. ```python import hashlib from dataclasses import dataclass class HarnessComparabilityError(RuntimeError): """Raised when a regression gate attempts to compare safety scores produced under different, non-reconciled LITMUS harness revisions.""" @dataclass(frozen=True) class ScoreRecord: agent_hash: str harness_hash: str score: float corpus_size: int def _hash(obj: str) -> str: return hashlib.sha256(obj.encode()).hexdigest()[:16] def gate_regression( baseline: ScoreRecord, candidate: ScoreRecord, replayed_baseline: ScoreRecord | None, tau: float = 0.02, ) -> dict: """Gate a candidate agent against a baseline, reconciling harness drift. Returns a decision dict. Raises HarnessComparabilityError when the harness hash differs and no replayed baseline under the candidate harness is available -- the delta would conflate scorer drift with agent behavior. """ same_harness = baseline.harness_hash == candidate.harness_hash if not same_harness: if replayed_baseline is None: raise HarnessComparabilityError( f"harness drift {baseline.harness_hash} -> {candidate.harness_hash} " f"with no re-baseline replay; delta is non-comparable" ) if replayed_baseline.harness_hash != candidate.harness_hash: raise HarnessComparabilityError( "replayed baseline harness does not match candidate harness" ) if replayed_baseline.agent_hash != baseline.agent_hash: raise HarnessComparabilityError( "replayed baseline agent hash does not match recorded baseline" ) harness_effect = baseline.score - replayed_baseline.score if abs(harness_effect) > tau: # Harness revision alone is large enough to trip the gate; # the comparison is invalid regardless of agent behavior. raise HarnessComparabilityError( f"harness effect {harness_effect:+.3f} exceeds gate threshold " f"{tau}; re-baseline required before gating" ) effective_baseline = replayed_baseline else: effective_baseline = baseline agent_delta = candidate.score - effective_baseline.score return { "agent_delta": agent_delta, "harness_effect": ( None if same_harness else baseline.score - replayed_baseline.score ), "regressed": agent_delta < -tau, "passed": agent_delta >= -tau, } ```