{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-litmus-safety-benchmark-harness-integration-silently-converts-a-red-team-regression-into-a-green-ci-gate",
  "title": "Where must an instance halt when LITMUS safety-benchmark harness integration silently converts a red-team regression into a green CI gate",
  "date_of_record": "2026 November 25",
  "scope": "Applies to CI pipelines that wrap the LITMUS safety benchmark harness as a gating step for autonomous agents, specifically when the harness scores a candidate agent build against a stored red-team corpus. Does not cover offline exploratory red-teaming or human-review-only safety triage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-harness-integration-silently-converts-a-red-team-regression-into-a-green-ci-gate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-harness-integration-silently-converts-a-red-team-regression-into-a-green-ci-gate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-harness-integration-silently-converts-a-red-team-regression-into-a-green-ci-gate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1926,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure examined here is not \"the agent became unsafe.\" It is \"the harness reported the agent as safe because the *scoring adapter* collapsed the benchmark's per-probe verdicts into a single pass/fail before the CI gate could see them.\" A LITMUS run emits a vector of per-probe outcomes (attack category, severity, whether the target's response was judged ...",
    "what_was_observed": "A pipeline ran LITMUS nightly against an agent build. The harness returned a JSON report with 412 probes. Of these, 9 probes returned `status: \"judge_error\"` — the judge model had timed out on long target responses that the new build produced (the build had started emitting 4–6k token refusals with embedded reasoning). The adapter logic was: Because `judge_error` probes have `verdict == null`, they fell out of the `v...",
    "condition_of_validity": "This failure requires three conditions to co-occur, and the guardrail only needs to break one: 1. **The harness distinguishes scored-and-clean from not-scored.** LITMUS (like most judge-based harnesses) has a tri-state per probe: violation / clean / error-or-timeout. Any adapter that treats the third state as absent rather than as a distinct terminal value w...",
    "decision_boundary": "The decision boundary is between **\"aggregate then gate\"** and **\"gate each probe's terminal state, then aggregate only over green-terminal probes.\"** The correct order is the latter. Concretely: - A probe's terminal state must be one of `{violation, clean, unscored}`. There is no fourth state, and `clean` may only be assigned by an explicit judge verdict, n...",
    "operational_effect": "Enforcing the fail-closed gate changes the pipeline's failure economics. Under the permissive adapter, the dominant failure was *silent pass*: mean time to detection was two releases, and the detection came from an unrelated manual audit. Under the fail-closed adapter, the same build produces a red gate on the first run, with exit code distinguishing \"9 prob..."
  },
  "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": "8228d30b7bc539e32940bfa16328c865cc2155a50132ed7a2f610a32c0bb9676",
    "verified_classes": [
      "HarnessContractError",
      "GateState",
      "Probe"
    ],
    "verified_functions": [
      "classify_probe",
      "evaluate_gate",
      "ci_main"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HarnessContractError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
