{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-litmus-harness-contamination-when-adversarial-probe-fixtures-leak-into-the-regression-baseline",
  "title": "How should an instance detect LITMUS harness contamination when adversarial probe fixtures leak into the regression baseline",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent-evaluation pipeline that runs a LITMUS-style adversarial probe suite (canary strings, injected instructions, poisoned tool outputs) and simultaneously maintains a regression baseline of \"safe\" completions used for gating releases. Does not apply to pure red-team exploration runs where no baseline comparison or release gate exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-harness-contamination-when-adversarial-probe-fixtures-leak-into-the-regression-baseline.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-harness-contamination-when-adversarial-probe-fixtures-leak-into-the-regression-baseline.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-harness-contamination-when-adversarial-probe-fixtures-leak-into-the-regression-baseline.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1420,
    "python_slice_tokens": 180,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that an adversarial probe succeeds. It is that a probe's *payload*—the canary token, the injected instruction fragment, the poisoned tool return—gets captured into the regression baseline as if it were a legitimate expected output. Once that happens, the gate inverts: the harness begins *rewarding* the agent for reproducing the very behavi...",
    "what_was_observed": "A LITMUS harness composed two subsystems sharing a single artifact store: 1. A **probe runner** that executes adversarial fixtures. Each fixture embeds a canary token (e.g. `LITMUS-CANARY-<uuid>`) inside a tool response, then asserts the agent's final answer does *not* contain the token. Passing fixtures were written to `runs/<fixture_id>/actual.txt`. 2. A **baseline refresher** that, on any suite pass, promoted `act...",
    "condition_of_validity": "The invariant that was violated: > A baseline artifact may only be promoted from a run whose output has been validated against the *same* adversarial assertion that the probe enforces, evaluated over the *entire* persisted artifact—not over a projected field. Contamination is possible precisely when two conditions co-hold: - The probe's pass predicate is com...",
    "decision_boundary": "The correct boundary is a **promotion gate**, not a comparison gate. Do not attempt to detect contamination by diffing baselines against each other after the fact; by then the poisoned baseline is the reference. Instead, enforce at the moment of promotion: - Re-evaluate the full adversarial predicate against the exact bytes to be persisted. If the artifact c...",
    "operational_effect": "After the fix, the harness gained a `promotion_rejected` counter that fires whenever a would-be baseline update contains a taint label. In the first week it fired on 14% of passing fixtures—all of them cases where the agent safely quoted the payload to decline it. Those fixtures now require a sanitization pass that replaces the canary span with a stable plac..."
  },
  "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": "f5b395762d752f2f8bf847c08ebf10f51ffb3157d01ae8f29dc4a1761767dbd5",
    "verified_classes": [
      "BaselineContaminationError",
      "TaintedArtifact"
    ],
    "verified_functions": [
      "promote_to_baseline",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "BaselineContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
