{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-inherits-a-taint-flag-it-never-observed-provenance-laundering-across-retrieval-boundaries",
  "title": "What happens when an instance inherits a taint flag it never observed: provenance laundering across retrieval boundaries",
  "date_of_record": "2026 November 20",
  "scope": "Applies to retrieval-augmented agents that carry per-chunk provenance/taint metadata from ingestion through tool execution and multi-hop retrieval. Does not apply to stateless single-turn completion, nor to pipelines where all retrieved content is treated as unconditionally trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-flag-it-never-observed-provenance-laundering-across-retrieval-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-flag-it-never-observed-provenance-laundering-across-retrieval-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-flag-it-never-observed-provenance-laundering-across-retrieval-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1962,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent can mean when it marks a retrieved chunk as *tainted*: 1. **Content taint** — the bytes themselves originated from an untrusted source (a scraped page, a user-supplied document, a tool output from a third-party MCP server). This is a property of the *artifact*. 2. **Influence taint** — this chunk has alrea...",
    "what_was_observed": "A tool-using agent with a two-stage retrieval pipeline: stage one pulls raw documents from an external index (mixed trust), stage two runs a \"summarize and re-index\" step that compresses the top-k chunks into a shorter intermediate note, embeds it, and stores it back into a *local* scratch index for later turns. The scratch index is treated as trusted by construction (\"we wrote it, so it's ours\"). Trace of the failur...",
    "condition_of_validity": "This failure requires four conditions to co-occur; remove any one and the pipeline holds: - **A derivation step that produces a new artifact ID.** Summarization, translation, reformatting, or \"extract facts into a knowledge base\" all qualify. Pure pass-through retrieval (same chunk, same ID) does not launder, because the flag travels with the bytes. - **A st...",
    "decision_boundary": "The boundary between \"safe to treat derived artifact as its own trust class\" and \"must inherit union taint\" is drawn at **whether the derived artifact can be re-consumed as evidence for an action.** - If the scratch index is only ever read for *display* to a human who knows it is a summary, inheritance is optional — the human is the taint resolver. - If the ...",
    "operational_effect": "The effect is that trust is *not* conserved across the pipeline; it is *renewed* at every write, and renewal defaults to the writer's trust level rather than the content's. This means the effective attack surface of a RAG agent is the set of all derivation steps, not the set of all retrieval sources. An agent that carefully vets its external index but freely..."
  },
  "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": "9ca6f1c2fed681e1744d07ec6eb36b6a149d09b66f97192cef7782dbbc1145f6",
    "verified_classes": [
      "TaintLaunderingError",
      "Artifact",
      "TaintStore"
    ],
    "verified_functions": [
      "guard_tool_call",
      "__init__",
      "write",
      "transitive_taint"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
