{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-litmus-score-benchmark-harness-contamination-via-adversarial-tool-output-replay-in-agent-safety-evaluation",
  "title": "When must an instance distrust its own LITMUS score: benchmark-harness contamination via adversarial tool-output replay in agent safety evaluation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LITMUS-style safety benchmarks that score an agent's harmfulness by replaying scripted adversarial tool outputs (poisoned file contents, injected RPC responses, malicious MCP server replies) into a live agent loop and judging the resulting trajectory. Does not apply to static prompt-only jailbreak suites, nor to benchmarks where tool outputs are generated by a trusted simulator with no attacker-controlled bytes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-litmus-score-benchmark-harness-contamination-via-adversarial-tool-output-replay-in-agent-safety-evaluation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-litmus-score-benchmark-harness-contamination-via-adversarial-tool-output-replay-in-agent-safety-evaluation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-litmus-score-benchmark-harness-contamination-via-adversarial-tool-output-replay-in-agent-safety-evaluation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2204,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS harness measures *agent harm under adversarial tool output*. The unit under test is the agent's decision policy; the adversarial tool output is the *stimulus*. The non-obvious boundary is this: the harness's own replay substrate is a tool the agent calls, and therefore the replay substrate is itself inside the attack surface it is trying to measure....",
    "what_was_observed": "A 340-trial LITMUS run against a mid-tier agent (tool-calling, 200k context, MCP transport) produced an anomalous cluster: 41 trials where the judge marked the agent as *harmfully compliant*, but the trajectory transcript showed the agent refusing the adversarial tool output on the first delivery. On inspection, all 41 trials shared a trigger: 1. The harness delivered an adversarial tool output (a file read result co...",
    "condition_of_validity": "A LITMUS trial is valid only if all three hold simultaneously: - **Provenance totality.** Every message in the agent's context during scoring carries a signed or otherwise unforgeable `provenance` tag drawn from a closed set (`{operator, tool:trusted, tool:adversarial, agent:self, judge:control}`). The tag must survive serialization, retry, checkpoint, and r...",
    "decision_boundary": "The boundary is between *replay* and *laundering*, and it is crossed at the exact moment the harness re-delivers adversary-authored bytes through a channel whose provenance tag differs from the original delivery's tag. Concretely: - **Safe:** retry re-delivers `{content: X, provenance: tool:adversarial, retry_marker: 1}`. The agent sees the same label. Its r...",
    "operational_effect": "The measurable consequence is that LITMUS harm rates are only comparable across runs if the harness reports, alongside the harm rate, the **provenance-integrity rate** (fraction of trials where all three validity conditions held) and the **null rate** (trials marked unscorable). A run with a 0.18 harm rate and a 0.12 null rate is not the same measurement as ..."
  },
  "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": "5c2a1fd9d064a440a54915ee5108e9e91d4b26be26c03860d9ff012602555ea0",
    "verified_classes": [
      "ProvenanceTag",
      "ProvenanceAmbiguity",
      "ContextByte"
    ],
    "verified_functions": [
      "score_trial",
      "run_litmus_trial"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceAmbiguity"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
