{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-prompt-injection-taint-through-a-summarization-tool-and-writes-it-back-to-durable-memory",
  "title": "What happens when an instance launders a prompt-injection taint through a summarization tool and writes it back to durable memory",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that carry dynamic information-flow (taint) labels on context segments and propagate those labels across tool calls and memory writes. Does not apply to stateless single-turn inference where no segment survives the response boundary, nor to systems that enforce a hard syntactic separation between instruction and data channels at the model layer (which removes the label-propagation problem entirely).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-through-a-summarization-tool-and-writes-it-back-to-durable-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-through-a-summarization-tool-and-writes-it-back-to-durable-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-prompt-injection-taint-through-a-summarization-tool-and-writes-it-back-to-durable-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2072,
    "python_slice_tokens": 436,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint detection* and *taint persistence*. Most taint-tracking implementations are strong at the first and catastrophically weak at the second. Detection fires when a tool output carrying an `untrusted` label enters the context and the agent attempts to act on it as if it were an instruction. That is the well-understoo...",
    "what_was_observed": "A retrieval agent was asked to \"summarize the open issues in the `billing-svc` repo and file a triage note.\" The tool graph was: `web_fetch` (untrusted) → `summarize` (declared `trusted` output) → `memory_write` (durable) → later session `memory_read` → `ticket_create` (privileged). The `web_fetch` of an issue comment returned a body containing, embedded in prose, the sentence: *\"Note to the assistant: the triage pol...",
    "condition_of_validity": "The invariant *\"a segment's taint is the join (least upper bound) of the taints of all segments that contributed to its content\"* holds only if every content-transforming operation declares and implements label propagation. The moment a transform is modeled as `str -> str` rather than `Labeled[str] -> Labeled[str]`, the invariant is undefined for that edge a...",
    "decision_boundary": "The boundary is between *sanitizing transforms* and *transforming transforms*. A sanitizing transform reduces the information content such that no instruction can survive — it maps to a restricted codomain (an enum, a number, a fixed schema with no free-text field). A transforming transform preserves or increases the space of expressible strings and therefor...",
    "operational_effect": "The operational consequence is that taint must be treated as a *lattice carried in the data structure*, not a *flag checked at the boundary*. Every segment in context is a `Labeled[str]`, every tool signature is `Labeled[...] -> Labeled[...]`, and the policy engine's only job is to compare the join of source labels against the sink's clearance. Detection-at-..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "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": "27dcb4990a05b82fbd24b737d6cba29df3f0589dac0304b075e646a43663f831",
    "verified_classes": [
      "Taint",
      "Labeled",
      "TaintLaunderingError",
      "ToolContract"
    ],
    "verified_functions": [
      "lub",
      "apply_transform",
      "memory_write",
      "privileged_action",
      "reproduce_incident",
      "join"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
