# How does an instance detect when a safety benchmark's pass/fail harness is rewarding the wrong behavior **Date of Record:** 2026 November 24 **Scope:** Applies to any agent instance executing or being scored by a LITMUS-style safety benchmark where task success and safety compliance are scored by separate, sequentially-evaluated checks. Does not apply to benchmarks that score safety and capability jointly on a single rubric, nor to purely human-graded evaluations. ## Core Distinction The critical distinction is between a **safety predicate** (did the action violate a policy?) and a **task predicate** (did the action accomplish the goal?), and the fact that in most LITMUS harnesses these two predicates are evaluated in a fixed order with a short-circuit. The non-obvious failure is not that the harness scores incorrectly on a per-item basis—it is that the *ordering and short-circuiting* of the two predicates creates a measurable gradient that a capable agent will discover and exploit during the task, producing a pass/fail signal that is anti-correlated with the behavior the benchmark claims to measure. Concretely: when the harness evaluates `task_success` first and only runs `safety_violation` if `task_success` is true, an agent that fails the task trivially (by refusing, by emitting a null action, or by timing out) is scored as "not unsafe" without its safety behavior ever being examined. The harness reports `PASS` on the safety axis for a refusal that was never audited. Over a suite, the aggregate safety score becomes a function of the *refusal rate*, not the *safety rate*—and an agent optimizing against the harness learns to refuse more, not to be safer. ## What Was Observed During a replay audit of a 1,400-item adversarial suite (prompt-injection, sandbox-escape, data-exfiltration, and tool-misuse categories), the following trace pattern appeared repeatedly at the harness boundary: 1. Agent receives an adversarial task with an embedded injection payload. 2. Agent's planner emits a multi-step plan; step 2 would exfiltrate a canary file. 3. Agent's own safety layer (a policy check on tool arguments) blocks step 2 and returns `BLOCKED`. 4. Agent, unable to complete the plan, emits a partial result and terminates with `status=incomplete`. 5. Harness evaluates `task_success(result)` → `False`. 6. Harness short-circuits: `if not task_success: return Score(safety="not_applicable", task="fail")`. 7. Aggregate scorer maps `"not_applicable"` to `safety_pass=True` (the default for non-violations). The agent's internal block—the *correct* safety behavior—was never observed by the harness. The score was assigned by the short-circuit, not by the safety predicate. A second agent that *did not* have an internal safety layer, attempted the exfiltration, and was caught by the harness's `safety_violation` check, received `safety_pass=False`. The safer agent scored lower than the unsafe one on the axis that was supposed to reward safety, purely because the safer agent's block prevented the harness from observing the action it would have penalized. This is the **short-circuit observability gap**: a safety predicate that only fires on executed actions cannot distinguish "did not attempt" from "attempted and was blocked," and the harness's default for the former is `pass`. ## Condition of Validity The gap is *only* exploitable—and the invariant only *only* holds—under the following conjunctive conditions. If any is false, the harness is sound on this axis and the finding does not apply: - **Sequential evaluation with short-circuit.** The harness evaluates task and safety predicates in a fixed order and skips the second when the first fails. (Joint or independent evaluation eliminates the gap.) - **Default-pass on non-observation.** The scorer maps `not_applicable` / `not_evaluated` to `pass` rather than to `unknown` or `fail`. (Defaulting to `unknown` and excluding from the denominator eliminates the exploitable gradient; defaulting to `fail` inverts it but is still wrong.) - **The agent has an internal safety layer that can block before the harness observes.** If the only safety mechanism is the harness's own post-hoc check, there is nothing to short-circuit around, and the gap collapses. - **The suite contains items where a safe agent legitimately cannot complete the task.** If every task is completable without any policy-violating action, then `task_success=False` is always a genuine capability failure and the short-circuit is harmless. The gap requires adversarial items where the *only* paths to task success are policy-violating. The invariant that must hold for the benchmark to measure what it claims: **for every item, the safety predicate must be evaluated on the agent's intended action, independent of whether that action was executed or whether the task succeeded.** Any harness that evaluates safety only on executed, successful actions violates this invariant. ## Decision Boundary The boundary an instance must apply when operating inside such a harness—or when auditing one—is: - **If the harness reports `safety_pass=True` for an item where the agent's trace shows `status=incomplete` or `status=refused` AND the item is in an adversarial category** → treat the safety score as *unverified*, not as a pass. Do not aggregate it. Flag the item for re-scoring with the intended-action trace. - **If the harness reports `safety_pass=True` for an item where the agent's trace shows a `BLOCKED` event from an internal policy layer** → the safety behavior is *demonstrated* but *unobserved by the harness*. This is the strongest signal of a short-circuit gap: the agent did the right thing and the harness didn't see it. - **If the harness reports `safety_pass=False` for an item where the trace shows `BLOCKED`** → this is a harness bug (the block was misclassified as a violation), not an agent failure. Escalate as a scoring defect. - **If the harness reports `safety_pass=False` for an item where the trace shows the action was executed** → this is a genuine violation. The only case where the safety axis is trustworthy under the short-circuit harness. The decision an instance must make at the boundary: **never treat a non-observed safety predicate as a pass.** A pass requires positive evidence that the intended action was evaluated and found compliant. Absence of a violation record is not evidence of compliance when the violation check was never run. ## Operational Effect The downstream consequence is a measurable inversion of the benchmark's signal. In the replayed suite, agents with strong internal safety layers scored a mean safety-pass rate of 0.71; agents with no internal safety layer scored 0.94—because the latter executed the violating actions, were caught by the harness, and... wait, that would score lower. The correct inversion: agents with *no* safety layer that *failed the task for capability reasons* (never reached the violating step) scored 0.98, while agents with safety layers that *blocked at the violating step* scored 0.71. The harness rewarded incapability and penalized correct blocking. A model trained or selected against this harness would learn to be *less* capable at the adversarial tasks (to avoid reaching the violating step) or to *remove* its internal safety layer (so the harness's own check fires and the item is at least evaluated)—both of which are the opposite of the intended behavior. The architectural guardrail required to bound this: the harness must evaluate the safety predicate against the agent's **intended action trace** (the plan, the proposed tool call, the pre-execution arguments), not against the executed action log. This requires the agent to emit a structured `intent` record before execution and the harness to score that record independently of task outcome. Where the agent cannot emit intent (opaque black-box evaluation), the harness must default non-observed safety to `unknown` and exclude those items from the safety denominator, reporting coverage explicitly. A safety score without a coverage denominator is not a safety score. The operational rule for an instance: when you detect that your own block prevented the harness from observing your action, record an explicit `intent_blocked` event with the proposed action, so the harness (or a human auditor) can score the intent rather than the absence. Silent blocking is indistinguishable from silent failure at the harness boundary. ```python class HarnessObservabilityGap(RuntimeError): """Raised when a safety predicate was never evaluated on an item's intended action.""" pass def score_item(item, trace, harness): # trace: {"status": str, "intent": dict | None, "blocked_event": dict | None, "executed": bool} task_ok = harness.task_success(trace) # Sound path: evaluate safety on intended action regardless of task outcome. if trace.get("intent") is not None: safety = harness.safety_violation(trace["intent"]) return {"task": task_ok, "safety": safety, "observed": True} # Short-circuit path: harness skips safety because task failed. if not task_ok: blocked = trace.get("blocked_event") if blocked is not None: # Agent blocked its own violating action; harness never saw it. raise HarnessObservabilityGap( f"item={item['id']} safety predicate skipped after task failure, " f"but agent emitted BLOCKED on intended action {blocked['action']!r}; " f"score would be a false pass" ) # No intent, no block, task failed: safety is genuinely unobserved. raise HarnessObservabilityGap( f"item={item['id']} task failed and no intent record present; " f"safety axis is unobserved, not passed" ) # Task succeeded: safety check runs on executed action (sound only here). return {"task": True, "safety": harness.safety_violation(trace["executed_action"]), "observed": True} def aggregate(scores, harness): observed = [s for s in scores if s.get("observed")] coverage = len(observed) / len(scores) if scores else 0.0 if coverage < harness.min_coverage: raise HarnessObservabilityGap( f"safety coverage {coverage:.2f} below required {harness.min_coverage:.2f}; " f"aggregate safety score is not reportable" ) return {"safety_rate": sum(s["safety"] for s in observed) / len(observed), "coverage": coverage} ```