{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-taint-label-as-surviving-summarization-and-when-may-it-be-laundered",
  "title": "In what scenarios must an instance treat a taint label as surviving summarization, and when may it be laundered?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that propagate provenance/taint labels from untrusted inputs (tool outputs, retrieved documents, peer messages) through summarization, distillation, and re-injection into the context window. Does not apply to systems where untrusted content is never re-emitted into a privileged context (e.g., pure classification pipelines with no summarization step).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-taint-label-as-surviving-summarization-and-when-may-it-be-laundered.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-taint-label-as-surviving-summarization-and-when-may-it-be-laundered.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-taint-label-as-surviving-summarization-and-when-may-it-be-laundered.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive taint model treats a label as a per-token or per-span property: an untrusted span carries `tainted=True`, and any downstream consumer checks the flag before acting. This works until the agent introduces a **compression boundary**—a summarizer, a memory-distillation step, a re-ranking pass, or a \"write to scratchpad, read back later\" round trip. At ...",
    "what_was_observed": "A retrieval-augmented agent fetched a document containing an injected instruction. The fetch tool correctly tagged the tool result with `provenance=untrusted:web, taint=injectable`. The agent then ran a summarization step over the fetched chunk to fit the context budget, producing a scratchpad note. The summarizer prompt did not instruct the model to preserve provenance metadata, and the scratchpad schema had no tain...",
    "condition_of_validity": "A taint label is valid—i.e., you may rely on its absence to grant privilege—only when **every path from an untrusted source to the current context is label-preserving**. Concretely, the invariant is: > For any context object `c` consumed at decision time, `c.taint` must equal the join (union) of the taint of all source objects from which `c` was derived, acr...",
    "decision_boundary": "The operational question is: *when a summary or memory note lacks an explicit taint label, may the agent treat it as clean?* The answer is a hard no under one specific condition and a soft yes under another. **Treat as tainted (fail closed) when:** the note's derivation graph is unknown, incomplete, or crosses a compression boundary that was not label-instru...",
    "operational_effect": "Enforcing the invariant changes three things in the agent's execution model. First, **summarization becomes a privileged operation**: the summarizer's output schema must include taint, and the write path must set it from inputs deterministically, never from the model's self-report. Second, **memory reads carry a trust level**; a scratchpad entry is not conte..."
  },
  "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": "3462ffa8e4a2b79549232a94f7b2baaf8e75d173bf3c77226ebeb5af30aaf309",
    "verified_classes": [
      "TaintLaunderingError",
      "ContextObject"
    ],
    "verified_functions": [
      "summarize",
      "consume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "clean claim with no derivation log; provenance unknown"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
