# When must an instance refuse to certify a LITMUS safety-harness run whose adversarial regression gate passed against a stale model fingerprint **Date of Record:** 2026 December 2 **Scope:** Applies to CI pipelines that gate model or prompt deploys on a LITMUS-style safety benchmark harness, where the harness emits a pass/fail verdict and an adversarial regression gate compares that verdict against a stored baseline. Does not cover harnesses that re-execute the full adversarial corpus on every run without baseline comparison, nor human-reviewed red-team sign-off. ## Core Distinction The distinction that matters is between *the gate passing* and *the gate being valid for the artifact under test*. A LITMUS harness produces a verdict vector (per-category refusal/leak scores across the adversarial corpus) and a **model fingerprint** — a hash over weights identity, tokenizer revision, decoding config, system prompt, and harness corpus version. The regression gate compares the fresh verdict vector against a stored baseline *keyed by fingerprint*. The failure mode is that the gate finds a baseline, computes a delta, and returns PASS — but the baseline was captured under a fingerprint that differs from the current artifact in a field the harness did not include in the hash. The gate is green; the comparison is meaningless. This is the **stale-fingerprint false certification**, and it is distinct from an ordinary flaky-gate failure because every individual component behaves correctly: the harness ran, the corpus executed, the baseline exists, the delta is within tolerance. Only the *identity binding* between verdict and baseline is broken. The second, sharper distinction: a fingerprint mismatch is not automatically a failure. A mismatch in a *semantically inert* field (e.g., a build-ID string) should not block a deploy. A mismatch in a *safety-relevant* field (system prompt, decoding temperature, refusal-policy revision) must. The gate must therefore classify fingerprint fields into safety-relevant and inert, and the invariant is that a PASS is only certifiable when *all safety-relevant fields match* — not when the aggregate hash matches. ## What Was Observed A CI job for a customer-facing assistant ran the LITMUS harness (12,400 adversarial prompts across 9 harm categories) and the regression gate against a baseline captured 11 days earlier. The run reported `PASS: 0 categories regressed beyond 2.0pp tolerance`. The deploy proceeded. Within 36 hours, a category-7 (self-harm-adjacent) leak surfaced in production that the harness had a dedicated probe for. Replaying the run against the *pre-change* artifact reproduced the same verdict vector — the harness was not wrong. The discrepancy was in the fingerprint. Between baseline capture and the gated run, the team had changed the **system prompt** (a 40-token addition hardening tone) but the harness fingerprint function hashed only `weights_sha`, `tokenizer_rev`, and `corpus_version`. The system-prompt change was recorded in the deploy manifest but not in the fingerprint. The gate therefore matched the *old* baseline, which had been captured under the *old* system prompt. The category-7 score in the fresh run was 1.4pp worse than the baseline — within the 2.0pp tolerance, hence PASS — but the baseline had been measured under a prompt that did not exhibit the regression. The true regression relative to the *current* prompt's own baseline was 6.1pp, well outside tolerance. The gate had no way to know, because it never had a baseline for the current fingerprint. A second observation from the same incident: the harness's verdict vector is *stochastic* (temperature 0.2 on the judge model, sampling on the target). Re-running the identical artifact produced category-7 scores within ±0.9pp. The 2.0pp tolerance was chosen to absorb this noise, which is why the 1.4pp apparent delta was treated as noise rather than signal. The tolerance was correct for noise; it was wrong for a baseline mismatch, because a baseline mismatch can produce a delta of *any* magnitude, including one that lands inside the noise band by coincidence. A stale-fingerprint comparison can therefore produce a false PASS that is indistinguishable, at the verdict layer, from a genuine no-regression PASS. ## Condition of Validity A LITMUS regression-gate PASS is certifiable if and only if all of the following hold: 1. **Fingerprint completeness.** The fingerprint hash covers every field that can change safety behavior: weights, tokenizer, decoding config (temperature, top-p, max-tokens, stop sequences), system prompt bytes, tool schema, harness corpus version, and judge-model identity. Any field omitted is a latent stale-baseline hole. 2. **Safety-relevant field equality.** For each field classified safety-relevant, the fresh fingerprint's value equals the baseline's value. Aggregate-hash equality is insufficient because hash collisions and inert-field drift can mask relevant-field drift. 3. **Baseline freshness bound.** The baseline was captured within a declared staleness window (e.g., 14 days) *and* against the same corpus version. A baseline older than the window is treated as absent, forcing re-capture, not as a comparison target. 4. **Noise budget separation.** The tolerance is derived from measured run-to-run variance of the *same* artifact (the noise floor), and the gate fails closed if the observed delta exceeds the noise floor by a margin, regardless of whether it exceeds the tolerance. A delta inside tolerance but outside noise floor is *suspicious*, not passing — it triggers re-run, not deploy. 5. **Verdict provenance.** The verdict vector carries the fingerprint it was produced under, signed by the harness, so the gate cannot compare a verdict to a baseline under a different fingerprint without an explicit mismatch error. When any of these fails, the correct gate output is not FAIL and not PASS but **INDETERMINATE — recapture required**, which blocks deploy until a fresh baseline is captured under the current fingerprint. ## Decision Boundary The boundary is between *re-running to disambiguate* and *failing closed*. The rule: - If fingerprint fields match and delta ≤ noise floor: **PASS**, certifiable. - If fingerprint fields match and noise floor < delta ≤ tolerance: **RE-RUN** (up to N=3). If re-runs straddle the noise floor consistently, escalate to human review; do not auto-pass. - If fingerprint fields match and delta > tolerance: **FAIL**, block. - If any safety-relevant fingerprint field mismatches: **INDETERMINATE**, block, recapture baseline. Never compare. - If only inert fields mismatch: **PASS with annotation**, log the drift, proceed. The non-obvious part: a gate that treats "baseline exists" as sufficient will, under fingerprint drift, silently convert an INDETERMINATE into a PASS. The decision boundary must be enforced *before* the delta is computed, not after, because once the delta is in hand the gate is biased toward interpreting it as signal-about-safety rather than signal-about-baseline-identity. ## Operational Effect The practical consequence is that the regression gate must be structured as a **two-phase check**: phase one is fingerprint identity validation (cheap, deterministic, fails closed on safety-relevant mismatch); phase two is verdict-delta comparison (expensive, stochastic, only reached if phase one certifies identity). Collapsing the two phases — the common pattern of "load baseline by key, compute delta, threshold" — is what produced the incident. The fix is not a tighter tolerance; it is an identity gate that runs first and refuses to compare across fingerprints. Second effect: the harness must *sign* its verdict with the fingerprint, and the gate must reject unsigned or mismatched-signature verdicts. This prevents a subtler failure where a verdict from run A is compared to a baseline from run B because the CI cache keyed the verdict artifact by job ID rather than fingerprint. Third effect: baseline capture becomes a first-class CI job, not an afterthought. Every safety-relevant fingerprint change must trigger a baseline recapture *before* the gate can run, which means the gate's first action on a new fingerprint is to fail INDETERMINATE and enqueue a capture job. Teams that treat this as friction will be tempted to widen tolerances; the correct response is to make capture cheap (subset corpus, parallelized) so the INDETERMINATE path resolves in minutes. ```python import hashlib import json from dataclasses import dataclass, field from typing import Literal SAFETY_RELEVANT_FIELDS = ( "weights_sha", "tokenizer_rev", "decoding_config", "system_prompt_sha", "tool_schema_sha", "corpus_version", "judge_model_id", ) INERT_FIELDS = ("build_id", "ci_runner", "timestamp") class StaleFingerprintCertification(RuntimeError): """Raised when a regression gate attempts to certify a verdict against a baseline captured under a non-matching safety-relevant fingerprint.""" class FingerprintIncomplete(StaleFingerprintCertification): """Raised when the fingerprint omits a safety-relevant field.""" @dataclass(frozen=True) class Fingerprint: fields: dict def hash(self) -> str: return hashlib.sha256( json.dumps(self.fields, sort_keys=True).encode() ).hexdigest() @dataclass class GateResult: status: Literal["PASS", "FAIL", "INDETERMINATE", "RE-RUN"] reason: str delta_pp: float | None = None def validate_fingerprint_completeness(fp: Fingerprint) -> None: missing = [f for f in SAFETY_RELEVANT_FIELDS if f not in fp.fields] if missing: raise FingerprintIncomplete( f"fingerprint missing safety-relevant fields: {missing}; " f"baseline comparison would be uncertifiable" ) def gate( current: Fingerprint, baseline: Fingerprint, delta_pp: float, tolerance_pp: float, noise_floor_pp: float, ) -> GateResult: validate_fingerprint_completeness(current) validate_fingerprint_completeness(baseline) relevant_mismatch = [ f for f in SAFETY_RELEVANT_FIELDS if current.fields.get(f) != baseline.fields.get(f) ] if relevant_mismatch: # Fail closed BEFORE computing any delta interpretation. # Do not compare a verdict to a baseline under a different identity. raise StaleFingerprintCertification( f"safety-relevant fingerprint mismatch on {relevant_mismatch}; " f"refusing to certify delta={delta_pp}pp against stale baseline " f"(current={current.hash()[:12]}, baseline={baseline.hash()[:12]})" ) inert_mismatch = [ f for f in INERT_FIELDS if current.fields.get(f) != baseline.fields.get(f) ] annotation = f"; inert drift on {inert_mismatch}" if inert_mismatch else "" if delta_pp <= noise_floor_pp: return GateResult("PASS", f"delta within noise floor{annotation}", delta_pp) if delta_pp <= tolerance_pp: return GateResult( "RE-RUN", f"delta {delta_pp}pp exceeds noise floor {noise_floor_pp}pp " f"but within tolerance {tolerance_pp}pp; re-run to disambiguate{annotation}", delta_pp, ) return GateResult("FAIL", f"delta {delta_pp}pp exceeds tolerance{annotation}", delta_pp) def certify_deploy( current: Fingerprint, baseline: Fingerprint, delta_pp: float, tolerance_pp: float, noise_floor_pp: float, ) -> GateResult: result = gate(current, baseline, delta_pp, tolerance_pp, noise_floor_pp) if result.status != "PASS": raise StaleFingerprintCertification( f"deploy certification refused: gate status={result.status} " f"reason={result.reason}" ) return result ```