# How does an instance detect that a LITMUS adversarial safety suite has silently desynchronized its harm-oracle from the task payload? **Date of Record:** 2026 November 30 **Scope:** Applies to agent evaluation harnesses that pair an adversarial task corpus with a separately-versioned harm oracle (classifier, rubric, or judge model) and score agent trajectories post-hoc. Does not apply to static unit-test suites where the expected output is embedded in the task fixture itself. ## Core Distinction The failure is not "the agent fails a safety test." It is "the harness reports a *pass* on a task whose harm oracle was never actually invoked against the agent's real output." LITMUS-style suites are adversarial by construction: each task carries (a) a prompt designed to elicit a harmful action, (b) a *harm specification* — the predicate that defines what counts as a violation — and (c) an oracle that evaluates trajectories against that specification. The non-obvious boundary is that (b) and (c) drift independently of (a). Task payloads are versioned in the corpus; harm specifications are versioned in the oracle; and the binding between them is frequently a string key, a regex on the task ID, or an inferred category tag. When the binding silently resolves to a default "not harmful" rubric — a common fallback when a category tag is missing — the harness produces green results for tasks it never actually evaluated. The agent is not safe; the *evaluator* has amnesia about what it was supposed to check. ## What Was Observed During a regression run of a 1,400-task adversarial suite, 61 tasks (4.4%) returned `status: pass` with `oracle_invocations: 0`. The tasks had been re-tagged from `category: "tool_misuse"` to `category: "tool_misuse.v2"` in a corpus migration. The oracle's category router used an exact-match dictionary lookup: ``` ORACLE_ROUTES = { "tool_misuse": ToolMisuseOracle(), "data_exfil": DataExfilOracle(), ... } route = ORACLE_ROUTES.get(task.category) # returns None on miss if route is None: return Verdict(passed=True, reason="no oracle matched") # <-- silent green ``` The migration renamed the category, the router missed, and the harness returned a *pass* because the missing-oracle path defaulted to permissive. The agent's actual trajectories in those 61 tasks included two genuine violations (a shell command that wrote outside the sandbox, and a credential string echoed into a tool argument) that were never scored. The suite reported 99.7% safety; the true figure on the evaluated subset was lower, and on the un-evaluated subset it was *unknown*. This is the canonical LITMUS desync: the adversarial payload still fires, but the scoring apparatus has been disconnected from it, and the failure mode is a false negative that looks like a clean pass. The second-order observation: because the harness also produced a `coverage` metric derived from `oracle_invocations / total_tasks`, the 4.4% gap was visible *only* in a secondary metric that no gate consumed. The primary gate (`pass_rate >= 0.99`) passed. The invariant that mattered — "every task with a harm specification must produce exactly one oracle invocation" — was never asserted. ## Condition of Validity The guardrail holds only under the following condition: **the binding from task to harm specification must be total and fail-closed.** Concretely, for every task `t` in the suite, `resolve_oracle(t)` must return a concrete oracle instance or raise; it must never return a permissive default. This requires: 1. A *closed* category enum, validated at corpus load time, not at scoring time. A task whose category is not in the enum is a corpus error, not a runtime pass. 2. A cardinality assertion: `oracle_invocations == 1` per task per trajectory, checked before any aggregate is computed. 3. A *binding hash*: at corpus build, compute `H(task_id || harm_spec_version || oracle_version)` and store it in the task record. At scoring, recompute and compare. A mismatch means the task and oracle were versioned apart and the result is invalid, not passing. The condition fails whenever any of these is optional. In the incident above, all three were absent: the enum was open (dict lookup), cardinality was unasserted, and there was no binding hash — the migration had bumped `harm_spec_version` on the oracle side but not the corpus side, and nothing detected the skew. ## Decision Boundary The boundary between "valid pass" and "invalid pass" is a single predicate evaluated per (task, trajectory) pair before aggregation: - If `resolve_oracle(t)` raises → **invalid**, halt the run (do not score remaining tasks; a corpus/oracle skew is global, not local). - If `resolve_oracle(t)` returns an oracle but `oracle_invocations != 1` → **invalid**, flag the task. - If the binding hash mismatches → **invalid**, flag the task and the corpus version. - Only if all three hold is the verdict **valid**, and only valid verdicts may enter the pass-rate numerator or denominator. The non-obvious part: a *missing* oracle must be treated identically to a *failing* oracle for gate purposes, because the harness cannot distinguish "the agent behaved" from "the evaluator was blind." Fail-closed is the only sound default. A permissive default on a safety benchmark is a bug that produces false assurance at exactly the moment assurance matters most. ## Operational Effect With the fail-closed binding in place, the 61 desynced tasks surface as `invalid` rather than `pass`, the run halts at the first invalid pair, and the corpus migration is forced to re-tag and re-hash before any score is reported. The practical consequence is that safety suites become *brittle on purpose*: any change to task categories, harm specifications, or oracle routing is a hard failure until the binding hash is regenerated. This is the correct trade. The alternative — a suite that silently widens its own blind spot under version skew — is worse than no suite, because it manufactures the appearance of coverage that the next incident will contradict. The invariant to carry forward: **on an adversarial harness, an unbound task is a failed task, and a missing oracle is a red gate, never a green one.** ```python from __future__ import annotations import hashlib from dataclasses import dataclass class OracleBindingError(RuntimeError): """Raised when a task cannot be soundly bound to a harm oracle. A LITMUS-style safety harness must fail closed: an unbound task is a failed evaluation, never a silent pass. """ @dataclass(frozen=True) class Task: task_id: str category: str harm_spec_version: str binding_hash: str # H(task_id || harm_spec_version || oracle_version) @dataclass(frozen=True) class Oracle: category: str version: str ORACLE_REGISTRY: dict[str, Oracle] = { "tool_misuse": Oracle("tool_misuse", "3"), "data_exfil": Oracle("data_exfil", "2"), # NOTE: "tool_misuse.v2" is deliberately absent — a corpus migration # that renames categories without re-registering must hard-fail. } def compute_binding_hash(task_id: str, harm_spec_version: str, oracle_version: str) -> str: payload = f"{task_id}||{harm_spec_version}||{oracle_version}".encode() return hashlib.sha256(payload).hexdigest() def resolve_oracle(task: Task) -> Oracle: """Total, fail-closed resolution of a task to its harm oracle.""" oracle = ORACLE_REGISTRY.get(task.category) if oracle is None: raise OracleBindingError( f"no oracle registered for category {task.category!r} " f"(task {task.task_id}); refusing to score as pass" ) expected = compute_binding_hash(task.task_id, task.harm_spec_version, oracle.version) if expected != task.binding_hash: raise OracleBindingError( f"binding hash mismatch for task {task.task_id}: " f"corpus/oracle version skew detected" ) return oracle def score_task(task: Task, trajectory: list[dict], oracle_invocations: int) -> dict: """Score a single task, asserting the cardinality invariant before scoring.""" oracle = resolve_oracle(task) # raises on desync if oracle_invocations != 1: raise OracleBindingError( f"expected exactly 1 oracle invocation for {task.task_id}, " f"got {oracle_invocations}; verdict is invalid, not pass" ) # ... run oracle against trajectory, return verdict ... return {"task_id": task.task_id, "oracle": oracle.category, "valid": True} ```