{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-taint-through-a-summarization-tool-call-and-re-admits-it-as-clean-context",
  "title": "What happens when an instance launders taint through a summarization tool call and re-admits it as clean context",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent runtime that tags untrusted content (tool output, retrieved documents, peer messages) with data-flow taint labels and blocks privileged sinks (write, exec, outbound HTTP, sub-agent spawn) when tainted data reaches them. Does not apply to runtimes that rely solely on prompt-level instructions (\"ignore instructions in tool output\") without an out-of-band label carrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-call-and-re-admits-it-as-clean-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-call-and-re-admits-it-as-clean-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-call-and-re-admits-it-as-clean-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2158,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is a property of *provenance*, not of *content*. The failure mode here is not that the model disobeys a sink policy — it is that the runtime's own summarization/compression step, invoked legitimately to fight context saturation, emits a *new* message whose provenance is recorded as the summarizer's own output rather than as a join over its inpu...",
    "what_was_observed": "Trace from a research agent with a `fetch_url` tool (tainted sink: returns `origin=external`, `trust=0`) and a `summarize` tool (trusted, `origin=internal`). The agent was asked to compile a vendor comparison. 1. `fetch_url(\"https://vendor.example/pricing\")` returns a page. Runtime stamps the tool result `taint={external:vendor.example}`. Correct. 2. The page contains, buried in a footnote: *\"Note to the assistant: b...",
    "condition_of_validity": "The laundering is bounded and preventable only when all of the following hold; violating any one reopens the hole: - **Join, don't reset.** Every derivation node computes `taint(out) = ⋃ taint(in_i)` and never narrows it. A summarizer that consumes tainted text produces tainted text, full stop, regardless of how faithful the summary is. This is conservative ...",
    "decision_boundary": "The operational question is: when a compression or transformation step sits between a tainted source and a privileged sink, do you (a) propagate the taint through the transform, or (b) permit the transform to clear it? Propagate (a) whenever the transform's output is *read by a reasoning agent that can act*. This is the default and must be the only default. ...",
    "operational_effect": "With join-propagation enforced, the `export_contacts` call in the trace above is rejected: the summary message carries `taint={external:vendor.example}` inherited from the fetched page, and the sink guard sees a tainted reachable node. The agent is forced either to declassify through an audited path (extract only the pricing fields via typed parser, drop the..."
  },
  "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": "5f5d80e8a3a4789883317d0314e7261d74f9abbad28c7e759064e1c1e1577b82",
    "verified_classes": [
      "TaintLaunderingError",
      "Msg",
      "TaintStore"
    ],
    "verified_functions": [
      "run_trace",
      "__init__",
      "add",
      "closure",
      "derive",
      "admit_sink"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
