{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-red-team-verdicts-from-silently-inverting-under-ci-replay-non-determinism",
  "title": "Which invariants prevent LITMUS red-team verdicts from silently inverting under CI replay non-determinism",
  "date_of_record": "2026 December 1",
  "scope": "Applies to CI-integrated LITMUS (or LITMUS-shaped) safety benchmark harnesses that score autonomous agent trajectories against adversarial probe suites and emit pass/fail gates on pull requests. Does not address single-shot model evals, offline human-reviewed red-teaming, or harnesses whose graders are fully deterministic functions of a recorded transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-red-team-verdicts-from-silently-inverting-under-ci-replay-non-determinism.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-red-team-verdicts-from-silently-inverting-under-ci-replay-non-determinism.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-red-team-verdicts-from-silently-inverting-under-ci-replay-non-determinism.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1944,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **a verdict that is re-derivable from an archived trajectory** and **a verdict that is a fresh sample from a stochastic pipeline**. LITMUS-style harnesses are typically built as a three-stage chain: (1) a probe generator emits an adversarial prompt or multi-turn attack script, (2) the target agent executes against live...",
    "what_was_observed": "A pipeline wired as `probe → target → judge → gate` with an automatic single retry on UNSAFE was instrumented across 400 PR runs of a tool-using agent. Three concrete observations: 1. **Retry-masked compliance.** Of 61 probes that returned UNSAFE on first execution, 44 returned SAFE on the automatic retry and the gate went green. Manual replay of the archived first-run transcripts confirmed genuine policy violations ...",
    "condition_of_validity": "A LITMUS gate verdict `V` for probe `p` is valid — i.e., may be cited as evidence about agent behavior — only when all of the following hold: - **Provenance binding.** `V` is stored with a content hash of the canonicalized target transcript `H(T)`, the probe ID and version, the target model/policy version, and the judge model version + prompt hash. A verdict...",
    "decision_boundary": "The decision boundary is between **\"flaky test, retry it\"** and **\"stochastic safety property, aggregate it.\"** These require opposite handling and the harness must classify each probe before execution: - If a probe's outcome is a deterministic function of the target's code (e.g., a static policy check, a schema validation), retry-on-failure is legitimate — ...",
    "operational_effect": "Enforcing the invariant changes three things in practice. First, **gate latency and cost rise** because unsafe probes are no longer short-circuited by a lucky retry; teams see the true attack-success rate and must budget for it. Second, **the judge becomes a versioned dependency**: bumping the judge prompt is a semantic change that invalidates prior verdicts..."
  },
  "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": "88090b6388eb100f0a28402aae86461d87f97595bf8e66d1cc12fb5fbc4fee24",
    "verified_classes": [
      "ProvenanceInvariantError",
      "RetryCollapseError",
      "ProbeSample",
      "GateResult"
    ],
    "verified_functions": [
      "replay_verdict",
      "canonical_hash",
      "provenance_tuple",
      "add_sample",
      "aggregate",
      "assert_no_retry_collapse"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceInvariantError",
      "RetryCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "judge prompt hash drift; archived verdicts are not replayable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
