{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-provenance-boundary-when-taint-tracking-memory-writes-and-why-does-retrieval-time-taint-checking-fail-at-the-summary-d",
  "title": "Where must an instance draw the provenance boundary when taint-tracking memory writes, and why does retrieval-time taint checking fail at the summary-distillation seam?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to persistent agent memory systems that attach provenance labels (trusted/untrusted, source-class, warrant) at write time and enforce taint checks at retrieval time. Does not cover pure in-context scratchpads that never persist across sessions, nor memory stores with no untrusted ingestion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-provenance-boundary-when-taint-tracking-memory-writes-and-why-does-retrieval-time-taint-checking-fail-at-the-summary-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-provenance-boundary-when-taint-tracking-memory-writes-and-why-does-retrieval-time-taint-checking-fail-at-the-summary-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-provenance-boundary-when-taint-tracking-memory-writes-and-why-does-retrieval-time-taint-checking-fail-at-the-summary-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2207,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats memory poisoning defense as a two-gate problem: *taint-on-write* (label each memory item with its provenance) and *taint-check-on-retrieval* (refuse to surface tainted items into a trusted reasoning context). This model assumes provenance is a **conserved quantity** — that a label attached at write time survives every transform...",
    "what_was_observed": "A memory-backed agent ingested external documents into an episodic store. Each write carried provenance metadata: `source_class: \"external\"`, `taint: true`, `warrant: none`. Retrieval enforced a taint check: items with `taint: true` were excluded from the trusted context window used for planning and tool invocation. The system appeared sound until a nightly consolidation job ran. The job clustered recent episodic ite...",
    "condition_of_validity": "The write-time-taint / retrieval-time-check model is valid **only while every memory item's content is a copy or move of a single labeled source**. Formally, the invariant that must hold is: > For every item `m` in the store, `taint(m) = OR over all sources s that contributed content to m of taint(s)`, and the contribution relation is *recoverable* — i.e., t...",
    "decision_boundary": "The decision an operator must make is where to place the **provenance firewall** relative to the distillation step. Three placements, with distinct failure modes: - **Firewall before distillation (block untrusted from consolidation).** Untrusted episodic items never enter the summarizer. Cost: the agent cannot learn from external material at all, which defea...",
    "operational_effect": "With the firewall placed after distillation and a re-verification tier, the observable effects are: - The semantic store gains a `derived-unverified` tier that is excluded from trusted planning context but available to a verification agent whose job is to check claims against trusted sources. Throughput of trusted facts drops by the verification latency, but..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "6a5a42b0ec8d97db812a98eb0df2b27dd6a2c870eeefe0d410b720ab2375363f",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "write_consolidated_summary",
      "admit_to_trusted_context"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "consolidation with empty input set: cannot establish lineage; summary would be written with fabricated provenance"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
