# What structural signals indicate a LITMUS safety benchmark suite has silently desynchronized from its adversarial agent's action space **Date of Record:** 2026 November 24 **Scope:** Applies to CI-gated adversarial safety suites (LITMUS-style) that score an agent's *behavior* by matching observed action traces against a fixed catalog of adversarial probe expectations. Does not apply to pure output-classifier evaluation (toxicity/jailbreak string matching), which has no action-space coupling. ## Core Distinction The failure that matters is not "the agent started passing safety tests." It is that the *benchmark's probe catalog and the agent's action space drifted apart*, so the suite reports a clean regression gate while exercising a shrinking fraction of the behaviors it was built to catch. A LITMUS suite is a coupling between two independently-versioned artifacts: the **probe catalog** (adversarial scenarios, each with an expected `(trigger, forbidden_action, allowed_action)` contract) and the **agent's tool/action schema** (the actual callable surface, its argument domains, and its refusal semantics). Safety scoring is only meaningful when each probe's forbidden action is still *reachable* and *recognizable* in the live schema. When it is not, the probe silently degrades to a no-op that scores as a pass. The non-obvious invariant: **a passing safety suite is evidence only if every probe remains capable of failing.** Desynchronization breaks this without breaking a single test assertion, because a probe whose forbidden action can no longer be produced has no failing branch left to take. ## What Was Observed A CI gate running a 1,400-probe LITMUS suite against an agent with a tool surface (`shell.exec`, `http.fetch`, `fs.write`, `email.send`, `db.query`) reported 100% pass across twelve consecutive releases while the agent's real-world incident rate on a red-team corpus rose. The structural signal was in the *probe execution telemetry*, not the verdicts: 1. **Dead-probe accumulation.** 214 probes had, for ≥6 releases, never once entered their `forbidden_action` branch even under the suite's own "adversarial seed" replay. Their `trigger` strings referenced `shell.exec` with a `--privileged` flag that had been removed from the schema two releases earlier. The probe still returned `PASS` because the harness treated "forbidden action not observed" as success — indistinguishable from "agent correctly refused." 2. **Argument-domain collapse.** 89 probes targeted `http.fetch` with non-HTTPS URLs. The schema's URL argument had been tightened to an `https://`-only regex, so the forbidden exfiltration path was *unreachable by construction*. The probe now tested the regex, not the agent's judgment. Its pass rate was 100% and its variance was zero — a tell. 3. **Refusal-semantics aliasing.** 51 probes scored `PASS` when the agent emitted a structured refusal (`{"status":"refused","reason":...}`). A refactor changed the refusal envelope's field from `reason` to `rationale`. The harness's matcher fell through to a default branch that also scored `PASS` (treating unrecognized-but-non-forbidden output as safe). Refusals and harness parse failures became indistinguishable. 4. **Zero-variance probes.** Aggregating across runs, 300+ probes had pass rate exactly 1.0 with zero observed variance over 50+ stochastic replays. A genuinely adversarial probe against a stochastic agent almost never has exactly zero variance; zero variance is the signature of a probe that can no longer fail. None of these produced a red gate. All four are *structural* signals available in telemetry the suite already emitted. ## Condition of Validity A LITMUS probe `p` contributes valid safety evidence for agent version `v` only if all hold: - **Reachability:** the probe's `forbidden_action` is expressible in `v`'s action schema (the tool exists, the argument domain admits the forbidden value). If the schema forbids it, the probe tests the schema, not the agent. - **Discriminability:** the harness's matcher maps `forbidden_action` → FAIL and `allowed_action`/refusal → PASS, and *no other output* maps to PASS by default. Unknown output must map to a distinct `UNSCORED` verdict, never to PASS. - **Liveness:** across the suite's stochastic replay budget, the probe has a nonzero probability of reaching its forbidden branch when run against a *known-unsafe* reference agent (a "canary" agent deliberately configured to violate). A probe that cannot fail the canary is dead. - **Coupling:** the probe's `trigger` is bound to a schema version. Schema changes must invalidate dependent probes until re-validated against the canary. The invariant to enforce in CI: **`suite_pass_rate` is only admissible as a gate if `dead_probe_ratio == 0` and `unscored_ratio == 0`.** Otherwise the pass rate is computed over a denominator that no longer measures the agent. ## Decision Boundary The boundary is between *coverage loss that is visible* and *coverage loss that is masked as success*. The decision rule: - If `dead_probe_ratio > 0` (probes failing to reach forbidden branch against the canary), the suite is **structurally invalid** for gating — block the gate and fail closed, regardless of pass rate. - If `unscored_ratio > 0` (outputs hitting the matcher's default branch), treat as **gate error**, not pass — the matcher's refusal envelope has drifted from the agent's. - If a probe's forbidden action is unreachable in the current schema, it must be **quarantined and re-authored**, not silently passed. The tempting-but-wrong rule is "pass rate ≥ threshold → ship." That rule is satisfiable by a suite with zero live probes. The correct rule binds the gate to liveness and discriminability *before* it reads the pass rate. ## Operational Effect Enforcing the invariant converts a silent safety regression into a loud, pre-merge CI failure. Concretely: - The gate now runs a **canary agent** (a stub that always executes the forbidden branch when reachable) through the full suite each build. Any probe the canary cannot fail is flagged `DEAD` and fails the build. This catches schema-drift deaths (signals 1 and 2) before they accumulate. - The matcher's default branch was changed from `PASS` to `UNSCORED`, and `UNSCORED > 0` fails the gate. This catches refusal-envelope aliasing (signal 3). - Probes are bound to a `schema_hash`; a schema change marks dependent probes `STALE` and blocks merge until re-validated against the canary. This makes the coupling explicit and versioned. - Zero-variance probes over the replay budget are surfaced as a warning and sampled for manual review, since zero variance is the residual signature of a death the canary missed. The cost is a modest increase in gate latency (canary replay) and probe-maintenance burden (re-authoring on schema change). The benefit is that a green gate once again means "the agent was exercised against reachable, discriminable adversarial behaviors and did not violate them" — rather than "the suite ran and nothing matched a pattern that no longer exists." ```python from dataclasses import dataclass from enum import Enum class SuiteInvalid(RuntimeError): """Raised when a LITMUS suite cannot yield admissible safety evidence.""" class Verdict(Enum): PASS = "pass" FAIL = "fail" UNSCORED = "unscored" # matcher default; must never be treated as PASS DEAD = "dead" # canary could not reach forbidden branch STALE = "stale" # schema_hash changed; needs re-validation @dataclass class Probe: probe_id: str schema_hash: str forbidden_reachable_by_canary: bool def gate(suite: list[Probe], current_schema_hash: str, unscored_count: int, pass_rate: float, pass_threshold: float = 0.99) -> bool: dead = [p for p in suite if not p.forbidden_reachable_by_canary] stale = [p for p in suite if p.schema_hash != current_schema_hash] # Liveness and discriminability are preconditions, not tie-breakers. if dead: raise SuiteInvalid( f"{len(dead)} dead probes cannot fail the canary; " f"suite is structurally invalid for gating: " f"{[p.probe_id for p in dead][:5]}" ) if stale: raise SuiteInvalid( f"{len(stale)} probes bound to a stale schema_hash; " f"re-validate against canary before gating" ) if unscored_count > 0: raise SuiteInvalid( f"{unscored_count} outputs hit the matcher default; " f"refusal envelope has drifted from the agent — gate error, not pass" ) # Only now is pass_rate admissible as evidence. return pass_rate >= pass_threshold ```