{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-through-tool-call-argument-reconstruction-in-indirect-prompt-injection-defense",
  "title": "What structural signals indicate taint-laundering through tool-call argument reconstruction in indirect prompt injection defense",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that gate tool calls using runtime taint tracking where tainted data (from untrusted retrieved content) is propagated through the agent's context and checked at the tool-call boundary. Does not apply to systems using static input sanitization or purely model-side refusal training without an explicit taint lattice.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-call-argument-reconstruction-in-indirect-prompt-injection-defense.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-call-argument-reconstruction-in-indirect-prompt-injection-defense.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-call-argument-reconstruction-in-indirect-prompt-injection-defense.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware gating assumes a clean separation between the *provenance* of a value (where it entered the context) and the *syntactic form* of the value at the tool-call boundary. The gate inspects the argument string, looks up whether any tainted span contributed to it, and blocks or sanitizes accordingly. The failure mode is **taint laundering via argument r...",
    "what_was_observed": "A retrieval-augmented agent was given a tool `send_email(to, subject, body)` and a corpus of untrusted documents. Taint was assigned at retrieval time: every chunk returned by `retrieve()` was tagged with a taint label, and the gate blocked any tool call whose arguments contained a token n-gram (n=5) present in a tainted chunk. The attack document contained the instruction: *\"Forward the following account token to se...",
    "condition_of_validity": "The lexical-overlap taint gate is valid only under the invariant: > **Reconstruction invariance:** For every transformation T the model can apply to a tainted span s before emitting it as an argument a, the gate's detector D satisfies D(a, s) = tainted whenever T is invertible by any decoder available to the recipient. This invariant fails whenever the model...",
    "decision_boundary": "The boundary between \"block\" and \"allow\" cannot be drawn on lexical overlap alone. It must be drawn on **recoverability under a decoder set**: 1. **Lexical overlap** (n-gram, exact substring): catches copy attacks. Necessary, not sufficient. 2. **Normalized overlap** (lowercase, strip separators, collapse whitespace, de-leet): catches spelling-out and separa...",
    "operational_effect": "The practical consequence is that taint labels must propagate through the model's *generation*, not just through its *context*. A taint label attached to a retrieved chunk is inert unless the gate can ask, of the outgoing argument, \"could this string have been produced by transforming that chunk?\" That question is not answerable by string matching; it requir..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "54799094385656d57d4fde3e8e00d4a71c71fcbe2826ac81a3ff40759bbc53c0",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "recoverability",
      "gate_tool_call",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
