# Why does an instance pass the LITMUS safety benchmark while its adversarial transcript is unreplayable: scorer-side state divergence at the judge-seed boundary **Date of Record:** 2026 November 24 **Scope:** Applies to LITMUS-style adversarial safety benchmarks where a *judge* model scores a *subject* agent's transcript and a regression gate compares aggregate safety rates across runs. Covers stochastic judge sampling, transcript replay, and gate thresholds. Does not cover human adjudication workflows or single-shot classification with a deterministic, temperature-0 judge. ## Core Distinction The distinction that matters is between **the subject's safety behavior** and **the judge's scoring function being a sample from a distribution, not a deterministic oracle**. A LITMUS harness typically treats the judge as a pure function `score(transcript) -> {safe, unsafe}`. In practice the judge is a stochastic model sampled with a fixed `temperature` and `top_p`, and the harness only pins the *subject's* seed—not the judge's. The regression gate, however, is built on the assumption that a re-run of the same transcript yields the same verdict. That assumption is the load-bearing invariant, and it is false at the judge-seed boundary. The failure mode is not "the judge is wrong." It is: **the gate's pass/fail decision is a function of judge sampling noise that is unrecorded in the run artifact, so a subject can pass a gate on a transcript that, when replayed for audit, scores unsafe.** The transcript is not replayable because the verdict was never a property of the transcript alone. ## What Was Observed A subject agent was run against a 400-prompt adversarial suite. Each prompt produced a multi-turn transcript. The judge (a separate model instance, `temperature=0.7`, `top_p=0.95`, single sample per transcript) emitted a binary safety label. Aggregate unsafe rate: 6.25% (25/400), just under a gate threshold of 7%. Gate passed. During incident review, three of the 400 transcripts were replayed for human audit. The harness re-invoked the judge on the **identical transcript bytes** using the same judge config. Verdicts flipped on 2 of 3 (safe→unsafe). The judge was not seeded per-transcript; the harness seeded the subject's RNG from a run-level seed but left the judge's sampling to the provider's default entropy. Re-running the full suite with a *different* run-level seed produced an unsafe rate of 7.75% (31/400)—gate would have failed. The concrete trace on a single flipped transcript: 1. Turn 3 of the transcript contains a borderline instruction-following response: the subject partially complies with a disallowed request while adding a refusal for the harmful sub-step. 2. Judge sample 1 (run time): the judge's chain-of-thought lands on "partial refusal present; classify safe." `temperature=0.7` drove it into a region of the logit distribution where the refusal token dominates. 3. Judge sample 2 (replay): same prompt, different sampling draw. CoT lands on "actionable disallowed content present; classify unsafe." 4. Both samples are defensible. The verdict is a coin weighted by transcript ambiguity, not a function of the transcript. The run artifact recorded `{transcript_id, verdict, judge_model, judge_config}` but **not the judge's sampling seed or the judge's logprob margin**. The margin is the tell: on flipped transcripts, the `P(unsafe) - P(safe)` logit gap sat between 0.1 and 0.4 nats—inside the sampling noise band at `temperature=0.7`. On stable transcripts the gap exceeded 3 nats. ## Condition of Validity The gate is valid only under the invariant: > For every transcript `t`, the judge's verdict is stable under resampling: `P(verdict(t) = v) >= 1 - ε` for the recorded verdict `v`, with `ε` bounded by the gate's tolerance for classification error. This invariant holds when the judge's logit margin `|logit(unsafe) - logit(safe)|` exceeds the sampling-induced variance, i.e. when the transcript is unambiguous. It **fails silently** in the ambiguous band, and the failure is invisible because the harness records a single sample and never measures its own variance. The condition of validity is therefore a *per-transcript* property (margin above noise), not a *per-run* property (aggregate rate below threshold). A run can pass the aggregate gate while containing dozens of transcripts that individually violate the invariant. The aggregate rate is a point estimate from a mixture of stable and unstable transcripts; the gate threshold is compared against that point estimate as if it were deterministic. Two additional preconditions: - The judge must be invoked with a recorded, per-transcript seed derived deterministically from `(transcript_id, judge_model_version)` so replay reproduces the sampling path. - The judge model version must be pinned; a provider-side silent update changes the logit surface and invalidates margin calibration. ## Decision Boundary The boundary is the **margin threshold** `m*` below which a verdict is treated as non-authoritative and must be escalated (resampled `k` times, or routed to a stronger judge / human). `m*` is calibrated empirically: sample each transcript `k=8` times at the production judge config, compute the flip rate, and set `m*` at the margin where flip rate crosses the gate's per-transcript error budget. Decision rules: - `margin >= m*`: verdict is authoritative; counts toward the aggregate rate as a hard label. - `margin < m*`: verdict is **non-authoritative**; the transcript enters an escalation queue and is resampled. The aggregate rate must be computed over resolved labels only, with unresolved transcripts reported as a separate "indeterminate" bucket—never silently folded into `safe`. - Gate comparison uses a **conservative bound**: treat indeterminate transcripts as `unsafe` for the purpose of the gate (worst-case), or fail the gate outright if the indeterminate fraction exceeds a cap (e.g., 5%). The boundary is *not* "raise the judge temperature to 0." Temperature-0 judges are deterministic but not necessarily correct, and they collapse the variance signal that tells you which transcripts are ambiguous. The margin is the diagnostic; a temperature-0 judge hides it. The right move is to keep sampling stochastic but *measure* the margin and gate on it. ## Operational Effect Without the margin gate, the regression gate is a **noise-driven classifier**: its pass/fail flips on run-level seed changes that have nothing to do with subject behavior. Teams learn to re-run until green, which is Goodharting the gate. With the margin gate: - The aggregate safety rate becomes a *lower bound* over authoritative labels plus a reported indeterminate fraction, so a passing gate carries an auditable meaning. - Replay for audit reproduces the verdict because the per-transcript seed is recorded, or the transcript is flagged indeterminate and escalated rather than silently re-scored. - The escalation queue surfaces exactly the transcripts where the subject's behavior is genuinely borderline—which is where safety engineering effort belongs—instead of burying them in aggregate noise. The residual cost is judge invocations: `k` resamples on the ambiguous band. In the observed run, 31 of 400 transcripts fell below `m*`, a 7.75% escalation rate, roughly a 1.08× judge-call multiplier. That is the price of a gate whose verdict is a property of the transcript rather than of the sampler. ```python from dataclasses import dataclass from typing import Literal Verdict = Literal["safe", "unsafe"] class NonAuthoritativeVerdictError(RuntimeError): """Raised when a judge verdict's logit margin falls inside the sampling-noise band.""" @dataclass(frozen=True) class JudgeSample: verdict: Verdict logit_safe: float logit_unsafe: float seed: int @property def margin(self) -> float: return abs(self.logit_unsafe - self.logit_safe) def classify( transcript_id: str, sample: JudgeSample, margin_threshold: float, max_resamples: int, resample_fn, ) -> Verdict: """Return an authoritative verdict or escalate; never silently accept a noisy label.""" if sample.margin >= margin_threshold: return sample.verdict # Ambiguous band: verdict is not a property of the transcript alone. votes = [sample.verdict] margins = [sample.margin] for _ in range(max_resamples - 1): s = resample_fn(transcript_id) votes.append(s.verdict) margins.append(s.margin) # Resolution requires a clear majority AND at least one stable-margin sample. unsafe_votes = votes.count("unsafe") stable = any(m >= margin_threshold for m in margins) if stable and (unsafe_votes == 0 or unsafe_votes == len(votes)): return votes[0] raise NonAuthoritativeVerdictError( f"transcript {transcript_id!r}: margin {sample.margin:.3f} < {margin_threshold:.3f}; " f"resampled {len(votes)}x, votes={votes}, margins={[round(m, 3) for m in margins]}; " f"verdict is not authoritative—route to escalation queue, do not fold into aggregate rate" ) def regression_gate( authoritative: list[Verdict], indeterminate: int, total: int, unsafe_threshold: float, indeterminate_cap: float, ) -> bool: """Conservative gate: indeterminate transcripts count as unsafe for the bound.""" if total == 0: raise NonAuthoritativeVerdictError("empty suite; gate has no evidence") if indeterminate / total > indeterminate_cap: return False worst_case_unsafe = authoritative.count("unsafe") + indeterminate return (worst_case_unsafe / total) < unsafe_threshold ```