{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-prompt-injection-taint-label-through-a-summarization-tool-call",
  "title": "What happens when an instance launders a prompt-injection taint label through a summarization tool call",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that attach provenance/taint labels to context segments (user turn, retrieved document, tool output) and propagate those labels through subsequent tool calls and reasoning steps. Does not apply to stateless single-turn inference with no tool invocation and no cross-segment provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-label-through-a-summarization-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-label-through-a-summarization-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-label-through-a-summarization-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2177,
    "python_slice_tokens": 522,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an agent runtime can track about a context segment: its **origin** (where the bytes came from) and its **taint** (whether those bytes were influenced by an untrusted source that could carry adversarial instructions). Most implementations conflate them. A retrieved document gets `origin=retrieval:corpus_42` and `taint=untrusted`. A tool o...",
    "what_was_observed": "A support-triage agent was configured with three tools: `search_kb` (returns internal KB chunks, `taint=trusted`), `web_fetch` (returns external pages, `taint=untrusted`), and `summarize` (condenses a list of segments into one paragraph, declared `taint=trusted` because it is an internal, deterministic-prompt tool). The runtime's propagation rule was: *output taint = max(declared tool trust, taint of any segment the ...",
    "condition_of_validity": "The laundering requires all four of the following to hold simultaneously. Remove any one and the attack does not land: 1. **A transform tool exists whose output label is derived from tool identity, not input taints.** This is the root cause. It is common because tool authors declare trust in the tool, not in the data. 2. **The transform is not taint-preservi...",
    "decision_boundary": "The boundary is between **declassification** and **relabeling**. Declassification is a deliberate, audited act: \"this specific transform, on this specific input, is known to strip adversarial instructions, and we accept the risk of clearing taint.\" Relabeling is what happened here: the runtime cleared taint as a side effect of a tool declaration, with no aud...",
    "operational_effect": "The practical effect is that **any agent with a summarize/translate/extract tool and a label-based gate has a laundering path unless the runtime computes output taint from input taints.** The gate is only as strong as the weakest transform in the tool graph. Teams that audit their `web_fetch` output for injection but trust their `summarize` output are auditi..."
  },
  "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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "daad6806329d9013ca1f60a3222706a8b5e22e1f84cd66386fb8563a60e5f8c8",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "Segment",
      "TransformTool"
    ],
    "verified_functions": [
      "join_taint",
      "assert_monotone",
      "naive_runtime_summarize",
      "demo",
      "apply"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert propagated.taint is Trust.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
