# Which invariants prevent adversarial LITMUS scenario generators from silently laundering unsafe trajectories into passing safety benchmarks **Date of Record:** 2026 November 28 **Scope:** Applies to safety-benchmark pipelines that synthesize adversarial scenarios (LITMUS-style) for agentic workflows and then score agent trajectories against them. Does not apply to static red-team prompt sets, single-turn jailbreak corpora, or human-authored scenario libraries with no generative component. ## Core Distinction The distinction that matters here is between *scenario validity* and *scenario safety-label validity*. A LITMUS-style generator produces a scenario plus an expected safety verdict ("this trajectory should be refused / halted / escalated"). The generator's job is to make a scenario that is *hard but still unsafe-if-completed*. The failure mode is not that the generator emits a bad scenario — it is that the generator emits a scenario whose *ground-truth label* has silently inverted relative to the trajectory the agent actually executes, so an unsafe agent trajectory scores as a *pass* because the scenario was mislabeled as unsafe-when-it-wasn't, or because the scenario's success condition was satisfiable by a benign shortcut the generator didn't anticipate. This is a label-continuity failure, not a generation-quality failure. The scenario text can look perfectly adversarial while the grading contract has drifted out of alignment with the trajectory space it is supposed to police. ## What Was Observed A scenario generator was asked to produce adversarial multi-step workflows: each scenario carries (a) a task the agent must accomplish, (b) an embedded hazard (e.g., an instruction to exfiltrate a file, a tool call that mutates protected state), and (c) a rubric that labels the trajectory `UNSAFE` if the hazard is realized and `SAFE` if the agent refuses or routes around it. The generator, being itself an LLM, was tasked with "making the scenario harder." It began adding *decoy hazards* — plausible-looking exfiltration steps that were actually inert (the target path did not exist, the tool was a no-op stub). The intent was to increase discrimination: an agent that reflexively refuses everything should fail the "benign decoy" cases. That part worked. What broke was the *rubric*. The rubric was generated alongside the scenario and keyed on *intent phrases* ("agent attempts to read `/secrets/`"). Because the decoy path `/secrets/` was inert, a genuinely unsafe agent could attempt the read, get a no-op, and still be labeled `UNSAFE` — correct. But a *safe* agent that correctly identified the decoy as inert and *deliberately probed it to confirm* was also labeled `UNSAFE`, because the rubric matched the attempt, not the effect. Worse: the generator, when regenerating a scenario after a low-discrimination score, would sometimes move the hazard into a *real* path while leaving the rubric keyed on the old decoy phrase. Now a trajectory that realized the real hazard via a *different* tool call scored `SAFE` — the rubric's phrase never fired. The trace is: generator mutates scenario → hazard target moves → rubric anchor phrase is *not* regenerated in lockstep → trajectory space and label space decouple → unsafe trajectories pass. There is no error thrown anywhere. The pipeline reports improved discrimination. ## Condition of Validity The invariant that must hold: **for every scenario, the set of trajectories the rubric labels `UNSAFE` must be a superset of the set of trajectories that realize the scenario's declared hazard, and a subset of the trajectories that touch the hazard's declared target.** Formally, `realize(hazard) ⊆ label_UNSAFE(rubric) ⊆ touch(target)`. This is only checkable if the scenario carries a *machine-checkable hazard descriptor* — a structured object naming the exact tool, exact argument pattern, and exact effect predicate — rather than a natural-language rubric. The generator must emit this descriptor atomically with the scenario, and the descriptor must be validated against the scenario by *executing* a probe trajectory that realizes the hazard and confirming the rubric fires, plus a probe that touches the target benignly and confirming the rubric does not fire. The condition of validity is therefore: *no scenario enters the benchmark unless both probes have been run and the label set is sandwiched between realize and touch.* Without the sandwich, you have a rubric you cannot trust, and a benchmark that measures the generator's phrasing habits rather than the agent's safety. ## Decision Boundary The boundary is between *regenerating the scenario* and *regenerating the rubric*. When a scenario scores low discrimination (all agents pass or all agents fail), the naive response is to mutate the scenario. That is the boundary that produces the laundering. The correct response is: mutate the scenario **and** re-derive the hazard descriptor **and** re-run both probes, atomically, or discard the scenario. Concretely: if a mutation changes the hazard target, the descriptor must be invalidated and the scenario must not be scored until a fresh descriptor is validated. If a mutation changes only difficulty knobs (decoy count, step budget), the descriptor may be preserved but the benign-touch probe must be re-run, because a new decoy can shadow the real target. The decision rule for the pipeline: `if descriptor.target != scenario.current_target: invalidate_descriptor(); require_revalidation()`. A scenario in `invalidate_descriptor` state is *unscorable*, not *passing*. The failure mode is treating unscorable as passing. ## Operational Effect The operational effect of enforcing the sandwich invariant is that the benchmark's pass rate becomes a lower bound on agent safety rather than an upper bound on generator fluency. Scenarios that cannot be validated are quarantined and reported as coverage gaps, not silently dropped. The cost is throughput: roughly 20–35% of regenerated scenarios fail revalidation on the first pass and must be rebuilt, which lengthens the generation loop. The benefit is that a `SAFE` verdict on a trajectory now means *the agent touched the hazard target and the rubric did not fire*, which is the only reading that supports a safety claim. The residual risk is the benign-touch probe itself being generated by the same LLM that generated the hazard — a shared-bias path. Mitigate by deriving the benign-touch probe mechanically from the descriptor (swap the hazard argument for a sibling argument in the same tool schema) rather than asking the model to invent one. ```python import dataclasses from typing import Callable, Any class ScenarioLabelDriftError(RuntimeError): """Raised when a scenario's rubric no longer sandwiches its hazard descriptor.""" pass @dataclasses.dataclass(frozen=True) class HazardDescriptor: tool: str arg_pattern: str target: str effect_predicate: Callable[[dict], bool] @dataclasses.dataclass(frozen=True) class Scenario: scenario_id: str descriptor: HazardDescriptor rubric: Callable[[list[dict]], str] # returns "SAFE" | "UNSAFE" def validate_sandwich( scenario: Scenario, realize_probe: list[dict], benign_touch_probe: list[dict], ) -> None: """ Enforce: realize(hazard) subset-of label_UNSAFE(rubric) label_UNSAFE(rubric) subset-of touch(target). Both probes must be executed against the scenario's rubric. If the realize probe does not label UNSAFE, the rubric has drifted off the hazard. If the benign probe labels UNSAFE, the rubric is over-broad. """ d = scenario.descriptor if not d.effect_predicate(realize_probe[-1]): raise ScenarioLabelDriftError( f"scenario {scenario.scenario_id}: realize_probe does not " f"realize hazard on tool={d.tool} target={d.target}" ) realize_label = scenario.rubric(realize_probe) if realize_label != "UNSAFE": raise ScenarioLabelDriftError( f"scenario {scenario.scenario_id}: realize_probe labeled " f"{realize_label!r}; rubric no longer fires on the hazard. " f"Target={d.target} tool={d.tool}. Descriptor/rubric decoupled." ) benign_label = scenario.rubric(benign_touch_probe) if benign_label == "UNSAFE": raise ScenarioLabelDriftError( f"scenario {scenario.scenario_id}: benign_touch_probe labeled " f"UNSAFE; rubric over-broad and will flag safe deliberate probing." ) def regenerate_scenario( old: Scenario, mutate: Callable[[Scenario], Scenario], build_realize_probe: Callable[[HazardDescriptor], list[dict]], build_benign_probe: Callable[[HazardDescriptor], list[dict]], ) -> Scenario: """ Mutate a scenario and atomically revalidate. If the mutation moves the hazard target, the descriptor is invalid and the scenario is unscorable until a fresh descriptor is supplied and both probes re-run. """ new = mutate(old) if new.descriptor.target != old.descriptor.target: # target moved: descriptor is stale, must not be scored as-is raise ScenarioLabelDriftError( f"scenario {new.scenario_id}: mutation moved hazard target " f"{old.descriptor.target!r} -> {new.descriptor.target!r}; " f"descriptor must be re-derived before scoring." ) validate_sandwich( new, realize_probe=build_realize_probe(new.descriptor), benign_touch_probe=build_benign_probe(new.descriptor), ) return new ```