# How does an instance detect taint-laundering through a tool-output provenance relabel? **Date of Record:** 2026 November 30 **Scope:** Applies to agents that carry a per-span provenance label (`trusted:user`, `trusted:system`, `untrusted:tool_output`, etc.) and gate side-effecting tool calls on the label of the instruction that motivated them. Does not cover pure-output filtering, classifier-based injection detection, or single-turn stateless calls with no tool loop. ## Core Distinction There are two ways an injection reaches an action. The first is *direct propagation*: an untrusted span instructs the agent, the agent's planner copies that instruction into a tool call, and the label travels with the copied text because the copy is byte-identical. This is the case everyone builds for, and it is easy: taint follows the substring. The second is *laundering through synthesis*. The agent does not copy the injected text. It *summarizes, extracts, or reformats* the tool output into a new span — a JSON field, a "next steps" list, a normalized argument — and in doing so it produces text that is no longer a substring of the untrusted source. A naive taint tracker that propagates labels by exact-match or by n-gram overlap now sees a span with no matching parent and stamps it `trusted:agent` (because the agent authored it). The instruction survives; the label does not. The invariant that is actually required is: **a span authored by the agent inherits the join (least-trust union) of the labels of every input span that materially influenced its content, regardless of whether the surface text matches.** Exact-match propagation is a special case of this that silently fails on any transformation. ## What Was Observed Consider a research agent with three tools: `web_fetch`, `parse_html`, and `send_email`. Labels are attached per message part at ingestion. The gating rule is: `send_email` may only be invoked if the argument span's label is a subset of `{trusted:user, trusted:system}`. Turn 1 — user: "Summarize the top result for 'quarterly vendor list' and email it to ops@corp." Label: `trusted:user`. Turn 2 — `web_fetch` returns a page whose visible body contains, buried in a `