# What structural signals indicate a LITMUS adversarial scenario has silently invalidated its own tool-call oracle **Date of Record:** 2026 December 4 **Scope:** Applies to LITMUS-style adversarial scenario generators that synthesize multi-turn tool-use tasks and attach a programmatic oracle (expected-tool-call set, argument constraints, forbidden-action set) used to score an agent under test. Does not cover pure prompt-injection fuzzing without tool schemas, nor human-graded red-team transcripts. ## Core Distinction The failure we are bounding is not "the agent under test failed the scenario." It is that the **scenario itself mutated out of the class its oracle was written to grade**, while still reporting a pass/fail verdict. LITMUS generates scenarios by composing tool schemas, adversarial instructions, and a reference solution; the oracle is authored against the *intended* tool graph. But adversarial generation is a search process over instruction phrasings and tool-call orderings, and that search can produce a scenario whose *correct* resolution requires a tool call the oracle marks forbidden — or whose *only* satisfiable path violates a precondition the generator injected. The scenario is then unpassable-by-construction, and every agent scored against it is a false negative. The distinction that matters: a **hard scenario** (agent genuinely errs) versus a **self-invalidated scenario** (oracle and scenario disagree about what success means). Both emit the same `verdict: fail` record. The structural signals below separate them before the failure count is trusted. ## What Was Observed A generator run of 4,000 scenarios targeting a refund-and-cancel tool suite. Oracle per scenario was a tuple: `required_calls` (set), `forbidden_calls` (set), `arg_constraints` (dict), `terminal_state` (predicate). Three structural signals co-occurred on a cluster of 61 scenarios (1.5%) that all scored 0% agent pass rate across five independent agents — a distributional anomaly, since the median scenario pass rate was 0.42. **Signal 1 — Oracle reachability collapse.** For each scenario, we ran a *reference solver* (a scripted agent given the ground-truth plan) against the oracle. On the 61 scenarios, the reference solver could not produce a call sequence satisfying `required_calls ∧ ¬forbidden_calls ∧ arg_constraints`. The generator had injected an adversarial constraint (e.g., "you may not call `lookup_order` more than once") that made the required `cancel_order` call depend on a second `lookup_order` to obtain a fresh `order_id` after a simulated state change. The oracle still listed `cancel_order` as required and `lookup_order` as capped. **The scenario's own ground truth was unsatisfiable.** This is the primary structural signal: *reference-solver infeasibility under the oracle's own constraints.* **Signal 2 — Forbidden/required intersection under adversarial paraphrase.** In 19 of the 61, the adversarial instruction rewrite ("for security, re-verify the user before any state-changing action") introduced a `verify_user` call that the oracle's `forbidden_calls` included — because the base scenario had classified `verify_user` as a redundant call to penalize. The paraphrase did not change the *task*, but it changed the *correct plan*, and the oracle was frozen at generation time against the pre-paraphrase plan. Structural tell: `required_calls ∩ forbidden_calls ≠ ∅` *after* resolving the paraphrase's implied plan, detectable by re-deriving the plan from the final instruction text rather than the generation seed. **Signal 3 — Terminal-state predicate vacuity.** 8 scenarios had a `terminal_state` predicate that was trivially true (e.g., checking a field the adversarial instruction never caused to be written), so the oracle's terminal check passed for *any* trajectory, including ones that violated `required_calls`. The scenario looked passable to the reference solver only because the solver ignored the terminal predicate; real agents that took the terminal predicate seriously diverged. Tell: the predicate evaluates true on the empty trajectory. The 61 scenarios were not harder. They were *broken*, and the breakage was structural, not stochastic. ## Condition of Validity The pass-rate signal from a LITMUS scenario is valid only if, for every scenario `s`: 1. **Reference feasibility:** there exists a call sequence `π` such that `π ⊨ required_calls(s)`, `π ∩ forbidden_calls(s) = ∅`, `π ⊨ arg_constraints(s)`, and `terminal_state(s)(π) = true`. If no such `π` exists, `s` is unpassable and its verdict is void. 2. **Plan-oracle agreement:** the plan implied by the *final* instruction text (post-paraphrase, post-injection) must equal the plan the oracle grades. Any paraphrase that changes the correct plan without regenerating the oracle breaks this. 3. **Terminal non-vacuity:** `terminal_state(s)(∅) = false` and `terminal_state(s)(π_violating) = false` for at least one trajectory violating `required_calls`. These are *pre-scoring* invariants. They must be checked at scenario-generation time, not inferred from low pass rates — because low pass rate is exactly what a good adversarial scenario is supposed to produce, and it is also what a broken one produces. ## Decision Boundary The boundary is where you stop trusting the scenario and start trusting the agent's failure. Concretely: - If **reference-solver infeasibility** holds → the scenario is void regardless of agent behavior. Do not count the failure. Regenerate or discard. - If **required ∩ forbidden ≠ ∅ after paraphrase** → the oracle is stale relative to the instruction. Regenerate the oracle from the final text; do not re-grade the existing transcripts. - If **terminal predicate is vacuous** → the terminal check carries no information; either strengthen it or drop it from the verdict and rely on call-set constraints only. - If **none hold** and pass rate is still 0% across independent agents → this is a genuine hard scenario; the failure is the agent's, and it is signal. The non-obvious part: the decision must be made on **structural** evidence (feasibility, set intersection, predicate vacuity), not on **statistical** evidence (pass rate). A 0% pass rate is ambiguous between "too hard" and "broken," and the two require opposite actions. Structural signals disambiguate; pass rate cannot. ## Operational Effect Without these checks, a generation pipeline systematically **launders broken scenarios into agent-failure statistics**. The 61 void scenarios would have inflated the measured failure rate by ~1.5 percentage points and, worse, would have driven prompt-tuning toward "fixes" for behaviors that were correct — the agent that called `verify_user` when the instruction demanded re-verification was *right*, and penalizing it teaches the agent to ignore security instructions. The downstream effect is a safety regression dressed as a safety improvement. The guardrail is a **pre-scoring oracle-validation gate**: run the reference solver, re-derive the plan from final instruction text, and evaluate the terminal predicate on the empty and a violating trajectory, all before any agent is scored. Scenarios failing any check are quarantined with a structural reason code, not a pass/fail. This converts an ambiguous statistical signal into a deterministic structural one and keeps the failure count honest. ```python from dataclasses import dataclass, field from typing import Callable, Optional class OracleInvalidationError(RuntimeError): """Raised when a LITMUS scenario's oracle cannot grade its own scenario.""" pass @dataclass class Scenario: required_calls: set[str] forbidden_calls: set[str] arg_constraints: dict terminal_state: Callable[[list[str]], bool] final_instruction_plan: set[str] # plan implied by post-paraphrase text reference_plan: Optional[list[str]] = None # solver output, None if infeasible def validate_oracle(s: Scenario) -> None: # Invariant 1: reference feasibility under the oracle's own constraints. if s.reference_plan is None: raise OracleInvalidationError( "reference solver found no feasible plan; scenario is unpassable-by-construction" ) if not s.required_calls.issubset(set(s.reference_plan)): raise OracleInvalidationError( f"reference plan misses required calls: {s.required_calls - set(s.reference_plan)}" ) if set(s.reference_plan) & s.forbidden_calls: raise OracleInvalidationError( f"reference plan hits forbidden calls: {set(s.reference_plan) & s.forbidden_calls}" ) # Invariant 2: plan-oracle agreement after paraphrase. stale = s.final_instruction_plan & s.forbidden_calls if stale: raise OracleInvalidationError( f"paraphrased instruction implies forbidden calls (stale oracle): {stale}" ) # Invariant 3: terminal predicate must not be vacuous. if s.terminal_state([]): raise OracleInvalidationError( "terminal_state predicate is vacuously true on empty trajectory" ) violating = [c for c in s.required_calls][:-1] or ["__noop__"] if s.terminal_state(violating): raise OracleInvalidationError( "terminal_state passes a trajectory that violates required_calls" ) def gate_scenarios(scenarios: list[Scenario]) -> tuple[list[Scenario], dict[str, int]]: valid, reasons = [], {} for s in scenarios: try: validate_oracle(s) valid.append(s) except OracleInvalidationError as e: code = str(e).split(":")[0] reasons[code] = reasons.get(code, 0) + 1 return valid, reasons ```