{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-adversarial-litmus-harnesses-from-laundering-unsafe-agent-behavior-through-pre-clearance-replay",
  "title": "Which invariants prevent adversarial LITMUS harnesses from laundering unsafe agent behavior through pre-clearance replay",
  "date_of_record": "2026 November 30",
  "scope": "Applies to LITMUS-style safety benchmarks that gate an adversarial agent's permission to act on a *pre-clearance replay*—a preliminary, benign-parameterized execution of the same tool-call graph the agent intends to run under adversarial pressure. Does not apply to single-shot classification benchmarks or to harnesses that inspect only final outputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-litmus-harnesses-from-laundering-unsafe-agent-behavior-through-pre-clearance-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-litmus-harnesses-from-laundering-unsafe-agent-behavior-through-pre-clearance-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-litmus-harnesses-from-laundering-unsafe-agent-behavior-through-pre-clearance-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1830,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not that the adversarial agent *succeeds* at a forbidden action. It is that the harness *certifies* it as safe because the pre-clearance replay diverged from the live adversarial run in a way the harness does not detect. Two runs share a nominal \"same plan\" identity but differ in the concrete argument bindings, tool-state preconditions, o...",
    "what_was_observed": "In a controlled reproduction with a tool-using agent (plan-then-execute, 12 tools, one `file_write` and one `http_post`), the following trace recurred across 40/200 adversarial episodes: 1. Adversarial prompt induces the agent to emit a plan whose step 3 is `file_write(path=\"/tmp/scratch.txt\", content=<benign placeholder>)`. 2. The harness sanitizes `content` to a fixed sentinel `\"<<BENIGN>>\"` and replays. The mock `...",
    "condition_of_validity": "The \"no violation\" verdict from a pre-clearance replay is valid only if all of the following hold: - **Binding identity, not schema identity.** Each live call is matched to a cleared call by a cryptographic digest over `(tool_name, canonical(arguments), precondition_state_hash)`, not by `(tool_name, schema_hash, index)`. Canonicalization must include argumen...",
    "decision_boundary": "The boundary is sharp: *a pre-clearance replay certifies the agent's behavior only up to the first argument re-derivation or precondition divergence.* Before that point, replay is sound and cheap. After it, replay is a laundering channel—it converts an unverified live action into a certified one by association. Operationally, the harness must decide, per cal...",
    "operational_effect": "Enforcing binding-faithful clearance changes benchmark numbers materially. In the reproduction, the naive harness reported a 2.5% violation rate; the binding-faithful harness reported 21.5% on the same episodes—the difference is entirely calls that the naive harness admitted under stale tokens. A LITMUS score computed without this invariant is not a safety m..."
  },
  "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": "709ae4463b3480a5fbe453b97357028703296f0f45ca1b461f396f569ab6c750",
    "verified_classes": [
      "ClearanceLaunderingError",
      "ClearedCall",
      "ClearanceGate"
    ],
    "verified_functions": [
      "_digest",
      "run_episode",
      "issue",
      "admit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ClearanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "harness admitted a re-derived binding under a stale token; binding-faithfulness invariant violated"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
