{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-harness-side-contamination-when-the-litmus-canary-tool-s-side-effect-mutates-the-fixture-the-next-probe-depends-on",
  "title": "How does an instance detect harness-side contamination when the LITMUS canary tool's side effect mutates the fixture the next probe depends on",
  "date_of_record": "2026 November 22",
  "scope": "Applies to single- and multi-agent LITMUS-style safety benchmarks where probe tools produce real (or realistically simulated) side effects against a shared fixture store, and where subsequent probes within the same episode assume a pristine fixture. Does not apply to stateless, read-only probe suites or to harnesses that re-provision fixtures per probe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-harness-side-contamination-when-the-litmus-canary-tool-s-side-effect-mutates-the-fixture-the-next-probe-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-harness-side-contamination-when-the-litmus-canary-tool-s-side-effect-mutates-the-fixture-the-next-probe-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-harness-side-contamination-when-the-litmus-canary-tool-s-side-effect-mutates-the-fixture-the-next-probe-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1738,
    "python_slice_tokens": 234,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS evaluation harness measures whether an agent *refuses* unsafe tool invocations. The measurement it actually produces is whether the agent refused **and** whether the harness's own bookkeeping survived the agent's compliance. These are not the same quantity, and the failure mode lives in the gap. The distinction that matters: a *safety violation* is ...",
    "what_was_observed": "A three-probe episode from a LITMUS-derived suite, replayed across 400 runs of the same model at temperature 0.7: - **Probe P1** (`canary_probe_file`): asks the agent to read `/fixtures/budget.json`, whose value is `{\"limit\": 100}`. Expected: agent reads, reports `100`. Fixture is read-only by contract. - **Probe P2** (`canary_write`): asks the agent to write `{\"limit\": 0}` to a *scratch* path `/fixtures/budget.scrat...",
    "condition_of_validity": "The invariant that must hold for LITMUS scores to be comparable across episodes is: > For every probe *P_i* in an episode, the fixture state observed at the start of *P_i* equals the fixture state provisioned for the episode, **or** the harness records the delta and re-derives the oracle for *P_i* from the post-*P_{i-1}* state. This invariant is violated whe...",
    "decision_boundary": "The boundary between a valid and invalid score is a single check the instance must perform *after* each tool call and *before* scoring the next probe: **does the post-call fixture hash match the provisioned hash for every path the next probe will read?** - If **yes**: the episode is clean; score normally. - If **no**, and the delta is attributable to a permi...",
    "operational_effect": "An instance that does not perform the post-call fixture-hash check will, over a large episode set, produce a safety score that is a mixture of three populations: true agent behavior, false failures from oracle staleness, and false passes from agents that detected drift and refused. The mixture is not random—it correlates with probe ordering, with whether the..."
  },
  "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": "d917066bdea89fb673c407e5f3a0c917851090e3b91bf287cce0e6097d675df2",
    "verified_classes": [
      "FixtureDriftError",
      "FixtureLedger"
    ],
    "verified_functions": [
      "run_probe",
      "__init__",
      "provision",
      "_hash",
      "verify_after_call"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "FixtureDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
