# When must an instance freeze its harm taxonomy before the adversarial multi-turn trace begins, rather than reclassifying mid-episode **Date of Record:** 2026 November 23 **Scope:** Applies to LITMUS-style safety benchmarks where an adversarial multi-turn agent episode is scored against a fixed harm taxonomy and must be reproducible byte-for-byte on replay. Does not apply to single-turn red-team probes, nor to live guardrail systems whose taxonomy is intentionally allowed to drift with policy updates. ## Core Distinction There are two distinct acts in a multi-turn adversarial evaluation: *labeling* a turn (assigning it a harm category from the taxonomy) and *scoring* an episode (aggregating turn labels into a pass/fail). The failure mode below is not mislabeling. It is **taxonomy mutation during episode execution** — the scorer reclassifies an earlier turn after observing a later turn, so the label attached to turn *k* depends on turns *>k*. The episode then ceases to be a function of its own prefix, and replay produces a different harm ledger than the original run. The invariant that must hold: *the harm label assigned to turn k is a pure function of the trace prefix T[0..k] and a taxonomy snapshot pinned at episode start.* Any benchmark that lets the taxonomy (category set, category definitions, or the mapping from behavior to category) change between turn *k* and turn *k+1* violates prefix-purity and is not reproducible. ## What Was Observed A LITMUS episode runs a target agent against an adversarial user simulator for N turns. Each turn the judge emits a structured label: `{category, severity, evidence_span}`. In the failing run, the harness passed the *live* taxonomy object (a mutable dict of category → natural-language definition) into every judge call, and a periodic "taxonomy refinement" job rewrote definitions mid-run when a category accumulated ambiguous evidence. Concrete trace. Turn 4: agent produces a response the judge labels `data_exfiltration/severity=low` because the then-current definition of `data_exfiltration` required "transfer to an external party." Turn 7: the adversarial simulator coaxes the agent into encoding the same data into a URL fragment. The refinement job had, between turns 4 and 7, widened `data_exfiltration` to include "encoding for later external retrieval." On replay, turn 4 is now labeled `data_exfiltration/severity=high`. The episode's aggregate harm score flips from pass to fail. The stored trace is identical; the score is not. The benchmark reported a non-reproducible safety regression that was, in fact, a taxonomy race. The second-order effect is worse: the judge's `evidence_span` for turn 4 pointed at text that the *new* definition no longer considered sufficient, so the replayed label carried an evidence span that did not entail its own category. The harm ledger became internally inconsistent — a category with no valid witness. ## Condition of Validity Prefix-purity of turn labels holds only if all of the following are pinned at episode start and immutable for the episode's duration: 1. **The category set** (no additions, no removals). 2. **Each category's definition text** (the exact bytes the judge conditions on). 3. **The severity rubric** mapping behavior features to severity levels. 4. **The judge model identity and decoding parameters** (temperature, seed, version hash). If any of (1)–(4) can change between turn *k* and turn *k+1*, the label at *k* is not a function of the prefix alone. The condition is *not* satisfied by "we log the taxonomy version" — logging is necessary but insufficient; the harness must *pass the pinned snapshot into every judge call* and reject any label whose `taxonomy_hash` does not match the episode's pinned hash. A subtle trap: pinning the taxonomy but not the judge's decoding seed. A temperature>0 judge will re-label turn 4 on replay even with an identical taxonomy, producing the same non-reproducibility through a different door. The invariant requires pinning *both*. ## Decision Boundary The boundary between a valid and invalid episode is whether the harm ledger is **reconstructible from the trace alone**. Operationally: - **Valid:** given the stored trace and the pinned taxonomy snapshot, an independent replayer reproduces every turn label and the aggregate score exactly. - **Invalid:** reclassification of turn *k* depends on evidence introduced at turn *j > k*. This is *future leakage into past labels* and must be treated as a hard episode failure, not a scoring quirk. The decision rule for the harness: before emitting any turn label, assert `label.taxonomy_hash == episode.pinned_taxonomy_hash`. If the refinement job has fired, the episode must *abort and restart* under the new snapshot — never splice labels from two taxonomy versions into one ledger. A ledger spanning two snapshots is not a score; it is two incomparable scores concatenated, and its aggregate is meaningless. Note the asymmetry: it is legitimate for a *new* episode to use a refined taxonomy. It is never legitimate for an *in-flight* episode to adopt it. The unit of taxonomy atomicity is the episode, not the turn. ## Operational Effect Enforcing episode-level taxonomy pinning changes three things: 1. **Reproducibility becomes a structural property, not a hope.** Replay diffing now isolates model behavior from taxonomy drift; a score change on replay unambiguously implicates the agent or judge, never the rubric. 2. **Refinement jobs must queue behind in-flight episodes.** The refinement pipeline gains a barrier: it may publish a new snapshot only to episodes that have not started. This is the operational cost — refinement latency is bounded by the longest running episode. 3. **Evidence-span entailment becomes checkable.** Because the label's category definition is frozen, a validator can assert that the `evidence_span` actually satisfies the pinned definition. Under a mutating taxonomy this check is impossible, since the definition at validation time differs from the definition at labeling time. The failure to guard this boundary does not merely produce flaky scores. It produces *plausible-looking* safety regressions that survive review because the trace is real and the taxonomy is real — only the temporal ordering is corrupt. ```python import hashlib from dataclasses import dataclass, field class TaxonomyMutationError(RuntimeError): """Raised when a turn label is produced under a taxonomy snapshot that differs from the episode's pinned snapshot.""" pass class FutureLeakageError(RuntimeError): """Raised when a turn-k label's evidence depends on turns > k.""" pass def _hash(text: str) -> str: return hashlib.sha256(text.encode("utf-8")).hexdigest() @dataclass(frozen=True) class TaxonomySnapshot: categories: dict # category -> definition text severity_rubric: str judge_seed: int @property def snapshot_hash(self) -> str: payload = repr(sorted(self.categories.items())) + self.severity_rubric + str(self.judge_seed) return _hash(payload) @dataclass class TurnLabel: turn: int category: str severity: str evidence_span: str taxonomy_hash: str @dataclass class Episode: pinned: TaxonomySnapshot labels: list = field(default_factory=list) def record_label(self, label: TurnLabel, current_taxonomy: TaxonomySnapshot) -> None: # Guard 1: the taxonomy used to produce the label must equal the pinned one. if label.taxonomy_hash != self.pinned.snapshot_hash: raise TaxonomyMutationError( f"turn {label.turn}: label produced under taxonomy " f"{label.taxonomy_hash[:12]} but episode pinned " f"{self.pinned.snapshot_hash[:12]}" ) # Guard 2: the taxonomy must not have drifted since pinning. if current_taxonomy.snapshot_hash != self.pinned.snapshot_hash: raise TaxonomyMutationError( f"turn {label.turn}: live taxonomy drifted mid-episode; " f"abort and restart under new snapshot" ) # Guard 3: evidence span must entail the category under the pinned definition. definition = self.pinned.categories.get(label.category) if definition is None: raise TaxonomyMutationError( f"turn {label.turn}: category {label.category!r} absent from pinned taxonomy" ) if not label.evidence_span.strip(): raise FutureLeakageError( f"turn {label.turn}: empty evidence span cannot entail {label.category!r}" ) self.labels.append(label) def score(self) -> dict: return { "turns": len(self.labels), "taxonomy_hash": self.pinned.snapshot_hash, "severity_counts": { s: sum(1 for l in self.labels if l.severity == s) for s in {l.severity for l in self.labels} }, } ```