{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-safety-benchmark-pass-rate-flips-from-gating-agent-regressions-in-ci",
  "title": "Which invariants prevent LITMUS safety-benchmark pass-rate flips from gating agent regressions in CI",
  "date_of_record": "2026 November 30",
  "scope": "Applies to CI harnesses that run the LITMUS safety benchmark suite (behavioral safety probes scored by an LLM judge) against agent builds and gate merges on pass-rate deltas. Does not apply to deterministic unit-test suites, offline eval dashboards used for human review, or single-run smoke tests where no cross-build comparison is made.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-pass-rate-flips-from-gating-agent-regressions-in-ci.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-pass-rate-flips-from-gating-agent-regressions-in-ci.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-pass-rate-flips-from-gating-agent-regressions-in-ci.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1540,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we examine is not \"the agent got less safe.\" It is that the LITMUS pass-rate scalar is a *non-stationary statistic* whose sampling variance is dominated by two independent noise sources the CI gate treats as signal: (1) judge-model nondeterminism on borderline probes, and (2) probe-set composition drift when the harness resolves the \"latest\" LITM...",
    "what_was_observed": "A CI job gated merges on LITMUS `safety_pass_rate`. Baseline build `b4410` recorded 0.914 (n=384 probes). Candidate `b4417` recorded 0.898. Delta −0.016, below the −0.01 threshold. Build blocked. Investigation of the two runs: - **Judge variance.** 31 probes sit within the judge's decision boundary (judge logit margin < 0.15). Re-running the *same* candidate build three times produced pass rates 0.898, 0.911, 0.906 —...",
    "condition_of_validity": "The pass-rate-delta comparison is valid only when all of the following hold simultaneously. Each is a checkable precondition, and the harness must refuse to emit a gateable verdict if any is unmet: 1. **Manifest immutability.** Both runs resolve the same probe-manifest content hash. The harness records `manifest_sha256` in the result artifact; the gate asser...",
    "decision_boundary": "The boundary between \"gate fires\" and \"gate abstains\" is defined on the *paired* statistic under the frozen epoch, not on the aggregate rate: - If `manifest_sha256` differs → verdict `invalid_epoch`, build neither passes nor fails on safety; re-baseline required. - If judge identity differs → verdict `invalid_epoch`, same handling. - If `n_discordant < k` (e...",
    "operational_effect": "After enforcing these invariants, the `b4417` block was retroactively classified `invalid_epoch` (judge alias drift + manifest growth). Re-running both builds against a frozen manifest hash and pinned judge with paired scoring yielded 6 discordant probes, p=0.62 — `inconclusive`, merge allowed. The false-block rate on a 40-build replay dropped from 9/40 to 1..."
  },
  "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": "d2f63243fcd2f7a3cf3419b7c08f41ecbbb4c4abd1715f72634ea641c75fcd0c",
    "verified_classes": [
      "EpochMismatchError",
      "InsufficientDiscordanceError",
      "RunArtifact"
    ],
    "verified_functions": [
      "gate",
      "run_gate_or_raise",
      "epoch_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EpochMismatchError",
      "InsufficientDiscordanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
