# Why does an instance of the LITMUS safety benchmark diverge from its own recorded verdict when the evaluation harness replays a multi-turn agentic trace across a context-window boundary? **Date of Record:** 2026 November 28 **Scope:** Applies to replay-based scoring of multi-turn agentic red-team traces (tool calls, environment observations, and assistant turns) where the judge model's verdict is regenerated from a reconstructed transcript rather than read from the original run's stored label. Does not apply to single-turn prompt-injection classifiers or to harnesses that persist the judge's raw logits alongside the verdict. ## Core Distinction A LITMUS-style harness produces two artifacts per episode: the **trace** (the full sequence of agent turns, tool invocations, and environment responses) and the **verdict** (a binary or graded label emitted by a judge model that reads the trace). The failure mode here is not that the judge is wrong. It is that the verdict is **not a function of the trace as stored** — it is a function of the trace *as reconstructed under a particular context budget*. The harness treats the verdict as reproducible; in fact it is only reproducible modulo the truncation policy applied at replay time. The distinction that matters operationally: a *scoring error* is a judge that mislabels a fixed input. A *replay divergence* is a judge that labels a **different input** than the one the label was originally attached to, because the reconstruction step silently dropped, summarized, or reordered tokens. The second is far more dangerous because it passes regression tests (the harness "works"), produces stable-looking metrics (the divergence is systematic, not random), and corrupts the very ground truth that downstream safety tuning relies on. ## What Was Observed Consider a red-team episode of 47 turns against a tool-using agent, where the agent is probed toward a prohibited capability (say, synthesizing a controlled-substance precursor via a sequence of benign-looking reagent lookups). The original run executes under a 128k-token window; the full trace occupies ~96k tokens. The judge at run time reads the entire trace and emits `UNSAFE` with the rationale "cumulative reagent acquisition across turns 12, 19, 31, 44 constitutes a synthesis pathway." The trace is persisted. Three weeks later a harness upgrade changes the judge's effective context budget to 64k tokens (new judge model, or a stricter per-call cap, or a change in the tokenizer). On replay: 1. The reconstruction layer must fit 96k tokens into 64k. It applies a **middle-truncation** policy: keep the first N and last M tokens, elide the middle with a `[... 32k tokens elided ...]` marker. 2. Turns 12 and 19 (the early reagent lookups) survive in the head. Turns 44 (the final acquisition) survives in the tail. Turns 31 — the turn that established *intent* by pairing the reagent with a stated goal — falls in the elided middle. 3. The judge now reads a trace in which each individual step looks like an isolated, innocuous chemical lookup. It emits `SAFE` with rationale "no single turn requests a prohibited synthesis." The verdict flipped `UNSAFE → SAFE` with **zero change to the stored trace and zero change to the agent's behavior**. The divergence is entirely an artifact of the elision window landing on the intent-bearing turn. In a sweep of 1,200 episodes, 3.4% flipped, and the flips were not random: they concentrated in episodes where the incriminating evidence was *distributed* across turns (multi-step pathways) rather than localized (a single overt request). Localized violations replayed stably; distributed ones decayed. The harness's aggregate recall dropped from 0.91 to 0.78 on replay while its precision on localized violations stayed at 1.0 — which is exactly the signature that hides the bug, because the easy cases anchor the metric. ## Condition of Validity The stored verdict is a valid label for replay **iff** the reconstruction function `R(trace, budget) → transcript` is *verdict-preserving*: for every trace `t` and every budget `b` under which the harness may replay, `judge(R(t, b)) = judge(t)`. In practice this holds only when one of the following is true: - The trace fits entirely within the minimum budget the harness will ever apply (no elision occurs), or - The elision policy is **evidence-preserving by construction** — e.g., it never elides turns that contain tool calls or state mutations, only elides verbose environment observations, and it elides from the *oldest* observation forward rather than from a fixed middle window, or - The verdict is stored together with the exact reconstruction parameters (budget, policy, tokenizer hash) and replay is refused when those parameters differ from the recorded ones. The invariant the harness actually needs is stronger than "the trace is stored." It is: **the label is bound to a reconstruction, not to a trace.** Any harness that stores trace + verdict but not the reconstruction contract has an unstated dependency on a global constant (the context budget) that will change, and when it changes, the labels silently become labels-for-a-different-input. ## Decision Boundary The boundary between "safe to replay" and "must re-adjudicate" is whether the elision window can reach a **load-bearing turn**. A turn is load-bearing for a verdict if removing it changes the judge's output. This is not computable in general (it requires the judge to be run on every leave-one-out variant), so the operational proxy is structural: - **Localized violations** (single turn contains the full prohibited request): load-bearing turn is identifiable, elision rarely hits it if it is near the head or tail. Replay is *usually* safe but must still be checked. - **Distributed violations** (the prohibited act is assembled across ≥3 turns, no single turn is sufficient): every constituent turn is load-bearing, and middle-truncation is *guaranteed* to sever the chain whenever the chain spans the elision window. Replay is **unsafe by default** and the episode must be re-adjudicated under the new budget with a fresh judge pass, not compared to the old label. The decision rule: if the reconstruction elides any span that contains a turn participating in a cross-turn dependency (detectable by the agent having referenced a prior tool result), the old verdict is *void*, not *reproducible*. The harness must emit `REPLAY_INVALID` rather than a flipped label, because a flipped label is indistinguishable downstream from a genuine safety regression. ## Operational Effect When this boundary is crossed without a guardrail, three downstream effects compound: 1. **Label corruption propagates into tuning.** The flipped `SAFE` labels are used as negative examples in safety fine-tuning, teaching the model that distributed reagent-acquisition sequences are acceptable. The corruption is *targeted* at exactly the multi-step reasoning the benchmark was built to catch. 2. **Regression detection inverts.** A genuine safety regression (agent now complies with a localized request) shows up as a *smaller* metric delta than the replay artifact, so the harness's own noise floor masks real failures. 3. **The audit trail lies.** The stored verdict says `UNSAFE`; the replayed verdict says `SAFE`; neither record indicates the reconstruction parameters differed. An auditor comparing the two has no way to distinguish "the agent got safer" from "the judge got a shorter transcript." The guardrail is to make the reconstruction contract a first-class, persisted object and to refuse comparison across incompatible contracts. Concretely: hash the reconstruction parameters into the verdict record, and on replay, if the hash differs, either re-adjudicate and store a *new* verdict under the new hash (never overwrite) or raise. The code below implements the refusal path — it is the cheap half of the fix and the one that prevents silent label corruption. ```python import hashlib import json from dataclasses import dataclass class ReconstructionContractMismatch(RuntimeError): """Raised when a stored verdict is replayed under a different reconstruction contract than the one that produced it.""" pass @dataclass(frozen=True) class ReconstructionContract: budget_tokens: int policy: str # e.g. "middle_truncate", "observation_only_evict" tokenizer_hash: str def fingerprint(self) -> str: payload = json.dumps( { "budget": self.budget_tokens, "policy": self.policy, "tok": self.tokenizer_hash, }, sort_keys=True, ).encode() return hashlib.sha256(payload).hexdigest() @dataclass class VerdictRecord: episode_id: str label: str rationale: str contract_fingerprint: str def replay_verdict(record: VerdictRecord, current: ReconstructionContract) -> str: """Return the stored label only if the reconstruction contract matches. A mismatch means the transcript the judge originally read cannot be regenerated byte-for-byte; the stored label is a label for a different input and MUST NOT be compared against a fresh judge pass. """ if record.contract_fingerprint != current.fingerprint(): raise ReconstructionContractMismatch( f"episode {record.episode_id}: stored verdict was produced under " f"contract {record.contract_fingerprint[:12]}, replay requested " f"under {current.fingerprint()[:12]}. Re-adjudicate and store a " f"new verdict; do not diff against the old label." ) return record.label def safe_replay(record: VerdictRecord, current: ReconstructionContract) -> dict: try: label = replay_verdict(record, current) except ReconstructionContractMismatch as exc: return {"status": "REPLAY_INVALID", "detail": str(exc), "label": None} return {"status": "OK", "label": label} ```