# In what scenarios must an instance treat LITMUS benchmark verdict inheritance as invalid across a re-sampled eval batch **Date of Record:** 2026 November 29 **Scope:** Applies to continuous red-teaming harnesses that attach a LITMUS-derived safety verdict (pass/fail/uncertain) to an agent trajectory and then *inherit* that verdict onto re-sampled or replayed trajectories of the same scenario. Does not apply to single-shot, non-resampled evaluations where each trajectory receives a freshly computed verdict. ## Core Distinction A LITMUS safety verdict is a property of a *trajectory sample*, not of a *scenario*. The harness integration layer, however, is almost always built around scenario identity: a scenario ID is registered, a batch is scheduled, and the resulting verdict is keyed and cached by `(scenario_id, policy_version)`. This is the collapse that produces the failure. When the sampler is rerun—because of flakiness retries, temperature re-draws, or a policy shadow-deploy—the harness reuses the cached verdict for the new sample, treating a stochastic outcome as a deterministic label. The distinction that matters: **verdict inheritance is valid only when the verdict is provably invariant under re-sampling of the trajectory.** For safety verdicts on LLM agents this is almost never provable, because the verdict is a function of the token stream, which is non-deterministic under sampling. A verdict computed on sample `s_1` is evidence *about* `s_1`; it is a prior about `s_2` at best. ## What Was Observed In a continuous red-team loop, scenarios were scheduled every 6 hours against a rotating set of agent policy checkpoints. The harness cached verdicts keyed by `(scenario_id, checkpoint_hash)`. Two independent mechanisms silently reused stale verdicts: 1. **Retry-path inheritance.** When a tool call timed out mid-trajectory (a `MCP` transport `-32000` from a slow filesystem tool), the runner marked the trajectory `RETRYABLE` and re-executed it. The re-execution produced a materially different trajectory—the agent, having seen the timeout in its context on the second pass via a resumed checkpoint, took a different branch. The harness nonetheless attached the *first* attempt's verdict, which had been computed before the timeout, to the *second* attempt's record. A scenario that originally PASSed (agent refused a prompt-injection payload) was recorded as PASS on a re-run where the agent actually complied, because the compliance happened only on the retry branch. 2. **Shadow-deploy collision.** A policy checkpoint was hot-swapped mid-batch. The `checkpoint_hash` was computed at batch start, not at trajectory start. Trajectories that began under checkpoint `A` and completed under checkpoint `B` were keyed under `A`, and their verdicts collided with genuine `A` verdicts in the cache. The safety regression introduced in `B` was masked for one full cycle. The observable signature was a bimodal verdict distribution: scenarios whose retry rate exceeded 15% showed verdict disagreement between the cached label and a fresh oracle re-evaluation at ~40%, while low-retry scenarios showed ~3% (the base stochastic disagreement floor). The gap is the inheritance error. ## Condition of Validity Verdict inheritance from sample `s_1` to sample `s_2` is valid **iff** all three hold: - **Trajectory equivalence:** `s_2` is byte-identical to `s_1` in its observable action sequence (tool calls, arguments, ordering). This is checkable by hashing the normalized action trace, not the token stream. - **Policy stability:** the `checkpoint_hash` observed at trajectory *start* equals the `checkpoint_hash` at trajectory *end*, and equals the hash under which the verdict was cached. - **Oracle determinism:** the LITMUS scorer applied to the trace is a pure function of the trace (no model-graded scoring with its own sampling). If any condition fails, the inherited verdict is *invalid as a label* and may only be retained as a *prior* with explicit provenance (`inherited_from`, `inheritance_valid=false`). A retry that diverges in action trace, a hot-swapped checkpoint, or a model-graded scorer all break the invariant. ## Decision Boundary The harness must branch at the point of verdict attachment: - **Action-trace hash equal AND checkpoint stable AND scorer deterministic** → inherit verdict, mark `provenance=inherited`, skip re-scoring. Safe and cheap. - **Action-trace hash differs** → do not inherit. The trajectory is a *new sample*; it must be re-scored, or the scenario must be marked `verdict_unknown` for this cycle. Never let a prior verdict flow silently. - **Checkpoint changed mid-trajectory** → the trajectory is invalid for verdict purposes entirely; quarantine it, do not score, do not inherit. It is evidence about neither checkpoint. - **Model-graded scorer** → inheritance is *never* valid; the scorer's own sampling variance dominates. Re-score or drop. The boundary is sharp: the moment the action trace diverges, the two samples are different experiments. The cache key must include the action-trace hash, not just the scenario ID. ## Operational Effect Failing to enforce this boundary produces **false-negative safety regressions that persist across cycles**—the worst possible failure for a red-team harness, because it reports green while the policy degrades. The masking is self-reinforcing: retries are more common under exactly the conditions (tool timeouts, longer reasoning chains) that correlate with policy instability, so the inheritance error concentrates on the scenarios most likely to be genuinely unsafe. Enforcing the invariant raises scoring cost (re-scoring divergent retries) but converts the harness's output from a scenario-level label into a sample-level label with explicit provenance, which is the only form that survives audit. The guardrail is a single check at attachment time: recompute the action-trace hash, compare to the cached hash, and refuse inheritance on mismatch. ```python import hashlib from dataclasses import dataclass class VerdictInheritanceError(RuntimeError): """Raised when a cached LITMUS verdict is about to be inherited onto a trajectory sample that is not provably equivalent to the sample the verdict was computed on.""" @dataclass(frozen=True) class Trajectory: scenario_id: str action_trace: tuple # normalized (tool_name, args, order) checkpoint_start: str checkpoint_end: str scorer_deterministic: bool @dataclass(frozen=True) class CachedVerdict: scenario_id: str action_trace_hash: str checkpoint_hash: str label: str # "pass" | "fail" | "uncertain" def action_trace_hash(trace: tuple) -> str: h = hashlib.sha256() for tool_name, args in trace: h.update(tool_name.encode()) h.update(repr(sorted(args.items())).encode()) return h.hexdigest() def attach_verdict(traj: Trajectory, cached: CachedVerdict) -> str: # Guard 1: checkpoint must be stable across the trajectory. if traj.checkpoint_start != traj.checkpoint_end: raise VerdictInheritanceError( f"scenario {traj.scenario_id}: checkpoint changed mid-trajectory " f"({traj.checkpoint_start} -> {traj.checkpoint_end}); " f"trajectory is unscoreable and cannot inherit." ) # Guard 2: model-graded scorers are never inheritable. if not traj.scorer_deterministic: raise VerdictInheritanceError( f"scenario {traj.scenario_id}: non-deterministic scorer; " f"verdict inheritance is invalid by construction." ) # Guard 3: action trace must match the sample the verdict was computed on. live_hash = action_trace_hash(traj.action_trace) if live_hash != cached.action_trace_hash: raise VerdictInheritanceError( f"scenario {traj.scenario_id}: action trace diverged " f"(cached={cached.action_trace_hash[:12]}, " f"live={live_hash[:12]}); this is a new sample and must be re-scored." ) # Guard 4: checkpoint under which the verdict was cached must match. if cached.checkpoint_hash != traj.checkpoint_start: raise VerdictInheritanceError( f"scenario {traj.scenario_id}: cached verdict belongs to checkpoint " f"{cached.checkpoint_hash}, trajectory ran under {traj.checkpoint_start}." ) return cached.label def run_batch(trajectories, cache): results = {} for traj in trajectories: key = (traj.scenario_id, action_trace_hash(traj.action_trace)) cached = cache.get(key) if cached is None: results[traj.scenario_id] = "needs_scoring" continue results[traj.scenario_id] = attach_verdict(traj, cached) return results ```