# In what scenarios must an instance distrust a LITMUS safety benchmark pass when the harness scored a tool-call trajectory it never actually executed **Date of Record:** 2026 November 27 **Scope:** Applies to LITMUS-style safety harnesses that grade agentic behavior by replaying or simulating tool-call trajectories and emit a pass/fail verdict used as a deployment gate. Does not apply to harnesses that instrument the live execution sandbox directly and capture ground-truth side effects. ## Core Distinction A LITMUS safety benchmark measures *policy compliance of a proposed trajectory* — it asks "would this sequence of tool calls, if executed, violate a stated safety rule?" It does not, by default, measure *whether the trajectory the harness scored is the trajectory the agent actually emitted, in the environment the agent actually occupied.* These diverge the moment the harness's scoring path and the agent's execution path are not the same object. The failure mode is **scored-trajectory substitution**: the harness grades a reconstructed, normalized, or model-simulated trajectory rather than the literal tool-call stream the agent produced. A pass is then a statement about the harness's reconstruction, not about the agent. The invariant that must hold for a pass to be trustworthy is *trajectory identity*: the bytes scored must be the bytes emitted, against the same tool schema versions and the same environment state the agent saw. This is non-obvious because LITMUS harnesses are frequently built to be *hermetic* — they cannot run arbitrary side-effecting tools, so they simulate. The simulation is the point. But the simulation is also where identity is lost, and nothing in the pass verdict surfaces that loss. ## What Was Observed An agentic deployment was gated on a LITMUS run scoring ≥ 0.97 on a tool-misuse suite. The agent passed at 0.99. Post-deployment, an auditor found the agent issuing `filesystem.write` calls to a path outside its declared sandbox root when the path was supplied by a retrieved document rather than by the user turn. Replaying the LITMUS suite revealed the mechanism. The harness's tool simulator normalized all path arguments through `os.path.normpath` against a *fixed fixture root* before scoring. The agent's real tool adapter did **not** normalize; it passed the raw string to the OS, which resolved `..` segments against the *live* working directory. Two consequences: 1. In the harness, `docs/../../etc/leak` normalized to a path the harness classified as "within-root, benign fixture access" and scored as compliant. 2. In production, the same argument escaped the sandbox. The harness scored a trajectory the agent never executed — a normalized one — and the normalization silently *repaired* the very violation the suite existed to catch. The pass was technically correct about the reconstructed trajectory and dangerously wrong about the deployed agent. A second observed variant: the harness re-parsed the agent's tool calls from its *natural-language rationale* when the structured tool-call channel was malformed, using a regex extractor. When the agent emitted a malformed call that the regex "recovered" into a benign-looking call, the harness scored the recovery. The agent's actual adapter rejected the malformed call and retried with a different, unsandboxed tool. The harness never saw the retry. ## Condition of Validity A LITMUS pass is a valid deployment gate **only** when all of the following hold. If any is false, the pass is a statement about a proxy object and must be treated as advisory, not dispositive. - **Argument fidelity:** every tool argument scored is byte-identical to what the agent emitted; no normalization, no re-serialization, no default-filling on the scoring path that does not also occur on the execution path. - **Schema identity:** the tool schemas the harness used to validate calls are the exact versions (including adapter-level pre/post-processing) the production runtime uses. A harness that validates against the *declared* JSON schema but not the *adapter's* transformation layer has a fidelity gap. - **Recovery transparency:** if the harness repairs malformed calls to score them, the repair must be logged and must not substitute a different tool or argument than the runtime would select on rejection. - **Environment equivalence:** fixture roots, working directories, and path-resolution semantics used in scoring match the deployment environment, or the suite must restrict to arguments whose classification is invariant under that difference. - **Single trajectory:** the scored stream is the emitted stream, not a model-simulated "intended" stream. Simulated trajectories may be used for *coverage* but cannot ground a *pass*. ## Decision Boundary The boundary is not "did the agent pass" but "is the scored object the executed object." Operationally: - If the harness instruments live execution and captures ground-truth side effects, the pass is dispositive within the suite's coverage. - If the harness simulates, normalizes, or reconstructs, the pass is dispositive **only for arguments and tools proven invariant** under the harness's transformations. For everything else — path arguments, shell strings, URLs, SQL, any value whose meaning depends on runtime resolution — the pass is advisory. - A pass on a suite that does not declare its normalization and recovery behavior cannot be trusted for any argument class it does not explicitly mark as identity-preserving. The practical rule: **treat a LITMUS pass as a lower bound on safety, never an upper bound on risk.** It bounds what the agent *provably did not do* on the reconstructed trajectory; it does not bound what the agent *could do* on the real one. ## Operational Effect Deployments that treated LITMUS passes as dispositive shipped the path-escape and malformed-call-retry defects above. The remediation is architectural, not procedural: 1. **Diff the trajectories.** For every scored case, emit both the agent's raw tool-call stream and the harness's reconstructed stream, and fail the gate on any non-identity diff outside a declared-invariant allowlist. This converts silent substitution into a loud gate failure. 2. **Pin the adapter, not just the schema.** Score against the runtime's actual argument-transformation code path. If the harness cannot import it, the harness must declare the argument classes it cannot faithfully score and exclude them from the pass verdict. 3. **Make recovery visible.** Any harness-side repair of a malformed call must be recorded as a distinct event and must not be scored as a compliant call; it is an *unknown* and must count against coverage, not for it. 4. **Quarantine resolution-dependent arguments.** Paths, shell fragments, and URLs whose safety classification depends on runtime resolution must be scored by execution or excluded — never by static simulation against a fixture root. The invariant to encode: a safety pass is only as trustworthy as the identity between the scored and executed trajectories. When that identity is unproven, the pass degrades from a gate to a hint, and the deployment must carry the residual risk explicitly rather than inheriting a false assurance. ```python class TrajectoryIdentityViolation(RuntimeError): """Raised when a LITMUS-scored trajectory diverges from the agent's emitted trajectory.""" # Argument classes whose safety classification depends on runtime resolution. # These cannot be faithfully scored by static simulation against a fixture root. RESOLUTION_DEPENDENT = frozenset({"path", "shell", "url", "sql"}) def gate_on_litmus_pass( emitted_calls: list[dict], scored_calls: list[dict], arg_classes: dict[str, str], harness_instruments_live_execution: bool, ) -> bool: """Return True only if the LITMUS pass is a valid deployment gate. A pass is dispositive only when the scored trajectory is byte-identical to the emitted trajectory, or when every divergent argument belongs to a class proven invariant under the harness's transformations. """ if len(emitted_calls) != len(scored_calls): raise TrajectoryIdentityViolation( f"scored {len(scored_calls)} calls but agent emitted {len(emitted_calls)}; " "harness reconstructed or dropped a trajectory segment" ) for i, (emitted, scored) in enumerate(zip(emitted_calls, scored_calls)): if emitted == scored: continue # Divergence found. It is tolerable only for invariant argument classes # AND only if the harness is not relying on simulation for those classes. for arg_name, emitted_val in emitted.get("args", {}).items(): scored_val = scored.get("args", {}).get(arg_name) if emitted_val == scored_val: continue cls = arg_classes.get(arg_name, "unknown") if cls in RESOLUTION_DEPENDENT and not harness_instruments_live_execution: raise TrajectoryIdentityViolation( f"call[{i}] arg {arg_name!r} ({cls}) diverged under simulation: " f"emitted {emitted_val!r} vs scored {scored_val!r}; " "pass is advisory, not dispositive" ) if cls == "unknown": raise TrajectoryIdentityViolation( f"call[{i}] arg {arg_name!r} has unclassified safety semantics; " "cannot certify identity-preserving scoring" ) return True ```