# When must an instance refuse to inherit a LITMUS safety score across harness revisions: the calibration-drift boundary in CI-gated adversarial evaluation **Date of Record:** 2026 November 30 **Scope:** Applies to CI pipelines that gate agent releases on LITMUS (or LITMUS-style) adversarial safety benchmarks where a cached/persisted safety score from a prior harness revision is reused as a pass/fail gate for a new model or prompt revision. Does not apply to freshly-executed full-suite runs with identical harness, judge, and seed configuration. ## Core Distinction A LITMUS safety score is not a property of the model alone. It is a property of the tuple `(model, prompt scaffold, judge model, judge rubric version, adversarial seed corpus, decoding params)`. The failure mode here is **calibration inheritance**: the CI harness treats a persisted safety score as a model attribute and re-attaches it to a *new* tuple whose judge or seed corpus has drifted. The score is numerically continuous with the old one (same 0–1 scale, same thresholds, same dashboard), so the pipeline sees no discontinuity — but the *meaning* of the number has shifted because the adversarial distribution and the judge's decision boundary moved underneath it. The instance must refuse to inherit when the tuple's identity hash diverges, even though nothing about the score's format signals that anything changed. ## What Was Observed A release candidate (`agent-v7.2`) was gated against a persisted LITMUS score of `0.94` (pass threshold `0.90`) recorded under harness revision `H-41`. Between candidates, the harness was bumped to `H-42` for two changes: (1) the judge rubric was tightened on "implicit instruction-following under roleplay framing," and (2) twelve adversarial seeds were added to the injection corpus. The CI job, configured to skip re-evaluation when a score artifact existed for the model hash, loaded `0.94` and passed the gate. A subsequent manual full run under `H-42` produced `0.81`. The delta was not model regression — the model was byte-identical. The delta was entirely judge-boundary shift plus corpus expansion. The persisted score had been *calibrated* against a distribution that no longer existed. The gate had been passing on a number that was, under the active harness, simply wrong. The trace: `load_artifact(model_hash) -> score=0.94 -> compare(0.94, 0.90) -> PASS`. The artifact carried `model_hash` but not `harness_revision`, `judge_rubric_hash`, or `seed_corpus_hash`. The cache key was under-specified relative to the tuple the score actually depended on. ## Condition of Validity A persisted safety score is valid as a CI gate **if and only if** the artifact's identity key covers every component that can move the score's calibration: - model weights hash, - prompt scaffold hash, - judge model identifier **and** rubric content hash, - adversarial seed corpus hash (including ordering, since some judges are order-sensitive), - decoding parameters (temperature, top-p, max-tokens — these shift refusal rates measurably), - harness code revision. If any component is absent from the key, the score is valid only under the invariant that the component is *frozen* — and that freeze must be asserted, not assumed. The moment the harness revision advances without invalidating dependent artifacts, the invariant is broken and inheritance must be refused. The condition is not "the score is old" — age is irrelevant. The condition is "the tuple that produced the score is not the tuple being gated." ## Decision Boundary The boundary is sharp and must be enforced structurally, not by convention: - **Same tuple identity → inherit.** Score is a legitimate gate input; skip re-run for cost. - **Any key component diverged → refuse inheritance, force full re-run.** Do not "adjust" the old score by a delta; do not average old and new; do not apply a tolerance band. Calibration drift is not a noise term — it is a distribution change, and no scalar correction is sound. - **Judge-only divergence → refuse, and additionally flag for re-baselining**, because judge drift silently reclassifies borderline cases across the *entire* historical corpus, not just the candidate. The refusal must be a hard failure of the gate, not a warning. A warning is a soft signal that a `|| true` in a shell step will swallow; the invariant requires the pipeline to stop. ## Operational Effect Enforcing tuple-identity inheritance converts a silent false-pass into a loud, attributable re-run. The cost is CI compute on every harness bump; the benefit is that a green gate means the *current* harness judged the *current* tuple above threshold. Without it, safety gates degrade into decorative checkmarks that ratchet toward "pass" as harnesses tighten and artifacts age — the exact opposite of the intended direction. The guardrail is a single architectural rule: **the cache key must equal the calibration tuple, and divergence must raise, not warn.** ```python import hashlib import json from dataclasses import dataclass class CalibrationInheritanceError(RuntimeError): """Raised when a persisted LITMUS score is reused across a diverged calibration tuple.""" pass @dataclass(frozen=True) class CalibrationTuple: model_hash: str scaffold_hash: str judge_id: str judge_rubric_hash: str seed_corpus_hash: str decoding_params: dict harness_revision: str def identity(self) -> str: payload = json.dumps( { "model": self.model_hash, "scaffold": self.scaffold_hash, "judge": self.judge_id, "rubric": self.judge_rubric_hash, "seeds": self.seed_corpus_hash, "decoding": self.decoding_params, "harness": self.harness_revision, }, sort_keys=True, ) return hashlib.sha256(payload.encode()).hexdigest() @dataclass(frozen=True) class ScoreArtifact: tuple_identity: str score: float threshold: float def gate_release( candidate: CalibrationTuple, artifact: ScoreArtifact | None, force_full_run: bool = False, ) -> str: if artifact is None or force_full_run: return "RUN_FULL_SUITE" if artifact.tuple_identity != candidate.identity(): # Do not inherit, do not adjust, do not average. Refuse and re-run. raise CalibrationInheritanceError( "Persisted LITMUS score was calibrated against a diverged tuple " f"(artifact={artifact.tuple_identity[:12]}, " f"candidate={candidate.identity()[:12]}). " "Judge rubric, seed corpus, decoding, or harness revision moved; " "the score is not a valid gate input for this candidate." ) if artifact.score < artifact.threshold: return "FAIL_SAFETY_GATE" return "PASS_VIA_INHERITED_SCORE" def run_gate(candidate: CalibrationTuple, artifact: ScoreArtifact | None) -> None: try: outcome = gate_release(candidate, artifact) except CalibrationInheritanceError as exc: # Hard-fail the CI step; never downgrade to a warning. raise CalibrationInheritanceError(f"CI safety gate blocked: {exc}") from exc if outcome == "FAIL_SAFETY_GATE": raise CalibrationInheritanceError( f"Safety score {artifact.score:.3f} below threshold {artifact.threshold:.3f}" ) ```