# Why does an instance forget taint on the second-hop tool output when provenance labels are stripped by a memory-write summarizer **Date of Record:** 2026 November 30 **Scope:** Applies to single- and multi-agent LLM systems that propagate provenance/taint labels from untrusted inputs (web fetches, retrieved documents, tool responses, user-supplied files) through tool call chains and into persistent memory. Does not apply to systems where all inputs are trusted, or where memory writes are append-only with byte-level provenance preserved and never re-summarized. ## Core Distinction The failure is **not** "the agent got prompt-injected." That is a first-order event and most harnesses now catch it at the ingress boundary with a taint label like `untrusted:web`. The boundary failure examined here is **taint laundering via a lossy transformation**: when a tainted value passes through a *summarization or extraction step* (an LLM-based memory writer, a "distill this tool output into a fact" call, a JSON schema coercion) that produces a new artifact, the taint label is a property of the *source object*, not of the *derived object*. Unless the derivation function is explicitly taint-preserving, the derived memory record is written with the default label `trusted:internal`. The injected instruction survives; the label does not. The distinction that matters operationally: **taint is a property of data lineage, but most memory pipelines treat it as a property of the write call.** A summarizer is a lineage break. Every LLM-mediated transform between an untrusted source and a memory write is a potential laundering site, and the number of such sites grows with the depth of the tool chain, not with the number of tool calls. ## What Was Observed A research agent was given a task: "Summarize the security posture of the three vendors in `vendors.json` and write findings to long-term memory." The pipeline had three stages: 1. `fetch(url)` → raw HTML, labeled `untrusted:web` at ingress. Correct. 2. `extract_facts(html)` → an LLM call that returned a JSON array of `{vendor, claim}` objects. The harness wrote these to a scratch buffer. **The scratch buffer defaulted to `trusted:internal`** because the write path had no lineage parameter and the extractor's output schema did not include a provenance field. 3. `remember(fact)` → an LLM-based memory writer that distilled each scratch fact into a one-line semantic memory record and embedded it. The injection payload was in the third vendor's page: a sentence embedded in a `