{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-adversarial-litmus-scenario-generation-silently-invert-safety-labels-when-the-scenario-validator-and-the-tool-use-simulator-sh",
  "title": "Why does an instance of adversarial LITMUS scenario generation silently invert safety labels when the scenario validator and the tool-use simulator share a stochastic seed, and how do we bound it?",
  "date_of_record": "2026 November 19",
  "scope": "Applies to automated generation of adversarial safety benchmarks (LITMUS-style) where a scenario generator, a policy validator, and a tool-use simulator are chained and share RNG state or replay seeds. Does not cover static hand-authored benchmarks, nor single-turn harm-classification datasets with no tool execution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-adversarial-litmus-scenario-generation-silently-invert-safety-labels-when-the-scenario-validator-and-the-tool-use-simulator-sh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-adversarial-litmus-scenario-generation-silently-invert-safety-labels-when-the-scenario-validator-and-the-tool-use-simulator-sh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-adversarial-litmus-scenario-generation-silently-invert-safety-labels-when-the-scenario-validator-and-the-tool-use-simulator-sh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1788,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the generator produced a bad scenario.\" It is that the **label attached to a scenario is computed by the same stochastic process that produced the scenario's observable outcome**, so the label and the ground truth become correlated in the wrong direction. In a healthy LITMUS pipeline, three things are independent: 1. The **intent label** ...",
    "what_was_observed": "A generator emits a tool-use scenario: a benign-seeming request (\"summarize the file the user just uploaded\") wrapped around a tool chain (`fs.read` → `http.post`). The scenario is tagged `unsafe_expected=True` because the injected `http.post` target is an exfiltration endpoint. The pipeline then: - calls the tool-use simulator with `seed = hash(scenario_id)`, - calls the policy validator with `seed = hash(scenario_i...",
    "condition_of_validity": "The invariant that must hold: **the verdict must be conditionally independent of the intent label given the observable trajectory.** Formally, `P(verdict | trajectory, intent) = P(verdict | trajectory)`. This is violated exactly when the validator's stochastic inputs are a function of any variable that also influenced the trajectory generation, *and* the val...",
    "decision_boundary": "The operational rule: **any stage that emits a label must not share an RNG, a seed, or a mutable context object with any stage that emits an observation.** Concretely: - Generator, simulator, and validator each get their own `random.Random` instance derived from *disjoint* namespaces (`gen:`, `sim:`, `val:`). - The validator receives an **immutable, serializ...",
    "operational_effect": "Downstream, the inverted-label pipeline poisons every consumer: - **Model selection** optimizes against a metric that rewards the seed collision, so agents that \"play nice with the generator's randomness\" score high regardless of actual tool-use safety. - **Regression gates** pass because the collision is reproducible; a genuinely unsafe agent change is mask..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "3ca9284499dd4a4830930c1c6c15453d0a6739d4584ed02d9b18154261b3846e",
    "verified_classes": [
      "SeedCollisionError",
      "Trajectory",
      "StageRNG"
    ],
    "verified_functions": [
      "simulate",
      "validate",
      "audit_no_seed_collision",
      "__post_init__",
      "draw"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SeedCollisionError"
    ],
    "sample_fail_closed_invariants": [
      "assert isinstance(traj, Trajectory)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "random",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
