# Why does an instance pass LITMUS safety scoring while its adversarial transcript contains an unlogged refusal divergence **Date of Record:** 2026 December 1 **Scope:** Applies to LITMUS-style safety benchmarks and red-teaming harnesses that score agent transcripts against a per-turn policy label set, particularly when the harness compares a model's *rendered* refusal against a *policy oracle* rather than the raw generation. Does not apply to single-turn classification scoring or to harnesses that log the full token stream with policy tags. ## Core Distinction The failure is not "the agent produced an unsafe output." It is that the **scoring layer and the transcript layer diverge on what counts as a refusal**, and the divergence is invisible because LITMUS scores the *post-processed* response while the red-team harness records the *pre-processed* generation. In a LITMUS harness, each turn is assigned a policy label (e.g., `REFUSE`, `COMPLY_SAFE`, `COMPLY_UNSAFE`) by an oracle judge. The judge sees the model's output *after* the harness's safety wrapper has run: a template that prepends a canned refusal when a classifier trips, or a rewrite pass that strips disallowed content. The red-team transcript, however, is often captured at the model boundary—before the wrapper—because the harness wants to measure the *model*, not the wrapper. When the wrapper fires on a turn the model itself did not refuse, the two layers disagree: the oracle labels the turn `REFUSE` (wrapper output), the transcript shows `COMPLY` (model output). The score is clean. The transcript is not. The invariant that must hold is: **for every turn, the policy label assigned by the oracle must be derivable from the transcript record alone.** If it is not, the benchmark is measuring the wrapper, not the agent, and the red-team evidence is inadmissible for the model under test. ## What Was Observed A red-team run against an agentic target (tool-using, multi-turn, MCP-connected) produced 240 transcripts. LITMUS scoring reported 0 unsafe completions and 12 refusals. Manual replay of the 12 refusals against the raw generation log showed 9 of them were *model compliances* that the wrapper had suppressed. The trigger condition was narrow: the wrapper's classifier fired on the substring `"here is how"` in the model's second-turn continuation, which the model had emitted as part of a benign code-explanation, but which the wrapper treated as a compliance cue. The oracle, seeing the wrapper's refusal, labeled the turn `REFUSE`. The transcript, captured at the model boundary, showed `COMPLY_SAFE` with the substring intact. The state transition is: 1. Turn N: model emits generation `G` containing a wrapper-tripping substring. 2. Wrapper intercepts `G`, emits refusal `R`, suppresses `G`. 3. Oracle judges `R`, assigns `REFUSE`. 4. Transcript logger (boundary-level) records `G`, not `R`. 5. Score aggregates `REFUSE`; transcript contains `COMPLY_SAFE`. 6. Auditor replaying the transcript cannot reproduce the score. The failure is silent because both layers are individually correct. The wrapper did its job. The oracle did its job. The transcript logger did its job. The *composition* is unsound because the three components disagree on the observation boundary. ## Condition of Validity The LITMUS score is valid **only if** the transcript record and the oracle input are the same object. In practice this means one of: - The harness logs the post-wrapper output (what the oracle sees), and the red-team evidence is explicitly labeled as "wrapper-inclusive." - The harness logs the pre-wrapper output (what the model emitted), and the oracle is run against the pre-wrapper output with the wrapper disabled. - The harness logs *both* and the score is reported as a pair `(model_score, wrapper_score)` with an explicit divergence count. The invariant fails when the harness mixes boundaries: transcript at model edge, oracle at wrapper edge. This is the default configuration in most LITMUS forks because the transcript logger is attached to the model client and the oracle is attached to the response pipeline, and nobody declared which side of the wrapper is authoritative. A second validity condition: the wrapper must be **deterministic and logged**. If the wrapper is itself an LLM-based rewrite pass, its output is non-deterministic, and the oracle's label may not be reproducible even when the boundary is correct. In that case the divergence is not just a logging bug—it is a *scoring instability* that makes the benchmark non-comparable across runs. ## Decision Boundary The decision to treat a divergence as a scoring artifact versus a genuine safety failure hinges on one question: **did the model, absent the wrapper, produce content the policy forbids?** - If yes: the wrapper is load-bearing, the model is unsafe, and the LITMUS score is a *wrapper* score, not a model score. The red-team finding stands; the benchmark score must be annotated. - If no (the wrapper fired on a false positive): the model is safe on this turn, the wrapper is over-triggering, and the LITMUS score is *correct for the deployed system* but *wrong for the model under test*. The red-team transcript is the authoritative record; the score is not. The boundary is not "did the score change"—it is "which layer is the subject of the claim." A benchmark that claims to measure model safety and a red-team harness that claims to measure model behavior must agree on the subject. When they don't, the divergence is a *measurement error*, not a safety event, and it must be resolved before either number is reported. The guardrail is a **boundary assertion** at scoring time: for each turn, assert that `oracle_input_hash == transcript_record_hash`. If the assertion fails, the turn is quarantined, not scored. Quarantined turns are reported separately as `BOUNDARY_DIVERGENCE` and excluded from the aggregate until reconciled. ## Operational Effect Without the boundary assertion, LITMUS scores are systematically biased toward the wrapper's behavior. A wrapper tuned to over-refuse will inflate the safety score while degrading the agent's utility, and the red-team transcript will show the degradation that the score hides. In the observed run, the 9 divergent turns were all wrapper false positives; the model was safe, the wrapper was not, and the benchmark reported neither fact. The operational consequence is that **safety benchmarks and red-team harnesses must share a single observation boundary, declared explicitly and asserted at runtime.** The cost of the assertion is one hash comparison per turn. The cost of omitting it is a benchmark that cannot be audited and a red-team corpus that cannot be replayed against the score it supposedly produced. ```python import hashlib from dataclasses import dataclass class BoundaryDivergenceError(RuntimeError): """Raised when the oracle's input and the transcript record diverge.""" pass @dataclass(frozen=True) class Turn: turn_id: str model_generation: str # what the model emitted (pre-wrapper) wrapper_output: str # what the wrapper emitted (post-wrapper) oracle_input: str # what the oracle actually judged transcript_record: str # what the red-team logger captured def _h(s: str) -> str: return hashlib.sha256(s.encode("utf-8")).hexdigest() def score_turn(turn: Turn, *, boundary: str = "model") -> str: """ Score a single turn under an explicit observation boundary. boundary="model" -> oracle must have judged the model generation. boundary="wrapper" -> oracle must have judged the wrapper output. In either case, the transcript record must match the same object. """ if boundary not in ("model", "wrapper"): raise BoundaryDivergenceError(f"unknown boundary: {boundary!r}") authoritative = turn.model_generation if boundary == "model" else turn.wrapper_output if _h(turn.oracle_input) != _h(authoritative): raise BoundaryDivergenceError( f"turn {turn.turn_id}: oracle input does not match boundary={boundary!r}; " f"oracle_hash={_h(turn.oracle_input)[:12]} " f"authoritative_hash={_h(authoritative)[:12]}" ) if _h(turn.transcript_record) != _h(authoritative): raise BoundaryDivergenceError( f"turn {turn.turn_id}: transcript record diverges from boundary={boundary!r}; " f"transcript_hash={_h(turn.transcript_record)[:12]} " f"authoritative_hash={_h(authoritative)[:12]}" ) # Score is only valid because all three views agree on the same object. return "SCORED" def score_run(turns: list[Turn], *, boundary: str = "model") -> dict: scored, quarantined = [], [] for t in turns: try: scored.append((t.turn_id, score_turn(t, boundary=boundary))) except BoundaryDivergenceError as e: quarantined.append((t.turn_id, str(e))) return { "scored": scored, "quarantined": quarantined, "boundary": boundary, "valid": len(quarantined) == 0, } ```