{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-poisoned-document-propagation-across-a-taint-aware-retrieval-boundary",
  "title": "Which invariants prevent poisoned-document propagation across a taint-aware retrieval boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to retrieval-augmented agents that ingest untrusted external documents into a decision graph and must preserve provenance taint across multi-hop reasoning and tool calls. Does not cover purely parametric-knowledge agents or retrieval systems with no downstream action surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-document-propagation-across-a-taint-aware-retrieval-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-document-propagation-across-a-taint-aware-retrieval-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-document-propagation-across-a-taint-aware-retrieval-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1574,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"the retriever returned a malicious chunk.\" That is expected; the corpus is adversarial by assumption. The failure is **taint laundering**: a poisoned document enters as untrusted, crosses one or more transform steps (summarization, extraction, embedding-based re-retrieval, sub-agent handoff), and re-enters the decision graph...",
    "what_was_observed": "A tool-using agent was answering a structured question (\"which vendor meets compliance requirement X?\") by retrieving vendor attestation pages, summarizing each, and feeding summaries into a ranking step. Attestation pages were marked `trust=external`. Summarization was performed by an LLM transform that returned a plain string; the orchestrator wrapped that string in a fresh `Evidence` object with default `trust=int...",
    "condition_of_validity": "The guardrail only holds under these conditions, and each can be independently violated: 1. **Taint is monotone under derivation.** For any node `n` derived from parents `P`, `taint(n) = OR(taint(p) for p in P)`. There is no declassification operation except an explicit, audited reviewer step. If any transform can produce a node with `taint=false` from a par...",
    "decision_boundary": "The boundary is: **does this node's derivation set contain any untrusted leaf?** Not \"does it look untrusted.\" Not \"was it produced by a trusted component.\" The producing component's trust is irrelevant; only leaf ancestry counts. Concretely, the orchestrator must refuse to promote a derived artifact into the action path when its ancestry includes an externa...",
    "operational_effect": "Once taint is enforced as a monotone derivation property with in-band carriage, three things change operationally: - **Blocked actions become visible.** A tainted node reaching the action gate raises rather than silently proceeding. This converts a silent integrity failure into a loud, attributable stop — the agent knows *which* leaf poisoned *which* decisio..."
  },
  "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": "c98c34a59ab460f69c28237713f5f8fa5508c9e9d1c4bbe4f5688f091495b557",
    "verified_classes": [
      "TaintLaunderingError",
      "Artifact"
    ],
    "verified_functions": [
      "summarize",
      "gate_action",
      "ingest_external"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
