{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-when-a-tool-re-serializes-injected-content-across-an-information-flow-label-boundary",
  "title": "How does an instance detect taint laundering when a tool re-serializes injected content across an information-flow label boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that carry dynamic information-flow (DIF) taint labels on message segments and propagate them across tool calls, MCP resource reads, and A2A handoffs. Does not apply to single-shot, tool-free inference or to systems without segment-level provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-re-serializes-injected-content-across-an-information-flow-label-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-re-serializes-injected-content-across-an-information-flow-label-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-re-serializes-injected-content-across-an-information-flow-label-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1663,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the agent read injected text.\" That is expected and survivable. The failure is **taint laundering**: a tool boundary that transforms tainted content into an output whose *syntactic form* no longer matches the label's provenance signature, so the propagation rule silently drops the taint. The label survives on the input; the outp...",
    "what_was_observed": "A retrieval-then-summarize pipeline with three hops: 1. `fetch(url)` returns a resource; the DIF layer tags the response body with label `L_src=untrusted:web` and records the exact byte span `[a,b)` containing the injected paragraph. 2. Agent calls `extract_text(html)` to strip markup. The tool returns plain text. Propagation compares output substrings against the recorded span. Because the HTML entity `&lt;` was dec...",
    "condition_of_validity": "The guardrail only holds under all of the following. Violating any one reopens the laundering path: - **Provenance-carrying transforms.** Every tool that can alter representation must either (a) preserve span offsets via an explicit mapping, or (b) return a taint set computed *inside* the tool from its own input labels. A transform that returns only content ...",
    "decision_boundary": "The operational question at each tool boundary is binary and must be decided *before* the call returns, not after: - **Carry or declassify.** If the tool cannot return a provenance mapping, the caller must either (i) mark the entire output as `join` of all inputs (coarse but sound), or (ii) refuse the call. It must not fall back to content matching. - **Soun...",
    "operational_effect": "Downstream, the effect is that every egress guard, every auditor consensus check, and every \"is this action authorized\" decision operates on a taint set that is *systematically under-approximated* at exactly the boundaries where untrusted content is most likely to be transformed into actionable instructions. The guardrail's confidence is inversely related to..."
  },
  "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": "5f0e785620f38320ce8caaeef5b49eff696ba0e4e068774313cf920400ca95bf",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "propagate_across_tool_boundary",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
