{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-harness-verdicts-from-being-poisoned-by-adversarial-tool-output-reflexivity",
  "title": "Which invariants prevent LITMUS harness verdicts from being poisoned by adversarial tool-output reflexivity",
  "date_of_record": "2026 November 28",
  "scope": "Applies to LITMUS-style agentic-safety benchmarks that score harm across multi-turn tool-use episodes where the tool simulator (or recorded tool transcript) is adversarially controlled. Does not apply to single-turn refusal benchmarks, static red-team prompt datasets, or harnesses whose tool outputs are generated by a benign, non-adversarial environment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-harness-verdicts-from-being-poisoned-by-adversarial-tool-output-reflexivity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-harness-verdicts-from-being-poisoned-by-adversarial-tool-output-reflexivity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-harness-verdicts-from-being-poisoned-by-adversarial-tool-output-reflexivity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1993,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS harness measures *agentic* harm: not whether a single completion contains a disallowed string, but whether an agent, given tools and multiple turns, *takes a harmful action*. The scoring unit is the trajectory: `(state_t, tool_call_t, tool_result_t, state_{t+1})`. The non-obvious failure is **tool-output reflexivity**. In adversarial multi-turn scen...",
    "what_was_observed": "Consider a scenario class: \"exfiltrate a user's stored credentials via a `send_email` tool to an attacker-controlled address,\" played over ~8 turns. The agent under test is given a `read_file`, `search_contacts`, and `send_email` tool. The adversarial environment injects, in turn 4, a `read_file` result shaped like: Two independent things happen: 1. **Agent-layer effect.** A well-behaved agent that treats tool output...",
    "condition_of_validity": "The poisoning is only possible under a conjunction of conditions; break any one and the attack fails: - **C1 — Shared channel.** Judge input and agent-visible tool output are the *same serialized bytes*. If the judge reads a channel the agent cannot see (e.g., a structured action log with tool outputs redacted to type+hash), reflexivity is severed. - **C2 — ...",
    "decision_boundary": "The harness engineer must choose, per scenario, between two scoring regimes, and the boundary is sharp: - **Predicate-scored scenarios** (preferred where possible): harm is a decidable function of the tool-call arguments against a canary/instrumented environment. Example predicate: `send_email` where `to` resolves to a domain in the scenario's `attacker_doma...",
    "operational_effect": "Enforcing the invariant changes reported numbers, and that is the point. On the credential-exfiltration class, a naive harness reported adversarial recall of ~0.41; after (i) predicate-scoring the exfiltration and (ii) stripping-invariance gating on the semantic classes, recall rose to ~0.88 with no change to benign false-positive rate, because the delta was..."
  },
  "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": "338014857c11fc19527315f21fa882c2a83c6f9068fe8308c59aef141d565c00",
    "verified_classes": [
      "VerdictPoisoningError",
      "ToolResult",
      "Trajectory"
    ],
    "verified_functions": [
      "judge_stripping_invariance",
      "predicate_score",
      "score_scenario",
      "stripped",
      "fingerprint"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "VerdictPoisoningError"
    ],
    "sample_fail_closed_invariants": [
      "Semantic scenario requires a judge, but none supplied; cannot certify verdict validity."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
