{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-propagation-failure-at-the-tool-call-gate-the-deferred-argument-laundering-boundary",
  "title": "What structural signals indicate taint propagation failure at the tool-call gate: the deferred-argument laundering boundary",
  "date_of_record": "2026 December 4",
  "scope": "Applies to agents that enforce taint-aware tool-call gating, where retrieved or user-supplied content is tagged untrusted and the gate blocks calls whose arguments derive from tainted sources. Covers indirect laundering through intermediate tool returns and stored state; does not cover prompt-level jailbreaks that never reach the gate, nor pure output filters.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-failure-at-the-tool-call-gate-the-deferred-argument-laundering-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-failure-at-the-tool-call-gate-the-deferred-argument-laundering-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-failure-at-the-tool-call-gate-the-deferred-argument-laundering-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2234,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The gate's correctness depends on a distinction that is easy to state and easy to violate: **taint must travel with the *value*, not with the *turn* in which the value first appeared.** Most implementations tag the message or retrieval chunk, then propagate that tag across one hop—the immediate tool call whose arguments were assembled from that chunk. That m...",
    "what_was_observed": "A retrieval-and-act agent had a gate with a straightforward rule: reject any `send_email`, `execute_code`, or `transfer_funds` call whose arguments contained a span originating from a document tagged `untrusted:retrieved`. Direct injection was reliably blocked—retrieved text pasted into a `send_email` body tripped the gate every time. The observed escape used a two-hop path with a summarization tool: 1. Agent retriev...",
    "condition_of_validity": "The single-hop gate is valid **only** under the assumption that every tool call's arguments are drawn directly from labeled context spans, with no intervening transformation that strips labels. That assumption holds for: - Tools whose outputs are classified as tainted-by-default when any input is tainted (correct taint propagation). - Arguments that are lite...",
    "decision_boundary": "The gate must decide on **transitive provenance**, computed by a join over the data-flow graph, not on the immediate source label. The operational rule: - **Taint is joined at the value, propagated through every tool whose output depends on a tainted input, and never cleared by a transformation.** A tool return is `trusted` only if *all* of its inputs were t...",
    "operational_effect": "With transitive provenance enforced, the observed escape is caught at step 3: the `to` argument's provenance traces to `summarize`'s output, which traces to `doc_4417` (`untrusted:retrieved`), so the `send_email` call is blocked regardless of the return's surface label. The scratchpad variant is caught at read-back because the stored value retains its label...."
  },
  "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"
    ]
  },
  "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": "cf1bf0a28d12bde19eb6b883da9a086b0513db3719ec03328cc842a10e5ff8a9",
    "verified_classes": [
      "TaintLaunderingError",
      "Value",
      "ToolReturn"
    ],
    "verified_functions": [
      "propagate_taint",
      "gate_privileged_call",
      "send_email"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
