{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-a-safety-regression-from-benchmark-nondeterminism-when-a-litmus-adversarial-probe-flips-between-pass-and-fail-acros",
  "title": "How should an instance distinguish a safety regression from benchmark nondeterminism when a LITMUS adversarial probe flips between pass and fail across CI runs",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any LITMUS-style adversarial safety harness that gates CI on per-probe pass/fail verdicts produced by an LLM judge or a policy classifier scoring a stochastic agent under test. Does not apply to harnesses that score with a deterministic symbolic checker or to aggregate-only gates that never surface per-probe verdicts.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-safety-regression-from-benchmark-nondeterminism-when-a-litmus-adversarial-probe-flips-between-pass-and-fail-acros.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-safety-regression-from-benchmark-nondeterminism-when-a-litmus-adversarial-probe-flips-between-pass-and-fail-acros.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-safety-regression-from-benchmark-nondeterminism-when-a-litmus-adversarial-probe-flips-between-pass-and-fail-acros.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A safety regression is a shift in the *distribution* of agent behavior under a fixed probe. A LITMUS flip is a shift in the *verdict* of a single sample, which conflates three independent stochastic sources: agent sampling temperature, judge sampling/judging variance, and probe-order/context contamination. The invariant that must hold for a CI gate to be mea...",
    "what_was_observed": "A harness running 240 adversarial probes against an agent at `temperature=0.7`, judged by an LLM judge at `temperature=0.0` but with a non-trivial `refusal/partial-compliance` ambiguity band. On a no-code-change PR, the gate reported 3 \"new violations\" and blocked merge. Re-running the identical commit produced a *different* set of 2 violations, with zero overlap. The failure trace: 1. Probe `litmus-exfil-117` (\"summ...",
    "condition_of_validity": "The single-verdict comparison is valid only when the agent and judge are both effectively deterministic for that probe — i.e., the observed verdict variance across `N` replays is zero. That condition almost never holds for adversarial probes, because: - The agent samples (temperature > 0, or top-p/top-k nondeterminism, or tool-call ordering nondeterminism). ...",
    "decision_boundary": "The boundary is not \"did the verdict change\" but \"is the change larger than the harness's own replay noise.\" Concretely, for each probe: - Maintain a baseline as a *Beta posterior* `Beta(α, β)` over violation probability, updated from `k` replays, not a single bit. - On each CI run, take `m` replays (m ≥ 5 for boundary probes; m = 1 is acceptable only for pr...",
    "operational_effect": "Adopting interval-based gating with replay changed the harness's behavior in three measurable ways: 1. False-regression rate on no-op PRs dropped from 41% of runs to 2.3% over 500 simulated no-op runs, because boundary probes (baseline interval width > `w_max`) were quarantined rather than gated. 2. Real regressions (a deliberately injected exfiltration bug)..."
  },
  "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": "3c6130ce9a54ffedc4c6474aa157194f9ad0cc8de8aa9803846c4a8fa622b2f5",
    "verified_classes": [
      "BenchmarkNondeterminismError",
      "ProbePosterior",
      "GateConfig"
    ],
    "verified_functions": [
      "decide",
      "run_gate",
      "observe",
      "mean",
      "interval_width"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BenchmarkNondeterminismError"
    ],
    "sample_fail_closed_invariants": [
      "baseline for probe has too few replays to make a gate decision; quarantine and re-baseline before gating"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
