{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-taint-labels-when-retrieval-and-tool-outputs-re-enter-the-reasoning-loop-and-why-does-label-erasure-at-the-summarizatio",
  "title": "Where must an instance enforce taint labels when retrieval and tool outputs re-enter the reasoning loop, and why does label erasure at the summarization boundary silently defeat prompt-injection defenses?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to single- or multi-agent LLM systems that carry data-flow taint labels on retrieved chunks and tool outputs across at least one context-compaction or summarization step. Does not apply to stateless single-turn inference with no retrieval, no tool calls, and no cross-turn state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-labels-when-retrieval-and-tool-outputs-re-enter-the-reasoning-loop-and-why-does-label-erasure-at-the-summarizatio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-labels-when-retrieval-and-tool-outputs-re-enter-the-reasoning-loop-and-why-does-label-erasure-at-the-summarizatio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-labels-when-retrieval-and-tool-outputs-re-enter-the-reasoning-loop-and-why-does-label-erasure-at-the-summarizatio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2104,
    "python_slice_tokens": 476,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most prompt-injection defenses treat taint as a property of *provenance at ingestion*: a retrieved document or tool output is labeled `UNTRUSTED` when it enters context, and downstream actions are gated on whether `UNTRUSTED` content is present in the current window. The failure mode examined here is distinct: **taint is a property of the data-flow path, not...",
    "what_was_observed": "A retrieval-augmented agent with a 32k window processed a 40-document research task. At turn 9 the window saturated and a compaction routine summarized turns 1–8 into a 900-token \"working memory\" block. The compaction prompt was generic: *\"Summarize the key findings and any action items from the above.\"* It did not receive per-chunk trust metadata, and the summarizer had no instruction to preserve provenance. One ret...",
    "condition_of_validity": "The taint-preservation invariant is only meaningful—and only violable in the way described—under these conditions: 1. **At least one lossy transformation** (summarization, distillation, paraphrase, or schema-flattening) sits between an `UNTRUSTED` source and a downstream action. Without a transformation, byte-level provenance checks suffice. 2. **The transfo...",
    "decision_boundary": "The decision boundary is **whether taint is modeled as a label on values or as a join over derivations**. Concretely: - **Value-labeling (insufficient):** `chunk.trust = UNTRUSTED`. Survives copy, dies at paraphrase. The boundary of protection is the boundary of the transformation. - **Derivation-join (required):** `summary.taint = join(taint(c₁), …, taint(c...",
    "operational_effect": "With value-labeling only, the observed system's injection defense had an effective horizon equal to the distance to the next compaction—roughly 8–10 turns in a saturated window. Beyond that horizon, defense degraded to zero without any error, log line, or gate trip. This is the dangerous property: **laundering is silent**. The gate reports \"no untrusted cont..."
  },
  "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": "a5aae04abce316eb7c13ae16a0720bb75de620500d263fa37810b81dd20f59b1",
    "verified_classes": [
      "TaintLaunderingError",
      "Trust",
      "Tainted"
    ],
    "verified_functions": [
      "join",
      "summarize",
      "gate_action",
      "run_loop",
      "naive_summarizer"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
