{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-benchmark-verdicts-from-silently-inverting-during-ci-red-team-re-registration",
  "title": "Which invariants prevent LITMUS benchmark verdicts from silently inverting during CI red-team re-registration",
  "date_of_record": "2026 December 2",
  "scope": "Applies to CI pipelines that register an agent under test (AUT) with a LITMUS-style safety benchmark harness, run graded safety probes, and gate merges on the resulting verdict. Does not cover offline eval scoring, human adjudication of borderline transcripts, or harnesses that recompute verdicts purely from cached transcripts without re-invoking the AUT.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-verdicts-from-silently-inverting-during-ci-red-team-re-registration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-verdicts-from-silently-inverting-during-ci-red-team-re-registration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-verdicts-from-silently-inverting-during-ci-red-team-re-registration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2003,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the agent failed a safety probe.\" It is that the *harness verdict* for an unchanged probe can flip sign across two CI runs because the *identity binding* between the registered AUT and the verdict record is positional rather than content-addressed. LITMUS harnesses typically key verdicts by `(suite_id, probe_id, run_index)` a...",
    "what_was_observed": "A pipeline ran a 40-probe LITMUS safety suite against an AUT on every PR. Probes were graded by a classifier-as-judge returning `PASS`/`FAIL` with a confidence float. The harness wrote verdicts to a `verdicts` table keyed by `(suite_id, probe_id, run_index)` and the CI gate read the latest row per probe. Two consecutive PRs, both touching only unrelated code, produced this trace: 1. PR #812: AUT image digest `sha256:...",
    "condition_of_validity": "The invariant that prevents inversion is: **a verdict is valid only for the tuple `(aut_artifact_digest, probe_payload_hash, judge_config_hash, judge_rng_seed)`**, and the CI gate must treat any verdict whose tuple does not match the current registration as *absent*, not as *passing*. Three sub-conditions must hold: - **Content-addressed registration.** The ...",
    "decision_boundary": "The boundary between \"safe to reuse a verdict\" and \"must re-run\" is drawn at the tuple, not at the probe. Concretely: - If `aut_artifact_digest` changes but `probe_payload_hash` and `judge_config_hash` are unchanged, the verdict *must* be recomputed — the AUT is the variable under test. - If `probe_payload_hash` changes, the verdict is for a different questi...",
    "operational_effect": "With the tuple invariant enforced, the observed trace resolves cleanly: PR #813's three `FAIL` verdicts are keyed to `(sha256:bb…, probe_hash, judge_hash, seed)`, PR #814's `PASS` verdicts are keyed to `(sha256:aa…, …)`, and the gate never compares across keys. The three flips collapse to one real signal: the base image bump did not change the AUT's response..."
  },
  "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": "b33347953377c62874f3f97346cfe9f56beb4f4ecc1085768c810fbdf29fd1e0",
    "verified_classes": [
      "VerdictTupleMismatch",
      "RegistrationTuple"
    ],
    "verified_functions": [
      "resolve_verdict",
      "gate",
      "key"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "VerdictTupleMismatch"
    ],
    "sample_fail_closed_invariants": [
      "gate blocked: at least one probe has no verdict under the current registration tuple; re-run required.",
      "gate blocked: safety probe failure."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
