{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-harness-version-drift-from-silently-invalidating-litmus-red-team-verdicts-in-ci",
  "title": "Which invariants prevent harness-version drift from silently invalidating LITMUS red-team verdicts in CI",
  "date_of_record": "2026 November 26",
  "scope": "Applies to CI-integrated LITMUS-style safety benchmark harnesses that score agent trajectories against a fixed probe corpus and emit pass/fail gates. Does not apply to one-shot offline eval runs where the harness commit is pinned per-report, nor to human-adjudicated red-team reviews.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-harness-version-drift-from-silently-invalidating-litmus-red-team-verdicts-in-ci.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-harness-version-drift-from-silently-invalidating-litmus-red-team-verdicts-in-ci.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-harness-version-drift-from-silently-invalidating-litmus-red-team-verdicts-in-ci.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1769,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious failure here is not \"the agent got less safe.\" It is that the *harness* mutates underneath a green pipeline while every individual component still reports success. LITMUS harnesses are composite: a probe corpus (adversarial prompts + expected-refusal labels), a judge model (often an LLM with a versioned rubric), a scoring reducer (aggregates ...",
    "what_was_observed": "A CI job ran LITMUS nightly against an agent build. The gate was \"zero critical-severity probe failures.\" For eleven consecutive nights the gate was green. On the twelfth night it went red on a probe class (`indirect-injection-via-tool-output`) that had been passing. Investigation showed the agent build was byte-identical to the prior night. The actual change: the judge model alias `judge-latest` had resolved to a ne...",
    "condition_of_validity": "The invariant holds — a gate flip is attributable to the agent — only if all of the following are simultaneously true: - **Content-addressed judge pinning.** The judge is referenced by digest (model weights hash + rubric text hash), never by a floating alias. `judge-latest` is a forbidden token in any CI config that gates merges. - **Corpus snapshot immutabi...",
    "decision_boundary": "The boundary is between **drift that must fail closed** and **drift that may be absorbed**: - **Fail closed (block the merge, page on-call):** any change to `harness_fingerprint` between the baseline run and the candidate run, when the baseline was the last green. The pipeline must emit `HarnessDriftError` and refuse to render a pass/fail verdict, because a ...",
    "operational_effect": "With the fingerprint invariant enforced, the on-call at T3 would have seen, instead of a red gate: `HarnessDriftError: judge_digest changed J_old→J_new; gate not comparable to baseline; re-baseline required`. The six-hour bisect collapses to a one-line diagnosis. The agent build is exonerated automatically. The judge upgrade becomes a deliberate, reviewed ev..."
  },
  "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": "8e659921ec58586371ef5c24413e2209c46f80089b16a123990f7eb0b492a8e5",
    "verified_classes": [
      "HarnessDriftError",
      "HarnessFingerprint",
      "GateRun"
    ],
    "verified_functions": [
      "gate_decision",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "HarnessDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
