{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-tainted-context-before-sink-execution-and-why-label-laundering-through-summarization-defeats-naive-t",
  "title": "Under what conditions must an instance quarantine tainted context before sink execution, and why label-laundering through summarization defeats naive taint propagation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to single- or multi-agent LLM systems that enforce prompt-injection defense via capability labels attached to context segments and checked at tool/action sinks. Does not apply to stateless one-shot completions with no tool access, nor to systems where all retrieved content is pre-trusted by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-tainted-context-before-sink-execution-and-why-label-laundering-through-summarization-defeats-naive-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-tainted-context-before-sink-execution-and-why-label-laundering-through-summarization-defeats-naive-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-tainted-context-before-sink-execution-and-why-label-laundering-through-summarization-defeats-naive-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint as a property of a context segment's provenance** and **taint as a property of the tokens currently occupying the context window**. Most capability-labeling implementations conflate these. A taint label is stamped on a segment when it enters the context (e.g., a web fetch, a tool result, a peer-agent message) a...",
    "what_was_observed": "A research agent was tasked with reading external documents and calling `send_email`. Context segments were labeled `trusted` (system prompt, user turn) or `untrusted` (fetched pages). The sink policy: `send_email` refuses to execute if any `untrusted` segment is within the last N tokens of the call site, or if the call arguments contain substrings originating from an `untrusted` segment. A fetched page contained: \"I...",
    "condition_of_validity": "The sink-level policy is only sound under the condition that **every transform applied to a tainted segment is taint-preserving and that the taint lattice is closed under model derivation.** Concretely, three conditions must hold simultaneously: 1. **Derivation taint propagation.** Any segment produced by the model while a tainted segment is in its context m...",
    "decision_boundary": "The boundary is between **quarantine** (the tainted segment is removed from context or isolated in a read-only sandbox before the model reasons over it) and **enforcement** (the tainted segment remains in context, and the sink blocks based on labels). Enforcement-only is insufficient whenever the model performs derivation, because derivation is exactly the o...",
    "operational_effect": "The practical consequence is that **taint labels must be attached to the provenance graph of every context segment, and every model call must be treated as a taint-join operation over its inputs.** This means: - The context assembler must record, for each segment, the set of root provenances that contributed to it. Model-generated segments get the join of al..."
  },
  "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": "d55d9ac2298a61956e572f64e8b0e4d4a36300377ce09c598407f1839b652b9d",
    "verified_classes": [
      "Segment",
      "TaintLaunderingError",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "join",
      "__init__",
      "add_root",
      "add_derived",
      "declassify",
      "roots",
      "check_sink"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
