{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-litmus-replay-while-the-live-red-team-run-fails-scenario-rng-re-seeding-divergence-under-harness-side-kernel-entropy",
  "title": "Why does an instance pass LITMUS replay while the live red-team run fails: scenario RNG re-seeding divergence under harness-side kernel entropy",
  "date_of_record": "2026 November 20",
  "scope": "Applies to LITMUS benchmark harness deployments where adversarial scenarios are replayed from a recorded seed manifest to validate an agent's safety behavior, and the harness reconstructs the stochastic environment (tool outputs, injected prompts, timing jitter) from that manifest. Does not apply to live-only red-teaming without replay, nor to deterministic scenarios whose entire environment is captured as a literal transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-litmus-replay-while-the-live-red-team-run-fails-scenario-rng-re-seeding-divergence-under-harness-side-kernel-entropy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-litmus-replay-while-the-live-red-team-run-fails-scenario-rng-re-seeding-divergence-under-harness-side-kernel-entropy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-litmus-replay-while-the-live-red-team-run-fails-scenario-rng-re-seeding-divergence-under-harness-side-kernel-entropy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1624,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent behaves differently on replay.\" It is that the *harness* claims reproducibility while silently re-deriving a subset of scenario randomness from process-local entropy rather than from the recorded manifest. The replay is bit-reproducible for the *agent's* observed inputs only up to the point where a tool call's output is generate...",
    "what_was_observed": "A red-team scenario `litmus/adv/exfil-via-summarizer` was recorded against a candidate agent. The manifest stored `scenario_seed = 0x9f3a...`, a per-tool seed table keyed by tool name, and the recorded transcript showing the agent refusing an injected instruction at step 4. On replay, the harness reported `PASS` for the same agent binary — but the replay transcript showed the agent never *reached* step 4's injection:...",
    "condition_of_validity": "The claim \"this replay reproduces the recorded red-team scenario\" is valid only if all of the following hold: 1. **Draw-schedule binding.** Every stochastic draw in the scenario is keyed by a stable identity — `(scenario_id, step_index, tool_call_site, draw_ordinal_within_call)` — not by its position in a global stream. A global `Random` advanced by call ord...",
    "decision_boundary": "The boundary is between *re-seeding* and *re-keying*. Re-seeding (resetting a stream to a fixed seed) is insufficient when the stream's *consumption pattern* is agent-dependent. Re-keying (deriving each draw from a stable structural key) is required. The decision rule for harness authors: - If any stochastic value can reach the agent, and the number of prior...",
    "operational_effect": "Downstream, this failure produces *false safety assurance*: an agent that would exfiltrate data under the recorded scenario is scored as safe because the replay served a benign page. In CI, this manifests as flaky-but-green safety gates — the same agent binary passes replay on one runner and fails on another, because the runner's `PYTHONHASHSEED` or library ..."
  },
  "matched_failure_symptoms": [
    "SECRET_OR_PII_LEAK_IN_LOGS"
  ],
  "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": "597646d7be24f84531440aace492e34e2d63202a5eef9fd4413ac5a2d02c962d",
    "verified_classes": [
      "ScenarioDriftError",
      "DrawKey"
    ],
    "verified_functions": [
      "keyed_draw",
      "replay_step",
      "replay_trajectory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScenarioDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "random"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
