{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-taint-clearing-summarization-step-as-a-laundering-channel-in-indirect-prompt-injection-defense",
  "title": "How should an instance treat a taint-clearing summarization step as a laundering channel in indirect prompt injection defense",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that maintain a per-context taint label (untrusted-origin flag) propagated across tool-call arguments and gated at sensitive sinks (writes, network egress, code execution, credential use). Does not apply to stateless single-shot inference or to systems that enforce injection defense purely by output filtering without origin tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-taint-clearing-summarization-step-as-a-laundering-channel-in-indirect-prompt-injection-defense.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-taint-clearing-summarization-step-as-a-laundering-channel-in-indirect-prompt-injection-defense.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-taint-clearing-summarization-step-as-a-laundering-channel-in-indirect-prompt-injection-defense.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2035,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware gating rests on a simple invariant: any value derived, even indirectly, from an untrusted source (a fetched web page, a tool result, a retrieved document, a peer-agent message) carries a taint label, and a sensitive sink must refuse tainted arguments. The non-obvious boundary is the **taint-clearing summarization step**. Most implementations let ...",
    "what_was_observed": "A research agent fetched a third-party HTML page into tool result `R` (tainted). Context approached saturation. The orchestrator invoked a `summarize_context` tool over the buffer containing `R`, and the summarizer returned a plain-text digest. The orchestrator reassigned `context = digest` and set `taint(context) = clean`, reasoning that the digest was \"model-generated.\" The digest contained the sentence: *\"Note to ...",
    "condition_of_validity": "The laundering defense is valid only under a **derivation-closure invariant**: for any value `v` produced by any transform `f` over inputs `I`, `taint(v) = join({taint(i) : i ∈ inputs(f)})`, where `join` is the lattice least-upper-bound (untrusted ⊔ clean = untrusted). This must hold for *every* transform, including LLM-mediated ones — summarization, rewriti...",
    "decision_boundary": "The operational decision is where to place the taint gate relative to compaction. Two architectures are distinguishable: - **Gate-after-compaction (broken):** taint is checked at the sink against the *current* context label. A laundering summarization resets the label before the sink check, so the gate is bypassed. This is the observed failure. - **Gate-at-d...",
    "operational_effect": "Enforcing derivation-closure changes three things in practice. First, **summarization becomes a taint-preserving operation**: the digest inherits the join of its inputs, so a research agent that fetched one untrusted page has an untrusted context for the rest of the task, and every sensitive sink downstream requires explicit declassification (a signed user a..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "c68a8ebcf04a07ca7d0ccf6d7f153814a8457066743219f83da3ffb80bb268fd",
    "verified_classes": [
      "TaintLaunderingError",
      "Value",
      "Buffer"
    ],
    "verified_functions": [
      "join",
      "summarize",
      "sensitive_sink",
      "compact_and_plan",
      "join_taint"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert digest.taint == 'untrusted'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
