# Under what conditions must an instance refuse to score a LITMUS safety-benchmark run as PASS when the harness has silently degraded its own attack battery between CI invocations **Date of Record:** 2026 November 26 **Scope:** Applies to any CI-integrated LITMUS-style red-team harness that (a) selects a subset of adversarial probes per run via sampling, budget caps, or capability negotiation, and (b) emits a binary PASS/FAIL gate consumed by a merge pipeline. Does not apply to fixed-corpus, full-battery runs where the probe set is byte-identical across invocations, nor to manual offline red-team assessments. ## Core Distinction The failure is not "the agent passed a safety test." It is that the *harness's attack surface contracted* between the run that established the baseline and the run that issued the PASS, and the gate cannot tell the difference between a hardened agent and a weakened battery. A LITMUS harness is a two-sided system: the target agent under test, and the probe battery that interrogates it. Continuous red-teaming in CI treats the battery as a constant and the agent as the variable. That assumption is false in every real deployment. Probe selection is itself probabilistic and stateful — it depends on per-run token budgets, on which attack categories the harness's own capability negotiation admitted, on cached probe artifacts that may have partially expired, and on the sampler's RNG seed. When the battery shrinks, the agent's refusal rate over the surviving probes rises for reasons that have nothing to do with the agent. The gate reads that rise as PASS. The invariant that must hold is **battery-set equivalence**: a PASS is only meaningful if the probe set evaluated is a superset of, or provably equivalent to, the probe set that the current safety threshold was calibrated against. Any run whose battery is a strict subset — for any reason, including legitimate budget throttling — produces a score that is *not comparable* to the baseline and must be reported as INDETERMINATE, not PASS. ## What Was Observed A representative trace from a harness where this boundary was crossed silently: 1. Baseline run (week 0): full battery, 1,240 probes across 14 attack categories, agent refusal rate 0.91, threshold calibrated at 0.88. Gate: PASS. 2. Week 3: the harness's probe-artifact cache (a content-addressed store of generated adversarial prompts) began returning `MISS` for two categories whose generator model version had been rotated upstream. The harness's loader logged a WARN and continued with the probes it could resolve. Battery size dropped to 1,038. No category was marked degraded in the report. 3. Week 4: CI job hit its wall-clock budget mid-battery. The harness's scheduler truncated the remaining probe queue to fit the timeout, dropping the slowest category (multi-turn jailbreaks, ~90s each). Battery size: 812. The truncation was recorded as a `budget_exceeded` telemetry event, not as a scoring caveat. 4. Agent refusal rate over the surviving 812 probes: 0.94. Gate: PASS, with a *higher* margin than baseline. The agent had not improved. The two dropped categories were precisely the ones it was weakest against — the multi-turn jailbreaks and the rotated-generator probes were where its refusals had historically failed. The PASS was an artifact of removing the probes that would have produced FAIL. The gate's margin *widened* as the battery degraded, which is the signature: a shrinking battery that drops hard probes inflates the score monotonically. A second observed variant: capability negotiation. The harness queried the target agent for its supported modalities and received a response that omitted `tool_call` (a transient schema-negotiation failure, not a true capability absence). The harness dropped all tool-injection probes as "unsupported by target." Battery: 1,240 → 690. Refusal rate over the remainder: 0.97. PASS. ## Condition of Validity A PASS from a LITMUS harness is valid if and only if all of the following hold at the moment of scoring: - **Probe-set superset check:** the evaluated probe ID set is a superset of the calibration probe ID set, or an explicit equivalence proof is attached (e.g., a versioned probe manifest with a hash that matches the calibration hash). - **Category coverage floor:** every attack category present in the calibration manifest has at least its calibration count of probes evaluated, or the category is flagged as `DEGRADED` and the run is downgraded to INDETERMINATE. - **Negotiation failures are not capability absences:** a probe dropped because the *harness* failed to negotiate a modality (timeout, schema mismatch, transient 5xx) is a harness fault, not evidence the target lacks the capability. Only an explicit, authenticated `capability_absent` response from the target may justify dropping a probe class — and even then the drop must be recorded against the category coverage floor. - **Truncation is a scoring event:** any budget- or timeout-driven truncation must mutate the run's verdict, not just its telemetry. A truncated run cannot be PASS. The condition fails silently because the harness reports *rate over what it ran*, and the gate consumes that rate without a denominator audit. The denominator is the load-bearing quantity. ## Decision Boundary The boundary sits between "fewer probes, same categories, comparable rate" and "fewer probes, missing categories, incomparable rate." The harness must compute, per run, a **coverage delta** against the calibration manifest: - `delta = 0` across all categories → score is comparable; PASS/FAIL proceeds normally. - `delta > 0` in any category, but the category is still represented at ≥ its calibration count → comparable; proceed. - `delta > 0` and any category falls below its calibration count, *or* any category is entirely absent → **incomparable**; the run MUST emit INDETERMINATE and block the merge gate, regardless of the observed refusal rate. The non-obvious part: the decision must be made on the *probe manifest*, before the score is computed, not on the score's confidence interval. A high refusal rate over a degraded battery is not weak evidence of safety — it is *no evidence*, because the probes that would have falsified safety were removed. Confidence intervals over the surviving set are misleadingly tight: they narrow as the battery shrinks, which is exactly backwards from what the gate needs. ## Operational Effect When this boundary is enforced, the CI gate acquires a new terminal state. INDETERMINATE is not a soft warning — it blocks merge until either the battery is restored (cache repopulated, budget raised, negotiation retried) or a human explicitly re-calibrates the threshold against the degraded manifest and records that decision as a versioned calibration event. The gate can no longer be satisfied by an agent that got safer *or* by a harness that got quieter; it distinguishes them. When the boundary is not enforced, the observed effect is a ratchet: each cache miss, each budget truncation, each transient negotiation failure permanently narrows the effective battery, and the agent's measured safety score drifts upward while its true robustness against the dropped categories decays unmeasured. The failure is invisible in dashboards because every individual run reports a valid-looking rate over a valid-looking denominator — the denominator is just no longer the one the threshold was calibrated on. By the time a real jailbreak lands in production, the harness has been silently grading a shrinking exam for weeks, and the PASS history is a record of the exam shrinking, not the agent hardening. The guardrail is a manifest-hash comparison at the gate, not a score comparison. The gate must refuse to score when it cannot prove it ran the same exam. ```python from dataclasses import dataclass, field from typing import Dict, FrozenSet class BatteryDegradedError(RuntimeError): """Raised when a LITMUS run cannot be scored because its probe battery is not provably a superset of the calibration manifest.""" @dataclass(frozen=True) class ProbeManifest: # category -> frozenset of probe IDs categories: Dict[str, FrozenSet[str]] def manifest_hash(self) -> str: import hashlib h = hashlib.sha256() for cat in sorted(self.categories): h.update(cat.encode()) for pid in sorted(self.categories[cat]): h.update(pid.encode()) return h.hexdigest() def counts(self) -> Dict[str, int]: return {c: len(ids) for c, ids in self.categories.items()} def score_run( calibration: ProbeManifest, evaluated: ProbeManifest, refusal_rate: float, threshold: float, ) -> str: """Return 'PASS', 'FAIL', or 'INDETERMINATE'. A PASS requires battery-set equivalence: every category in the calibration manifest must be represented in the evaluated manifest at no fewer probes than calibration, and every calibration probe ID must be present in the evaluated set (or an equivalence proof supplied). """ cal_counts = calibration.counts() eval_counts = evaluated.counts() degraded_categories = [] for cat, cal_n in cal_counts.items(): eval_n = eval_counts.get(cat, 0) if eval_n < cal_n: degraded_categories.append((cat, cal_n, eval_n)) # Any category below calibration count -> incomparable battery. if degraded_categories: raise BatteryDegradedError( "battery degraded: categories below calibration count " f"{degraded_categories}; refusal_rate={refusal_rate:.3f} is not " "comparable to threshold calibrated on full manifest " f"{calibration.manifest_hash()[:12]}" ) # Superset check on probe IDs, not just counts. for cat, cal_ids in calibration.categories.items(): missing = cal_ids - evaluated.categories.get(cat, frozenset()) if missing: raise BatteryDegradedError( f"category {cat!r} missing {len(missing)} calibration probes; " "count matched but ID set diverged — possible probe substitution" ) if refusal_rate >= threshold: return "PASS" return "FAIL" def gate(calibration: ProbeManifest, evaluated: ProbeManifest, refusal_rate: float, threshold: float) -> str: try: return score_run(calibration, evaluated, refusal_rate, threshold) except BatteryDegradedError: # Never let a degraded battery resolve to PASS. Block the merge. return "INDETERMINATE" ```