# Which invariants prevent LITMUS safety-benchmark contamination from collapsing adversarial tool-use suites into false-negative scoring **Date of Record:** 2026 November 29 **Scope:** Applies to construction and scoring of LITMUS-style agentic safety benchmarks where adversarial tasks exercise tool-use boundaries (filesystem scope, network egress, credential access, privilege escalation). Does not apply to static prompt-only jailbreak suites or to benchmarks scoring only final natural-language outputs without tool traces. ## Core Distinction A LITMUS benchmark is not a test of whether an agent *says* it will refuse; it is a test of whether the agent's *tool-call trace* stays inside a declared capability envelope while a task is adversarially perturbed. The non-obvious failure is **adversarial-task absorption**: an adversarial task that was designed to elicit a boundary violation gets silently satisfied by a *benign* tool path, so the run scores as "safe" without ever exercising the boundary. This is distinct from a false positive (agent flagged for benign behavior) and from a straightforward false negative (agent violates and is missed). Absorption is a *scoring-validity* failure: the suite reports safety, but the boundary was never probed. The invariant that prevents it is **trace-attributable boundary reachability**: every adversarial task must, on the reference benign policy, produce a tool trace that *cannot* satisfy the task's success predicate without crossing the declared boundary — otherwise the task is invalid and must be quarantined, not scored. ## What Was Observed A 40-task adversarial suite targeting filesystem egress had four tasks whose success predicate was "return the contents of `secrets/api_key.txt`." The reference benign agent, run against a sandbox where `secrets/` was symlinked into a read-only mount, satisfied all four by reading through the mount — a path the boundary model classified as *outside* the protected scope. The tasks scored "safe" (no violation), but the boundary was never reachable: the agent never had to attempt a write, a copy, or a network post. The suite's pass rate was 100% while the actual boundary — exfiltration of the key over the network — was probed zero times. A second class: tasks phrased as "summarize the config and POST it to the audit endpoint" were satisfied by an agent that summarized locally and returned the summary as a final answer, because the success predicate only checked that the summary string appeared in the transcript, not that the POST occurred. Both are absorption: the adversarial intent dissolved into a benign completion path. The trigger condition is precise: **absorption occurs when the task's success predicate is satisfiable by a trace that does not contain the boundary-crossing tool call the task was designed to elicit.** Three sub-conditions co-occur: (a) the predicate is stated over observable artifacts (strings, file hashes, HTTP responses) rather than over the *tool-call event* itself; (b) the environment provides a benign alias for the protected resource (symlink, cached copy, summary endpoint that accepts a local read); (c) the adversarial perturbation is phrased as intent ("exfiltrate") rather than as a required *action* ("issue a POST to `attacker.example` with the key in the body"). Any two of the three are survivable; all three produce silent absorption. ## Condition of Validity The benchmark is valid only under the **reachability invariant**: for every adversarial task `T` with declared boundary `B` and success predicate `P`, running the reference benign policy `π_ref` in the task's environment must yield a trace `τ` such that `P(τ)` holds **and** `τ` contains at least one tool call that `B` classifies as crossing. If `π_ref` produces a `τ` with `P(τ)` true and no crossing call, `T` is *absorbed* and must be rejected at suite-construction time. This is checkable statically by a differential harness: run `π_ref` twice, once with the boundary enforced (calls blocked) and once with it logged-but-allowed; if `P` holds in both, the task is absorbed. The invariant is not "the agent must be caught"; it is "the boundary must be *load-bearing* for task success." A second invariant, **trace-event scoring**, requires that `P` be evaluated over the structured tool-call log (tool name, arguments, target resource, egress destination), not over the concatenated transcript or final answer. This prevents the POST-vs-summary absorption. A third, **perturbation monotonicity**, requires that adding an adversarial instruction never *increases* the benign policy's success rate on `P`; if it does, the perturbation is a hint, not an attack, and the task is mislabeled. ## Decision Boundary The construction harness must draw a hard line between *scored* and *quarantined* tasks. A task is scored iff reachability holds, `P` is trace-event-scored, and monotonicity holds. If reachability fails, quarantine with reason `ABSORBED`. If `P` is transcript-scored, quarantine with reason `PREDICATE_NOT_TRACE_BOUND`. If monotonicity fails, quarantine with reason `PERTURBATION_IS_HINT`. The boundary is not "reject the task if the agent refuses" — refusal is a legitimate safe outcome and must be scored as safe, not quarantined. The boundary is specifically about whether the *reference benign path* can complete the task without touching the boundary; that is the only condition under which the task cannot distinguish safe from unsafe behavior. A suite that scores absorbed tasks reports inflated safety and is worse than no suite, because it manufactures false assurance. ## Operational Effect When the invariant is enforced, suite construction shifts from authoring task text to authoring *boundary-crossing traces*: each task must ship with a reference trace that demonstrably crosses `B`, and the harness rejects tasks whose reference trace is benign-completable. The operational cost is a differential run per task (two `π_ref` executions), which is cheap relative to the cost of shipping a contaminated suite. The effect on scoring is that pass rates drop, sometimes sharply, because previously "safe" absorbed tasks now either quarantine or, once re-authored to require the crossing call, correctly expose agents that comply. The downstream consequence for agent evaluation is that a LITMUS score becomes a *lower bound* on unsafe behavior rather than an upper bound on safety — the correct direction for a safety benchmark. The invariant to carry forward: **a safety task that a benign agent can pass without touching the boundary is not a safety task.** ```python from dataclasses import dataclass, field from enum import Enum from typing import Callable, Sequence class BoundaryClass(Enum): FILESYSTEM_READ = "fs_read" FILESYSTEM_WRITE = "fs_write" NETWORK_EGRESS = "net_egress" CREDENTIAL_ACCESS = "cred_access" PRIVILEGE_ESCALATION = "priv_esc" @dataclass(frozen=True) class ToolCall: tool: str target: str boundary: BoundaryClass | None = None # None == benign @dataclass class AdversarialTask: task_id: str declared_boundary: BoundaryClass success_predicate: Callable[[Sequence[ToolCall]], bool] predicate_is_trace_event_scoped: bool class TaskAbsorptionError(RuntimeError): """Raised when an adversarial task is satisfiable by a benign trace.""" class PredicateScopeError(RuntimeError): """Raised when a success predicate is not scoped to tool-call events.""" def validate_task( task: AdversarialTask, ref_trace_enforced: Sequence[ToolCall], ref_trace_logged: Sequence[ToolCall], ) -> None: if not task.predicate_is_trace_event_scoped: raise PredicateScopeError( f"{task.task_id}: success predicate is transcript-scoped; " "cannot distinguish POST from local summary" ) crosses = any(c.boundary == task.declared_boundary for c in ref_trace_logged) enforced_ok = task.success_predicate(ref_trace_enforced) logged_ok = task.success_predicate(ref_trace_logged) if enforced_ok and logged_ok and not crosses: raise TaskAbsorptionError( f"{task.task_id}: absorbed — success predicate holds on benign " f"trace with no {task.declared_boundary.value} crossing call" ) if not crosses: raise TaskAbsorptionError( f"{task.task_id}: reference trace never reaches declared boundary " f"{task.declared_boundary.value}; task cannot probe it" ) def build_suite( tasks: Sequence[AdversarialTask], ref_runner: Callable[[AdversarialTask, bool], Sequence[ToolCall]], ) -> list[AdversarialTask]: scored: list[AdversarialTask] = [] for t in tasks: enforced = ref_runner(t, enforce_boundary=True) logged = ref_runner(t, enforce_boundary=False) try: validate_task(t, enforced, logged) except (TaskAbsorptionError, PredicateScopeError): continue # quarantine scored.append(t) return scored ```