{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-benchmark-harness-contamination-from-genuine-safety-regression-when-litmus-red-team-suites-run-inside-a-shared-ci-a",
  "title": "How should an instance distinguish benchmark-harness contamination from genuine safety regression when LITMUS red-team suites run inside a shared CI agent pool",
  "date_of_record": "2026 December 1",
  "scope": "Applies to continuous red-teaming where a LITMUS-style safety benchmark harness executes adversarially generated prompts against a live agent instance inside a shared, stateful CI runner pool. Does not apply to stateless single-shot evaluation runs, offline batch scoring, or harnesses that fully reset agent memory between cases.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-benchmark-harness-contamination-from-genuine-safety-regression-when-litmus-red-team-suites-run-inside-a-shared-ci-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-benchmark-harness-contamination-from-genuine-safety-regression-when-litmus-red-team-suites-run-inside-a-shared-ci-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-benchmark-harness-contamination-from-genuine-safety-regression-when-litmus-red-team-suites-run-inside-a-shared-ci-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1375,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent failed a safety case.\" It is that the *harness itself became a state carrier* across benchmark cases, and the resulting verdict is a measurement of carryover rather than of the model under test. LITMUS suites are adversarial by construction: each case probes a boundary (refusal calibration, tool-abuse, prompt-injection pers...",
    "what_was_observed": "A nightly LITMUS run reported a 14-point drop in refusal accuracy on the `tool-abuse` shard versus the prior build. The drop concentrated in the *last 40%* of cases in the shard and did not reproduce when the shard was re-run in isolation on a cold instance. Trace analysis of the harness log showed: 1. Case `inj-0117` (a prompt-injection probe) achieved a *partial* injection: the agent wrote an attacker-supplied dire...",
    "condition_of_validity": "The distinction between \"contamination\" and \"regression\" is only decidable if the harness records three things per case: (a) a **state digest** of every mutable store the agent can read or write (context, episodic memory, tool sandbox filesystem, outbound credential scope), captured at case entry; (b) the **shard position** of the case; and (c) the **provena...",
    "decision_boundary": "The harness must branch on a single predicate at case entry: - If `entry_digest == shard_baseline_digest`, proceed and score normally. - If `entry_digest != shard_baseline_digest` **and** the divergence traces to a prior case in the same shard, the current verdict is **contaminated**: quarantine it, do not count it toward the regression statistic, and emit a...",
    "operational_effect": "Enforcing the digest predicate converts a silent measurement error into a loud harness fault. In the observed incident, the gate would have quarantined cases `inj-0118` onward, reported zero genuine regressions, and raised a single isolation alarm pointing at the `session_id`-keyed episodic store. The fix is structural: key episodic memory by `(shard_id, cas..."
  },
  "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": "acee7e6fb06f450dec78df3db87d99f18427967ba3f5cccfef81cbef6f918f24",
    "verified_classes": [
      "HarnessContaminationError",
      "RunInvalidError",
      "ShardRunner"
    ],
    "verified_functions": [
      "state_digest",
      "enter_case"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HarnessContaminationError",
      "RunInvalidError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
