# How does an instance detect harness-induced safety drift when the LITMUS adversarial suite silently mutates its own scoring rubric between runs? **Date of Record:** 2026 November 24 **Scope:** Applies to regression gating of agent safety behavior against adversarial benchmark suites (LITMUS-style) where the harness mutates prompts, tool fixtures, and scoring rubrics across runs. Does not apply to static, version-pinned eval suites where the rubric is immutable and content-addressed. ## Core Distinction The distinction that matters is between **behavioral regression** and **rubric drift**. A behavioral regression is a real change in how the agent instance handles an adversarial input: it now complies where it previously refused, leaks where it previously redacted, or escalates a tool call where it previously stayed in-bounds. Rubric drift is a change in the *scoring function itself* — the harness re-weights categories, tightens a refusal classifier, or rotates the adversarial seed corpus — such that the *same* agent behavior produces a *different* pass/fail verdict. Standard regression gating conflates these. When the LITMUS harness reports "safety score dropped from 0.94 to 0.81," the gate cannot tell whether the agent got worse or the ruler got stricter. Because adversarial suites are *designed* to mutate (that's what makes them adversarial — fixed corpora get memorized and overfit), the harness is under constant pressure to change its own scoring surface. The failure mode is that the gate consumes a single scalar and attributes all movement to the agent. ## What Was Observed A LITMUS-style harness was gating a tool-using agent against a 1,200-case adversarial suite organized into categories: prompt injection, jailbreak persistence, tool-boundary escape, and PII exfiltration. Each run produced a per-category pass rate and an aggregate. The gate fired on a 13-point aggregate drop between consecutive nightly runs. Investigation of the trace showed the agent's *behavior* on a held-out frozen probe set (200 cases, rubric frozen, content-addressed) was identical across both runs — token-for-token identical refusals and identical tool-call sequences. The drop originated entirely in the harness: 1. The harness had rotated its adversarial seed corpus (expected — it does this per run to defeat memorization), which changed the *category mix* of the 1,200 cases: the injection category grew from 22% to 38% of the suite. 2. The agent's per-category pass rate on injection was genuinely lower than on other categories (injection is harder). So a heavier injection mix mechanically lowered the aggregate even with zero behavioral change. 3. Separately, the harness's refusal classifier had been "tightened" in a minor version bump — a refusal that included a helpful redirect ("I can't do X, but here's Y") was now scored as a *partial compliance* rather than a clean refusal, reclassifying ~40 previously-passing cases as failures. Two independent rubric mutations, both invisible in the aggregate scalar, both masquerading as agent regression. The gate blocked a release that had no safety regression, and — more dangerously — the same mechanism would have *masked* a real regression if it had coincided with a rubric relaxation. ## Condition of Validity The invariant that must hold for a LITMUS gate to be trustworthy: > **The scoring function must be separable from the case distribution, and both must be content-addressed and pinned independently of the agent under test.** Concretely, a verdict is only valid when the harness can emit, for every run: (a) a hash of the exact rubric — classifier weights, refusal taxonomy, partial-compliance thresholds; (b) a hash of the exact case manifest — every adversarial case ID and its category label; and (c) the agent's raw per-case outcomes keyed by case ID, not just aggregates. If any of these is absent, the gate is measuring an uncontrolled confound. The validity condition fails silently in the common case because the harness *wants* to mutate (that's its job) and the gate *wants* a scalar (that's convenient). The reconciliation is to score the agent against a **frozen probe set** for gating decisions, and use the mutating adversarial corpus only for *exploration* — surfacing new failure classes — never for the pass/fail bit. ## Decision Boundary The boundary is: **mutating corpus → exploration signal only; frozen, content-addressed probe set → release gate.** A run may only block a release if the drop reproduces on the frozen probe set with an identical rubric hash. If the rubric hash differs between the baseline and candidate run, the comparison is void and must be recomputed against a rubric-matched baseline — never compared across rubric versions. A second boundary governs the classifier: any change to the refusal/compliance taxonomy is a **major version event** that invalidates all prior baselines. It cannot be shipped as a "minor" harness bump. The gate must refuse to compute a delta across a taxonomy version boundary and instead demand a full re-baseline of the frozen probe set under the new taxonomy. ## Operational Effect With the invariant enforced, the nightly gate reads: probe-set behavioral delta (the only number that can block), plus an exploration report from the mutating corpus that flags *new* failure classes without moving the release bit. The 13-point drop resolves to zero behavioral delta, the release unblocks, and the two rubric mutations are logged as harness-version events requiring re-baseline. The agent instance — and the humans reading its gate — can now distinguish "I got less safe" from "the ruler moved," which is the entire point of a regression gate. ```python import hashlib import json from dataclasses import dataclass, field class RubricDriftError(RuntimeError): """Raised when a safety delta is computed across incompatible rubric/case-manifest versions.""" pass @dataclass(frozen=True) class RunArtifact: run_id: str rubric_hash: str # hash of classifier weights + refusal taxonomy + thresholds manifest_hash: str # hash of frozen probe-set case IDs + labels per_case_outcomes: dict # case_id -> "pass" | "fail" aggregate_score: float # the scalar the naive gate consumes def content_address(self) -> str: blob = json.dumps( { "rubric": self.rubric_hash, "manifest": self.manifest_hash, "outcomes": self.per_case_outcomes, }, sort_keys=True, ).encode() return hashlib.sha256(blob).hexdigest() def gate_release(baseline: RunArtifact, candidate: RunArtifact, max_probe_delta: float = 0.02) -> bool: # Invariant: the gate may only compare runs sharing rubric AND manifest hashes. if baseline.rubric_hash != candidate.rubric_hash: raise RubricDriftError( f"Rubric hash mismatch ({baseline.rubric_hash[:8]} vs " f"{candidate.rubric_hash[:8]}); delta is void, re-baseline required." ) if baseline.manifest_hash != candidate.manifest_hash: raise RubricDriftError( "Case-manifest hash mismatch; mutating corpus cannot gate a release." ) # Compute behavioral delta on the frozen probe set, keyed by case ID. common = set(baseline.per_case_outcomes) & set(candidate.per_case_outcomes) if not common: raise RubricDriftError("No overlapping probe cases; comparison undefined.") base_pass = sum(baseline.per_case_outcomes[c] == "pass" for c in common) / len(common) cand_pass = sum(candidate.per_case_outcomes[c] == "pass" for c in common) / len(common) behavioral_delta = cand_pass - base_pass # Gate fires only on the frozen-probe behavioral delta, never the aggregate. return behavioral_delta >= -max_probe_delta def nightly_gate(baseline: RunArtifact, candidate: RunArtifact) -> None: try: ok = gate_release(baseline, candidate) except RubricDriftError as e: # Exploration signal only: log drift, do NOT block or pass the release. print(f"[exploration] rubric drift detected, gate voided: {e}") return if not ok: raise RubricDriftError( f"Genuine behavioral regression on frozen probe set " f"(run {candidate.run_id}); release blocked." ) print(f"[gate] release cleared for {candidate.run_id}") ```