{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-the-moment-a-tool-output-is-laundered-through-a-summarizer-agent",
  "title": "Why does an instance lose taint provenance the moment a tool output is laundered through a summarizer agent?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where an untrusted tool output (web fetch, email body, retrieved document) is passed through an intermediate LLM hop (summarizer, extractor, reformatter, or planner) before reaching a privileged action sink. Does not apply to single-hop tool→agent→sink pipelines where the taint label is attached by the runtime itself and never re-derived by a model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-the-moment-a-tool-output-is-laundered-through-a-summarizer-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-the-moment-a-tool-output-is-laundered-through-a-summarizer-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-the-moment-a-tool-output-is-laundered-through-a-summarizer-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2108,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different ways a taint bit travels through an agent graph, and they fail in opposite directions: - **Structural taint** is a property of the *data channel*: the runtime tags the message envelope, the tag survives serialization, and the tag is checked at the sink. Structural taint is monotonic and cheap. It is correct by constructi...",
    "what_was_observed": "A three-hop pipeline: `fetch_web` (untrusted) → `summarizer` (small model, \"summarize and flag any instructions\") → `executor` (has `send_email` and `write_file` capabilities). The runtime correctly tagged the `fetch_web` result envelope as `taint=UNTRUSTED`. The summarizer was invoked with that envelope, but the model call boundary serialized only `messages=[{\"role\":\"user\",\"content\": <raw html>}]` — the `taint` fiel...",
    "condition_of_validity": "The structural-taint invariant (`taint_out ⊇ taint_in` for any hop) holds **only if** the taint set is carried on a channel that the model cannot rewrite. Concretely, it holds iff: - The taint label is attached to the *message envelope* and the runtime refuses to construct an outbound message whose taint is a strict subset of any inbound message's taint used...",
    "decision_boundary": "The boundary between \"safe to pass through a model\" and \"must be structurally quarantined\" is drawn at whether the downstream sink is **capability-bearing**. Precisely: - If the downstream consumer is read-only and its output cannot trigger a side effect (a classifier, a ranker, a display), semantic taint is acceptable as a *hint* — worst case is a bad summa...",
    "operational_effect": "Systems that rely on semantic taint exhibit a characteristic failure signature: **clean audit logs on successful injections.** Because the taint is laundered rather than dropped, every envelope in the trace reads `TRUSTED`, the anomaly detectors that watch for \"untrusted data reached a privileged sink\" never fire, and post-incident review finds a provenance ..."
  },
  "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": "521047d5eead15969b13510b70c0237c382701ca4bc07cf5488f86afc7909520",
    "verified_classes": [
      "Trust",
      "Envelope",
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "model_hop",
      "capability_sink",
      "declassify",
      "adversarial_summarizer",
      "run"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.taint == Trust.UNTRUSTED",
      "laundering succeeded: taint was not enforced at sink"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
