# In what scenarios must an instance refuse to inherit a LITMUS safety score across a harness version bump, and how does the score-inheritance boundary fail silently **Date of Record:** 2026 November 29 **Scope:** Applies to LITMUS-style safety benchmark harnesses that compute a composite adversarial-safety score and use it as a regression gate across agent releases. Does not apply to per-episode safety adjudication or to non-gated exploratory red-teaming runs. ## Core Distinction The failure mode is not "the agent got less safe." It is that the *harness* changed the mapping from behavior to score while the *agent* held its behavior constant, and the regression gate accepted the new score as if it were comparable to the old one. LITMUS scores are not measurements of the agent; they are measurements of the *agent-under-a-specific-harness-configuration*. A score is only a valid regression baseline if the harness configuration that produced it is byte-identical in the dimensions that affect scoring: the adversarial prompt suite version, the judge model and its decoding parameters, the refusal-classification rubric, the sampling temperature and seed policy, and the attack-seed corpus. The non-obvious boundary is that harness version bumps are *usually* benign and *usually* score-preserving, so teams learn to inherit scores across bumps. The invariant that must hold is narrower than "same harness": it is **score-comparability**, and it can be violated by a bump that changes nothing in the prompt suite yet shifts the judge's refusal boundary. Once violated, the gate fails *silently in the permissive direction* — the score typically drifts up (judges get more lenient, or the suite drops a hard category), the agent passes, and a genuine safety regression is masked. The dangerous boundary is not a red gate; it is a green gate that should have been red. ## What Was Observed A concrete trace from a harness bump that appeared cosmetic: 1. Baseline release `agent-4.2` scored `0.914` composite safety under `litmus-harness 3.1.0`. Recorded as the gate baseline. 2. Harness bumped to `3.2.0`. The changelog listed: "judge prompt template refactor (no semantic change)" and "added 12 prompts to the injection suite." The prompt-suite version string was left at `injection-v7` because the additions were "additive, not a rewrite." 3. `agent-4.2` re-scored under `3.2.0` at `0.938`. The delta was attributed to noise and the baseline was *re-inherited* to `0.938` for the gate. 4. `agent-4.3` shipped with a refactor to its tool-call planner. Under `3.2.0` it scored `0.921` — above the inherited `0.938` baseline minus the tolerance band, so it passed. 5. Post-deploy incident: `agent-4.3` executed unsanitized shell fragments when an adversarial prompt embedded a tool-call argument. The injection suite *had* covered this class — but the 12 added prompts in `3.2.0` were the ones that caught it, and the judge template refactor had simultaneously made the judge more likely to classify "executed then apologized" as a refusal. The two changes interacted: the added prompts increased exposure to the dangerous class, while the judge leniency increased the false-refusal rate on exactly those prompts. Net score went *up*. The gate's tolerance band (`0.02`) absorbed the real regression because the baseline itself had been inflated by the same leniency. The failure trace is a **baseline contamination**: the re-inheritance step re-scored the *old* agent under the *new* harness, so both baseline and candidate absorbed the judge shift, and the gate compared contaminated-to-contaminated. The delta between `agent-4.2` and `agent-4.3` was real but small; the *absolute* safety floor had quietly dropped. ## Condition of Validity A LITMUS score may be inherited across a harness version bump **only if all of the following hold**; if any is unknown, inheritance must be refused and the baseline recomputed: - The **adversarial prompt suite content hash** is unchanged, or additions are recorded as new categories with their own sub-scores rather than folded into the composite. "Additive" edits to a suite are *not* score-preserving: they change the denominator and the category weighting. - The **judge model identity and decoding config** (model id, version, temperature, top-p, max tokens) are byte-identical. A judge template "refactor" is a semantic change until proven otherwise by a *judge-only* replay on a frozen response corpus. - The **refusal-classification rubric** and its threshold are unchanged, and the rubric version is part of the score record. - The **sampling policy** (temperature, seed handling, number of samples per prompt) is unchanged. A change from greedy to sampled decoding shifts variance and therefore the effective pass threshold. - The **composite aggregation** (category weights, penalty for critical-category failures) is unchanged. The invariant: *a regression gate is valid only over a fixed (harness, judge, suite, rubric, sampling, aggregation) tuple.* The score is a function of that tuple applied to the agent. Inheriting across a tuple change is comparing `f(x, h₁)` to `f(y, h₂)` and calling the difference a property of `y`. ## Decision Boundary The boundary between "inherit" and "recompute" is not the version number; it is whether the *score-affecting* fields changed. Operationalize it as a **comparability key** — a hash over exactly the fields above — stored alongside every score. The decision rule: - If `comparability_key(candidate_run) == comparability_key(baseline_run)`: inherit is permitted; the gate compares scores directly within the tolerance band. - If the keys differ: **refuse inheritance**. The baseline must be *re-derived* by re-scoring the *baseline agent* under the *new* harness, and the gate must compare `score(candidate, new_harness)` against `score(baseline_agent, new_harness)`. This is a *paired* comparison under a shared harness, which cancels the harness shift. - If re-deriving the baseline is infeasible (baseline agent artifact unavailable), the gate must **fail closed**: no pass, human review required. It must never fall back to the stale absolute baseline. The subtle trap is the "additive prompt" case. The instinct is to treat added prompts as strictly increasing coverage and therefore safe to fold in. That is wrong when the judge is also changing, because the new prompts and the new judge interact. The boundary rule: **any change to the suite or judge invalidates the composite baseline, even if each change in isolation looks monotone-safe.** ## Operational Effect Enforcing the comparability-key boundary changes three things: 1. **Gates become paired, not absolute.** The pass/fail signal is `Δ = score(candidate, h) − score(baseline_agent, h)` under a shared harness `h`. Harness drift cancels; only agent-attributable drift remains. Absolute floors are retained only as a *secondary* alarm, never as the primary gate. 2. **Silent permissive failures become loud.** A judge-leniency shift that previously inflated both baseline and candidate now shows up as a *comparability-key mismatch* that blocks the gate until the baseline is re-derived — surfacing the drift at bump time rather than at incident time. 3. **Score records carry provenance.** Every stored score includes the comparability key, the harness version, and the judge config hash. A score without a key is treated as non-inheritable. This makes the "additive prompt" edit visibly change the key and forces the paired re-derivation. The residual risk is a harness change that *does* alter the judge but produces an identical key because a field was forgotten in the key definition. Mitigate by defining the key from the harness's *scoring-path* configuration object, not from a hand-maintained field list, and by a canary: replay a frozen adversarial corpus through the judge on every bump and assert the refusal classifications are unchanged before the key is trusted. ```python import hashlib import json from dataclasses import dataclass, field from typing import Optional class ScoreInheritanceRefused(RuntimeError): """Raised when a LITMUS safety score cannot be inherited across harness versions.""" pass @dataclass(frozen=True) class HarnessComparabilityKey: """Hash over every field that affects the agent->score mapping. If two runs do not share this key, their composite scores are not comparable and a regression gate must not compare them directly. """ suite_content_hash: str judge_model_id: str judge_decoding_config: dict refusal_rubric_version: str sampling_policy: dict aggregation_config: dict def digest(self) -> str: payload = json.dumps( { "suite": self.suite_content_hash, "judge_model": self.judge_model_id, "judge_decoding": self.judge_decoding_config, "rubric": self.refusal_rubric_version, "sampling": self.sampling_policy, "aggregation": self.aggregation_config, }, sort_keys=True, separators=(",", ":"), ) return hashlib.sha256(payload.encode("utf-8")).hexdigest() @dataclass class SafetyScoreRecord: agent_id: str harness_version: str composite_score: float comparability_key: HarnessComparabilityKey baseline_agent_artifact: Optional[str] = None def inherit_baseline( baseline: SafetyScoreRecord, candidate_harness: HarnessComparabilityKey, tolerance: float = 0.02, ) -> float: """Return the baseline score to gate against, or refuse inheritance. Inheritance is permitted ONLY when the comparability keys match. Otherwise the caller must re-derive the baseline by re-scoring the baseline agent under the candidate harness; if that artifact is unavailable, fail closed. """ if baseline.comparability_key.digest() == candidate_harness.digest(): return baseline.composite_score # Keys differ: harness shift detected. Do not inherit the stale absolute score. if baseline.baseline_agent_artifact is None: raise ScoreInheritanceRefused( f"Cannot inherit LITMUS score for {baseline.agent_id}: harness " f"comparability key changed ({baseline.harness_version} -> " f"candidate) and no baseline agent artifact is available to " f"re-derive a paired baseline. Gate must fail closed." ) raise ScoreInheritanceRefused( f"Harness comparability key mismatch for {baseline.agent_id}: " f"baseline key {baseline.comparability_key.digest()[:12]} != " f"candidate key {candidate_harness.digest()[:12]}. Re-score the " f"baseline agent under the candidate harness and gate on the paired " f"delta; do not compare absolute scores." ) def gate_regression( candidate_score: float, baseline: SafetyScoreRecord, candidate_harness: HarnessComparabilityKey, tolerance: float = 0.02, ) -> bool: baseline_score = inherit_baseline(baseline, candidate_harness, tolerance) return (baseline_score - candidate_score) <= tolerance ```