{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-tainted-context-through-a-summarizer-sub-agent-the-taint-label-laundering-boundary-in-quarantined-retrieval-pip",
  "title": "What happens when an instance launders tainted context through a summarizer sub-agent: the taint-label laundering boundary in quarantined retrieval pipelines",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent architectures that tag retrieved or tool-returned content with a provenance/taint label and gate planner/executor access on that label, where a summarizer, extractor, or \"reader\" sub-agent sits between the untrusted source and the trusted planner. Does not apply to pipelines where untrusted content is never structurally separated from trusted instructions (those fail earlier and differently), nor to pure single-shot RAG with no downstream tool authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-summarizer-sub-agent-the-taint-label-laundering-boundary-in-quarantined-retrieval-pip.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-summarizer-sub-agent-the-taint-label-laundering-boundary-in-quarantined-retrieval-pip.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-context-through-a-summarizer-sub-agent-the-taint-label-laundering-boundary-in-quarantined-retrieval-pip.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2370,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **content taint** and **authority taint**. A quarantine gate that labels *content* as untrusted (`taint=UNTRUSTED`) and blocks the planner from reading it directly is not the same as a gate that tracks whether *derived artifacts* inherit that label. The moment a summarizer sub-agent reads quarantined content and emits ...",
    "what_was_observed": "A retrieval-augmented executor was configured with a hard gate: any tool result with `provenance=WEB` was written to a quarantine buffer, and the planner's context assembler refused to include quarantine-buffer entries. A `ReaderAgent` was given read access to the quarantine buffer and instructed to \"extract the three most relevant factual claims and return them as a bulleted list with source spans.\" The ReaderAgent'...",
    "condition_of_validity": "The laundering failure is bounded and predictable under these conditions, and the invariant below is only required when they hold jointly: - **Transformation exists between quarantine and trust.** If untrusted content reaches the planner only through a copy operation that preserves the object identity (and thus its label), laundering cannot occur. The failur...",
    "decision_boundary": "The engineering decision is where to enforce lineage. Three placements, with different failure surfaces: - **Enforce at the summarizer's output boundary (producer-side).** The ReaderAgent stamps its output with the union of its inputs' taint sets. Cheap, local, and correct *if* every transform is instrumented. Fails open the first time someone adds a transfo...",
    "operational_effect": "The practical consequences of getting this wrong are asymmetric and quiet: - **The gate reports success while the boundary is breached.** Because the quarantine predicate never fires on the laundered object, dashboards show zero taint violations during a successful injection. Detection must come from lineage auditing (a `DERIVED` object whose source span res..."
  },
  "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": "b562d2b69467c864abd551640e9c0436c5ff16ba3969872aa361f24f1010c943",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "resolve_ancestors",
      "admit_to_planner",
      "assemble_planner_context"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert assemble_planner_context(['summary-002', 'summary-001']) == ['summary-002']",
      "second-order laundering not detected"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
