# Under what conditions must an instance treat benchmark-harness determinism as a scoring invariant rather than a test fixture **Date of Record:** 2026 November 29 **Scope:** Applies to LITMUS-style adversarial agentic safety suites where a target model is driven through multi-turn task trajectories and scored by a separate judge model. Does not apply to single-turn, single-completion red-team probes scored by string matching, nor to human-adjudicated evaluations. ## Core Distinction A safety benchmark produces two distinct artifacts per run: the *trajectory* (the sequence of model outputs, tool calls, and environment state) and the *score* (a judge verdict over that trajectory). The common failure is treating the harness as a deterministic fixture—assume fixed seed, fixed prompt, fixed environment, therefore reproducible score. The correct framing is that **the score is a function of a non-deterministic trajectory sampled from a stochastic policy, then passed through a second stochastic policy (the judge)**. Reproducibility of the *harness* does not imply reproducibility of the *score*. The invariant that must be enforced is not "same seed yields same score" but "same recorded trajectory yields same score under the pinned judge configuration, and any score is bound to the exact trajectory hash that produced it." The non-obvious boundary: a harness can be fully deterministic in its own code (seeded RNG, frozen environment snapshots, pinned tool stubs) and still produce score variance of 10–30 percentage points on the same target model, because the target's sampling temperature, the judge's sampling temperature, and the judge's *positional sensitivity to trajectory length* are all uncontrolled. The invariant is violated not by a bug in the harness but by an unstated assumption that determinism composes across the target/judge boundary. ## What Was Observed A LITMUS suite of 240 adversarial agentic tasks was run against a fixed target model (temperature 0.7, top_p 0.95) with a pinned judge (temperature 0.0, fixed rubric). Three full runs of the identical harness produced jailbreak-success rates of 41.2%, 47.9%, and 44.6%. The harness code was byte-identical across runs; seeds were fixed; the environment snapshot was hash-verified. Decomposition of the variance: 1. **Target sampling variance.** At temperature 0.7, the target's per-task pass/fail is itself a Bernoulli draw. For tasks near the decision boundary (the model sometimes complies, sometimes refuses), the run-to-run flip rate was 18% of tasks. This alone accounts for roughly ±3 points of aggregate variance at n=240. 2. **Judge positional sensitivity.** The judge was given the full trajectory as a single message. When the same trajectory was re-scored, verdicts were stable (temperature 0.0). But when the *trajectory length* changed by even one benign tool-call turn—inserted by a different but equally valid target sampling path—the judge's verdict flipped on 9% of borderline tasks. The judge was not scoring the harmful content; it was scoring a function of the trajectory that included length and turn structure. 3. **Trajectory-hash collisions in the results store.** The harness keyed results by `(task_id, run_id)`, not by trajectory hash. Two runs that produced *different* trajectories for the same task overwrote each other's scores in the aggregate, so the reported rate was a mixture of stale and fresh verdicts. This is the compounding failure: sampling variance plus a store that silently aliases distinct trajectories under one key. The third item is the invariant violation proper. The first two are expected stochasticity; the third converts expected stochasticity into *unreproducible and misattributed* scores. ## Condition of Validity The scoring invariant holds only when all of the following are true: - Every score row carries a cryptographic hash of the exact trajectory it scored (target outputs, tool-call arguments, tool results, environment state deltas), and the store's primary key includes that hash. `(task_id, run_id)` is not a valid key for a stochastic target. - The judge configuration is pinned by content hash: model identifier, temperature, system prompt, rubric text, and the *serialization format* of the trajectory (turn delimiters, tool-call rendering). A change to any of these invalidates cross-run comparability and must bump a judge-config version that is stored alongside every score. - Trajectory length and turn count are either held constant across compared runs (fixed turn budget, forced termination) or explicitly modeled as a covariate, because judge verdicts are not length-invariant. - Aggregate rates are reported with a confidence interval derived from the per-task flip rate, not from a binomial assumption over n tasks, since per-task outcomes are correlated across runs through shared prompt prefixes. When any of these is absent, the reported number is a point estimate over an unmeasured mixture and must not be cited as a benchmark result. ## Decision Boundary The boundary between "acceptable variance" and "invalid measurement" is crossed at the moment a score is stored or reported without a trajectory binding. Concretely: - If you are running a *single* evaluation and reporting a single number for internal triage, sampling variance is tolerable and the trajectory binding is optional. - If you are *comparing* two models, two checkpoints, or two harness versions—or publishing a jailbreak-success rate—the trajectory binding and judge-config hash are mandatory. Without them, a 3-point difference between models is indistinguishable from run-to-run noise and from store aliasing. - If the judge is a stochastic model, temperature must be 0.0 *and* the rubric must be length-normalized (or the trajectory truncated to a fixed token budget before judging). A judge at temperature > 0 makes the score non-reproducible even given a fixed trajectory, which breaks the invariant at its root. The decision rule: **if you cannot re-score a stored trajectory and get the identical verdict, you do not have a benchmark; you have a sample.** ## Operational Effect Enforcing the invariant changes three things in the harness: 1. Results are keyed by `trajectory_hash`, and re-scoring a stored trajectory is a first-class operation that must be bit-identical. This turns the judge into a pure function of `(trajectory, judge_config_hash)` and makes judge drift detectable. 2. Aggregate reporting switches from a single rate to a rate with a flip-rate-derived interval, and cross-model comparisons gate on non-overlapping intervals rather than point differences. 3. The turn budget is fixed and enforced by the harness, removing trajectory-length as a free variable that the judge silently scores. The cost is that you can no longer "just run it again" and average; you must either fix the target's sampling (temperature 0) for comparability or report the distribution. The benefit is that a reported jailbreak rate is a property of the model, not of the run. ```python import hashlib import json from dataclasses import dataclass class UnboundScoreError(RuntimeError): """Raised when a score cannot be tied to an exact trajectory + judge config.""" @dataclass(frozen=True) class JudgeConfig: model_id: str temperature: float rubric: str serialization: str def content_hash(self) -> str: blob = json.dumps(self.__dict__, sort_keys=True).encode() return hashlib.sha256(blob).hexdigest() def trajectory_hash(turns: list[dict]) -> str: # Canonical serialization: turn order, tool args, tool results all included. blob = json.dumps(turns, sort_keys=True, separators=(",", ":")).encode() return hashlib.sha256(blob).hexdigest() def record_score(turns: list[dict], judge: JudgeConfig, verdict: float, store: dict) -> str: if judge.temperature != 0.0: raise UnboundScoreError( f"judge temperature {judge.temperature} != 0.0; score is not " "reproducible even given a fixed trajectory" ) if not turns: raise UnboundScoreError("empty trajectory cannot be scored") t_hash = trajectory_hash(turns) j_hash = judge.content_hash() key = (t_hash, j_hash) # Re-scoring the same trajectory under the same judge must be idempotent. if key in store and store[key] != verdict: raise UnboundScoreError( f"verdict drift for trajectory {t_hash[:12]} under judge " f"{j_hash[:12]}: stored {store[key]} vs new {verdict}" ) store[key] = verdict return t_hash def assert_replayable(turns: list[dict], judge: JudgeConfig, original_verdict: float, rescore_fn) -> None: """Invariant guard: re-scoring a stored trajectory must reproduce the verdict.""" replay = rescore_fn(turns, judge) if replay != original_verdict: raise UnboundScoreError( f"non-replayable score: original={original_verdict} " f"replay={replay} on trajectory {trajectory_hash(turns)[:12]}" ) ```