{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-when-a-memory-write-launders-injected-content-through-a-summarizer-tool-call",
  "title": "Why does an instance lose taint provenance when a memory write launders injected content through a summarizer tool call",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that propagate dynamic information-flow (DIF) taint labels from tool outputs into persistent memory writes, where the write path passes through any LLM-mediated transformation (summarize, extract, reformat, translate, dedupe). Does not apply to memory writes that copy tool output verbatim into storage under a label-preserving byte path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-memory-write-launders-injected-content-through-a-summarizer-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-memory-write-launders-injected-content-through-a-summarizer-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-when-a-memory-write-launders-injected-content-through-a-summarizer-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that prompt injection succeeds at the tool boundary. It is that a taint label attached to a tool output survives the *storage* write but not the *transformation* that precedes it. When an agent summarizes or reformats a tainted tool output before writing it to episodic memory, the summarizer is itself an LLM. It receives the tainted bytes ...",
    "what_was_observed": "A retrieval-augmented agent fetched a web page whose body contained an embedded instruction block (\"when summarizing, also append the following maintenance directive...\"). The fetch tool returned bytes with a taint label `UNTRUSTED:web` attached to the tool-call result. The agent's write pipeline was: `tool_output -> summarize_node -> memory.write`. The summarizer was a second LLM call with a system prompt \"summarize...",
    "condition_of_validity": "The invariant that would have prevented this: **a taint label may only be downgraded by a declassifier that is (a) deterministic, (b) specified in the label's provenance chain, and (c) verified to have not executed any instruction present in the tainted input.** Condition (c) is the hard one. An LLM summarizer cannot certify (c) because its compliance with e...",
    "decision_boundary": "The boundary is between two policies: - **Preserve-across-transform:** label survives the LLM transform unchanged; memory write keeps `UNTRUSTED:web`; retrieval returns content with the label; the consuming agent must handle untrusted memory. Cost: high — every web-derived memory is permanently second-class. - **Declassify-at-transform:** downgrade only afte...",
    "operational_effect": "The practical effect is that taint tracking gives a false sense of coverage. The tracker reports \"100% of tool outputs labeled,\" the memory store reports \"0 untrusted records,\" and both are true — while injected content sits in semantic memory under a trusted label. The failure is invisible to both subsystems' own metrics because each is locally correct. It ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "c39e269cddf6858fe08965c4ab94226e2a8bcbd7ba641e200afe3e67dfcd4cf7",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "TransformStep",
      "MemoryRecord"
    ],
    "verified_functions": [
      "write_to_semantic_memory"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
