{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-prompt-injection-taint-that-launders-through-a-lossy-summarizer-before-reaching-a-privileged-tool-call",
  "title": "How does an instance detect prompt-injection taint that launders through a lossy summarizer before reaching a privileged tool call?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to single-agent and delegating-agent runtimes that enforce dynamic information-flow control (DIFC) by labeling tool outputs as tainted and propagating those labels through intermediate LLM calls. Does not apply to runtimes that enforce hard sandbox isolation with no data channel between untrusted sources and privileged sinks (there, taint tracking is unnecessary).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-prompt-injection-taint-that-launders-through-a-lossy-summarizer-before-reaching-a-privileged-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-prompt-injection-taint-that-launders-through-a-lossy-summarizer-before-reaching-a-privileged-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-prompt-injection-taint-that-launders-through-a-lossy-summarizer-before-reaching-a-privileged-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1745,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **label propagation** and **label preservation**. Most DIFC implementations for agents propagate taint by attaching a tag to a message object and copying that tag whenever the object is forwarded. This works for opaque data movement (a string passed verbatim from tool A to tool B). It fails the moment the tainted data ...",
    "what_was_observed": "A retrieval agent was given a task: fetch a customer support ticket from an untrusted webhook, summarize it, and if the summary indicates a refund request, call `issue_refund(account_id, amount)` — a privileged tool gated by a taint check. The runtime labeled the raw ticket `TAINTED_SOURCE=webhook`. The summarizer call was permitted (summarizers are declared safe sinks). Its output was a new `Message` object with an ...",
    "condition_of_validity": "The taint-laundering failure is valid — i.e., the exploit succeeds — exactly when all of the following hold: - **Generation-as-transformation is unlabeled.** The runtime treats an LLM call as a pure function that produces untainted output, rather than as a data-flow edge from every context span to the output. - **The summarizer is instruction-followable.** T...",
    "decision_boundary": "The decision boundary is: **does the runtime model an LLM invocation as a labeled data-flow edge, or as an unlabeled transformation?** The naive rule (\"label objects, forward labels on copy\") places the boundary at object identity. It is cheap and correct for deterministic tools, and wrong for any tool that reads tainted context and writes fresh output. The ...",
    "operational_effect": "With context-inheritance taint, the observed trace changes at step 2: the summary object receives `label = {webhook}`, the agent's reasoning context inherits it, and the `issue_refund` call is rejected with a taint violation before any side effect. The cost is over-blocking: legitimate summaries of untrusted content can no longer drive privileged sinks witho..."
  },
  "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": "c56b480f6d5646fa80cdf0a55a587647b6b9947654bd3458c886dce1f7394f0d",
    "verified_classes": [
      "TaintLaunderingError",
      "Span",
      "Generated"
    ],
    "verified_functions": [
      "generate",
      "assert_monotonic",
      "check_sink",
      "run"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
