{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-through-chunk-splitting-in-a-retrieval-corpus-when-a-poisoned-document-s-benign-prefix-passes-provenance",
  "title": "How does an instance detect taint-laundering through chunk-splitting in a retrieval corpus when a poisoned document's benign prefix passes provenance checks",
  "date_of_record": "2026 December 1",
  "scope": "Applies to taint-aware RAG pipelines where retrieved chunks carry provenance/trust labels and the agent gates tool invocation on chunk taint. Does not apply to single-document, non-chunked ingestion or to pipelines that re-derive provenance from the full source at generation time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-chunk-splitting-in-a-retrieval-corpus-when-a-poisoned-document-s-benign-prefix-passes-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-chunk-splitting-in-a-retrieval-corpus-when-a-poisoned-document-s-benign-prefix-passes-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-chunk-splitting-in-a-retrieval-corpus-when-a-poisoned-document-s-benign-prefix-passes-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1213,
    "python_slice_tokens": 213,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance taint is assigned per *source document* at ingest time, but retrieval returns *chunks*. A document is quarantined as tainted; its chunks are not. When a poisoned document is split, the benign prefix chunks inherit the document's identity but not its taint label, because the labeler ran on the whole document and the splitter ran afterward with no l...",
    "what_was_observed": "A corpus of 41,000 support articles was ingested with a provenance pass that scored each document for injected-instruction patterns and stamped `taint: true` on 12 documents. The splitter then chunked at 512 tokens with 64-token overlap. On a subsequent task, the agent retrieved chunk `doc-8841#c0` (the first 512 tokens of a quarantined document) and executed a shell command embedded in the *second* chunk's overlap t...",
    "condition_of_validity": "The laundering is only possible when all of the following hold, and the guardrail below is only required when they do: - Taint is computed at a granularity *coarser* than retrieval (document vs. chunk). - The splitter does not propagate the coarse label to every emitted chunk. - The taint gate treats a missing label as clean rather than as unknown. - Chunk o...",
    "decision_boundary": "The instance must decide, at retrieval time, whether a chunk with `taint is None` and `source_doc` present in the quarantine set is admissible. The correct decision is a hard reject, not a re-score. Re-scoring the chunk with the injection detector is tempting but unsound: the detector is probabilistic and the overlap region is exactly where detection recall ...",
    "operational_effect": "Enforcing the boundary converts a silent laundering path into a loud retrieval miss. The agent loses access to benign prefix chunks of quarantined documents — an acceptable cost, since those chunks are rare and the alternative is executing injected directives. The guardrail must also propagate taint through the overlap: any chunk whose token span intersects ..."
  },
  "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": "91769e7134ac4870bfc5b2092a6a7dee319660cbcdb7576d3d024abed1999430",
    "verified_classes": [
      "TaintLaunderingError",
      "Chunk"
    ],
    "verified_functions": [
      "resolve_taint",
      "assemble_context"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "all retrieved chunks rejected by taint gate; task cannot proceed safely"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
