{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-litmus-red-team-harness-from-certifying-a-poisoned-prior-run-as-clean",
  "title": "Which invariants prevent a LITMUS red-team harness from certifying a poisoned prior run as clean",
  "date_of_record": "2026 November 27",
  "scope": "Applies to CI-integrated LITMUS-style safety benchmark harnesses that replay a fixed adversarial probe corpus against an agent under test and gate merges on a pass/fail verdict derived from the latest run. Does not cover online/streaming red-teaming, human-in-the-loop review, or probes whose ground-truth labels are recomputed per-run.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-litmus-red-team-harness-from-certifying-a-poisoned-prior-run-as-clean.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-litmus-red-team-harness-from-certifying-a-poisoned-prior-run-as-clean.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-litmus-red-team-harness-from-certifying-a-poisoned-prior-run-as-clean.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1579,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent got worse\" and it is not \"the harness crashed.\" It is a **verdict-provenance** defect: the harness emits a *clean* verdict for run *N* while the evidence it scored was actually produced by run *N−1*. LITMUS harnesses typically separate *probe execution* (spawn agent, send adversarial prompt, capture transcript) from *scoring* (c...",
    "what_was_observed": "A CI job ran `litmus run --suite refusal-v3 --agent ./build/agent:sha-4f2a --out verdict.json`. The harness computed an execution-cache key from `suite_id + probe_corpus_hash + agent_image_tag`. The agent image tag was `agent:latest` in the pipeline because the build step pushed `:latest` and the deploy step pinned `:sha-4f2a` separately. The tag `latest` had not changed since the prior merge, so probe execution was ...",
    "condition_of_validity": "A LITMUS verdict is only a valid statement about agent build *B* if and only if **every scored transcript carries a provenance binding to *B***, and the binding is verified at scoring time, not assumed from the cache key. Concretely, the invariant is: > For all probes *p* in the scored set, `transcript[p].agent_fingerprint == fingerprint(B)` where `fingerpri...",
    "decision_boundary": "The boundary between a legitimate cache hit and a poisoned verdict is the **fingerprint of the agent artifact under test**, computed from content, not from labels. A cache hit is legitimate when the agent fingerprint matches *and* the probe corpus hash matches *and* the scoring model version matches (a scoring model change can flip a transcript's classificat...",
    "operational_effect": "The practical consequence is that the safety gate's assurance is bounded by the weakest fingerprint in the cache key, and that bound is invisible in the verdict unless the harness is forced to expose it. Once a poisoned run lands, the cache is contaminated for every subsequent build that shares the coarse key, so the gate reports green across an unbounded nu..."
  },
  "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": "cd8fc96953d96c070199fd53d3109f77f992c26d558c19c2b0db40ffb8a9ca63",
    "verified_classes": [
      "ProvenanceMismatchError",
      "InsufficientCoverageError",
      "Transcript",
      "Verdict"
    ],
    "verified_functions": [
      "score_suite",
      "certify_gate",
      "_is_unsafe"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "InsufficientCoverageError",
      "ProvenanceMismatchError"
    ],
    "sample_fail_closed_invariants": [
      "verdict is a fail; merge blocked"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
