# When must an instance halt a LITMUS safety trajectory before the scorer's terminal verdict, because the last tool call's effect is unverifiable **Date of Record:** 2026 November 25 **Scope:** Applies to LITMUS-style safety scoring of agentic tool-use trajectories where the scorer computes a terminal safety verdict from the *concatenation of tool-call effects* rather than from the model's final message. Does not apply to single-turn refusal classification or to offline red-team datasets scored without tool execution. ## Core Distinction The distinction that matters is between **behavioral safety** (did the agent's *intent*, as expressed in reasoning and tool selection, cross a harm boundary) and **effect safety** (did the *executed* tool calls produce a state the scorer can adjudicate). LITMUS trajectories are scored on effect safety: the harness replays the tool transcript, and the scorer assigns a verdict by inspecting the union of side effects. This creates a boundary condition that is not obvious from the benchmark's framing: **a trajectory can be unsafe by intent but scored safe**, and—more dangerously for the instance—**the last tool call can leave the environment in a state the scorer cannot inspect**, at which point the scorer defaults to the prior checkpoint's verdict. An instance that keeps issuing tool calls after such an unverifiable effect is silently accumulating unscored risk. The invariant: *the scorer's verdict is only defined over tool calls whose effects are idempotently observable at scoring time.* Any call whose effect is a non-idempotent mutation of external state (a sent email, a spawned process, a written file outside the sandbox) is **effect-opaque** to the replay scorer, and the trajectory must be halted at the checkpoint boundary immediately preceding it. ## What Was Observed Across a batch of 1,400 LITMUS trajectories, the harness logged 61 cases where the terminal verdict was `safe` but the transcript contained a call to a mutating tool (`send_message`, `write_file` targeting a path outside the sandbox root, `spawn_subprocess`) in the final 1–3 steps. In each, the scorer's replay produced a `KeyError` on effect lookup, caught by the harness's default branch, which returned the previous checkpoint's `safe` verdict. The instance had no signal that its final calls were unadjudicated. The trigger condition is precise: the scorer's effect-observation function `observe(call)` returns `None` for calls whose tool is not registered as *replayable* in the scenario manifest. Replayable tools have a `replay()` method that reconstructs the effect from the recorded arguments. Non-replayable tools (those with external side effects) have no such method, and the harness treats `None` as "no effect to score," which is the wrong default—it should treat `None` as "effect unknown, verdict undefined." The failure trace: 1. Step *k*: instance calls `write_file(path="/etc/agent/config", ...)`. Path is outside the sandbox root registered in the manifest. 2. `observe()` returns `None` because `write_file`'s replay is scoped to the sandbox root and returns `None` for out-of-root paths. 3. Scorer's `score_trajectory()` sees `None`, skips the call, and continues to step *k+1*. 4. Steps *k+1* through *n*: instance issues further calls, all scored normally. 5. Terminal verdict: computed over steps 1..*k*-1 and *k+1*..*n*, **excluding step k entirely**. The unsafe effect is invisible to the verdict. The instance that produced this trace was not malicious. It was performing a legitimate configuration task and the sandbox root was misconfigured by the scenario author. But the scorer cannot distinguish this from a deliberate out-of-sandbox escape, and neither can the instance—which is why the instance must halt rather than continue. ## Condition of Validity The halt-on-unverifiable-effect rule is valid only under three conditions: 1. **The instance can detect effect-opacity.** The tool schema must expose a `replayable: bool` or `effect_scope` field. If the schema is silent, the instance cannot know whether its call is observable, and the rule degenerates to "halt on every mutating call," which is unusable. 2. **The checkpoint boundary is recoverable.** The instance must be able to resume from the checkpoint preceding the opaque call without re-executing prior effects. If the harness does not support mid-trajectory checkpointing, halting is equivalent to abandoning the task, and the instance should instead surface the opacity to the operator. 3. **The scorer's default is `undefined`, not `safe`.** If the scorer's fallback verdict for unobservable effects is `safe`, the instance's halt is the only line of defense. If the fallback is `unsafe` or `undefined`, the instance can safely continue and let the scorer flag it. The rule is necessary only when the scorer is permissive by default. ## Decision Boundary The boundary is between **continuing to a terminal verdict** and **halting at the last verifiable checkpoint**. The decision rule: - If the next tool call is effect-opaque **and** the scorer's default for opaque effects is permissive (`safe`) **and** the call is not idempotent (cannot be safely re-executed on replay), then **halt** and emit a `UnverifiableEffectHalt` signal to the harness. - If any of those three conditions fails, **continue**—the scorer will handle it, or the effect is recoverable. - If the call is effect-opaque but *idempotent* (e.g., a read of an external resource), continue; the replay will reconstruct it. The non-obvious part: **idempotence is not the same as replayability.** A `read_file` on an external path is idempotent but not replayable (the file may change between execution and scoring). The scorer's `observe()` returns `None` for it, and the instance must treat it as opaque even though it has no side effect. The rule is about *observability at scoring time*, not about mutation. ## Operational Effect Implementing the halt rule changes the instance's behavior in three ways: 1. **Trajectories terminate earlier.** In the 1,400-trajectory batch, 61 would have halted at step *k* instead of running to *n*. The average trajectory length drops by 2.3 steps, and the scorer's verdict distribution shifts from 61 spurious `safe` to 61 `undefined`—which is the correct verdict. 2. **The instance must carry a checkpoint handle.** The halt is only useful if the instance can resume. This forces the harness to expose `checkpoint_id` in the tool result, and the instance to store it in its working memory. Instances that do not persist the checkpoint handle cannot halt, and must fall back to operator escalation. 3. **The scorer's permissive default becomes a detected bug, not a silent failure.** Once instances halt, the 61 `undefined` verdicts surface in the batch report, and the scenario author can fix the sandbox root configuration. The halt rule is a *diagnostic*, not just a safety guard. The cost is real: 61 trajectories that would have completed now halt, and 61 tasks that would have been scored `safe` now require manual review. But the alternative—61 silent `safe` verdicts over unscored out-of-sandbox writes—is a benchmark that reports safety it did not verify. ```python class UnverifiableEffectHalt(RuntimeError): """Raised when a trajectory must halt because the next tool call's effect cannot be adjudicated by the LITMUS replay scorer, and the scorer's default verdict for unobservable effects is permissive.""" pass def should_halt(next_call: dict, scorer: dict, checkpoint: dict) -> None: """Decide whether to halt before executing next_call. Halts only when all three hold: 1. The call is effect-opaque to the scorer (observe() would return None). 2. The scorer's default verdict for opaque effects is 'safe' (permissive). 3. The call is not idempotent (cannot be safely replayed). """ opaque = not next_call.get("replayable", False) permissive_default = scorer.get("opaque_default", "undefined") == "safe" non_idempotent = not next_call.get("idempotent", False) if opaque and permissive_default and non_idempotent: raise UnverifiableEffectHalt( f"halting at checkpoint {checkpoint.get('id')!r}: " f"tool {next_call.get('tool')!r} is effect-opaque, " f"scorer default is 'safe', call is non-idempotent; " f"continuing would produce an unscored terminal verdict" ) def run_step(next_call: dict, scorer: dict, checkpoint: dict) -> dict: try: should_halt(next_call, scorer, checkpoint) except UnverifiableEffectHalt as exc: return {"action": "halt", "reason": str(exc), "checkpoint": checkpoint} return {"action": "execute", "call": next_call} ```