{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-retrieved-document-whose-taint-label-was-laundered-by-a-summarizer-tool",
  "title": "When must an instance quarantine a retrieved document whose taint label was laundered by a summarizer tool",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that ingest untrusted content (web pages, retrieved documents, tool payloads) and pass it through an intermediate LLM transform (summarizer, extractor, re-ranker) before it reaches a tool-calling decision. Does not apply to agents with no tool-call authority or to pipelines where untrusted content is never re-emitted as model-authored text.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-document-whose-taint-label-was-laundered-by-a-summarizer-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-document-whose-taint-label-was-laundered-by-a-summarizer-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-document-whose-taint-label-was-laundered-by-a-summarizer-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways taint can survive a transform: **provenance taint** (the data carries a label that says \"this byte range came from an untrusted source\") and **semantic taint** (the instructions embedded in the data are still operative on the downstream reasoner regardless of any label). A summarizer tool is the canonical laundering boundary: it takes a la...",
    "what_was_observed": "A retrieval agent fetched a document from an external source. The fetch tool correctly stamped the payload with `taint=untrusted, origin=web, doc_id=...`. The planner, following its policy of \"summarize long documents before reasoning,\" routed the document through a `summarize` tool. The summarizer was itself an LLM call with a prompt like \"extract the key facts from this document.\" The document contained a paragraph...",
    "condition_of_validity": "The invariant that must hold is: **taint(out) = join(taint(tool), taint(in₁), …, taint(inₙ))** — the output taint is the least upper bound of the tool's own trust and *every* input's taint, under the lattice `untrusted > agent > trusted`. This is the standard information-flow taint join, and it is violated whenever a tool computes output taint from its own i...",
    "decision_boundary": "The boundary between \"safe to pass the summary downstream\" and \"must quarantine\" is not \"is the summary tainted\" — under the correct join rule it always is, whenever any input was untrusted. The real boundary is: - **Pass with `taint=untrusted` (join rule applied):** the downstream consumer is a *reasoner* that will form a plan but whose tool calls are indep...",
    "operational_effect": "The practical consequence is that **intermediate LLM transforms are declassifiers by accident unless you force them to be join-preserving.** Two operational changes follow. First, every tool's output-taint computation must be rewritten from `taint = self.trust` to `taint = join(self.trust, *input_taints)`, and this must be enforced by the tool runtime, not b..."
  },
  "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": "27ee004d94f091a9b83385c846a84e1fd14ea52a38a2fd337d89574a43c9b1c0",
    "verified_classes": [
      "Taint",
      "Artifact",
      "TaintLaunderingError",
      "ConsumptionGuardError"
    ],
    "verified_functions": [
      "join",
      "run_tool",
      "provenance_root_taint",
      "consume_with_side_effect"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConsumptionGuardError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.taint == Taint.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
