{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-through-summarization-in-agent-tool-invocation-chains",
  "title": "What structural signals indicate taint-laundering through summarization in agent tool-invocation chains",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose runtime enforces label-based taint tracking (source→sink policy) over tool calls, where an untrusted-content read and a privileged sink are separated by one or more LLM-authored intermediate artifacts (summaries, notes, scratchpads, memory writes). Does not cover direct prompt-injection that reaches the sink in a single tool call, nor taint tracking across separate process boundaries with no shared label store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-summarization-in-agent-tool-invocation-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-summarization-in-agent-tool-invocation-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-summarization-in-agent-tool-invocation-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **data provenance** and **data derivation**. A taint-tracking runtime that labels only the *bytes* returned by a tool (the provenance of a value) will correctly block `read_untrusted → http_post` when the same string flows through. It fails when an LLM sits between the source and the sink and *re-authors* the payload. ...",
    "what_was_observed": "A file-reading tool (`read_file`) was labeled `trust=untrusted`. A summarization step (`summarize`, implemented as an LLM call) consumed the file content and wrote a paragraph to a scratchpad tool (`write_note`). A later step read the scratchpad and called `send_email` (labeled `sink=external`). The policy was `deny(sink=external) if taint(untrusted)`. Trace of the label state: 1. `read_file` returns `v1`, labeled `{...",
    "condition_of_validity": "The guardrail holds only under a specific condition: **the derivation graph must model LLM invocation as a taint-transitive operation over its full context set, and declassification must be an explicit, audited edge—not an implicit property of being model output.** Concretely, for any LLM node `n` with context set `C(n)` and output `v`: This is the derivatio...",
    "decision_boundary": "The boundary between \"safe to allow\" and \"must block\" is **not** whether the sink payload is tainted, but whether the sink payload is *reachable from a tainted source through derivation edges that the runtime failed to record*. Two operational rules follow: - **Block when derivation-closure is incomplete.** If a sink argument's provenance cannot be fully res...",
    "operational_effect": "Enforcing derivation-closure changes the failure mode from silent exfiltration to loud denial. The practical consequences: - **Summaries become tainted by construction.** Any note written after reading untrusted content carries `untrusted` until explicitly declassified. This blocks the benign PII-email path too, which is correct—it is the same path an attack..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "4725db12ad2e201cf82e2818f9c2cc955d1fcaf0ce2df2785694b15fdfed20d4",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "check_sink_derivation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
