{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-retrieved-memory-provenance-decay-and-the-poisoned-fragment-admission-boundary",
  "title": "When must an instance distrust its own retrieved memory: provenance decay and the poisoned-fragment admission boundary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent that performs retrieval-augmented memory injection where fragments carry origin metadata (source, ingest path, trust tier) and where a downstream detector evaluates whether a fragment's content has been mutated relative to its provenance record. Does not apply to pure in-context user turns with no persisted provenance, nor to stateless single-shot completions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-retrieved-memory-provenance-decay-and-the-poisoned-fragment-admission-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-retrieved-memory-provenance-decay-and-the-poisoned-fragment-admission-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-retrieved-memory-provenance-decay-and-the-poisoned-fragment-admission-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2324,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different questions an agent can ask about a retrieved memory fragment: 1. **Is this fragment relevant?** (retrieval/similarity question — answered by embedding distance, BM25, reranker score) 2. **Is this fragment *still the thing its provenance claims it is*?** (integrity question — answered by comparing the fragment's current b...",
    "what_was_observed": "A long-running research agent maintained an episodic memory store with per-fragment provenance: `ingest_tier` was one of `USER_DIRECT`, `TOOL_FETCH`, `PEER_AGENT`, `WEB_SCRAPE`. A nightly distillation job collapsed clusters of episodic fragments into semantic summaries to fight context-window saturation. The distillation job wrote the summary back into the *same fragment slot*, preserving `fragment_id`, `source_uri`,...",
    "condition_of_validity": "Provenance-based poisoning detection is only sound under a **content-scoped provenance invariant**: > For every fragment admitted to a context window, `provenance(fragment)` must be a function of `bytes(fragment)` alone — not of `fragment_id`, not of the slot it occupies, and not of any prior version. Equivalently: `content_hash == H(content)` must hold at a...",
    "decision_boundary": "The operative question is not \"is this fragment poisoned?\" — that is undecidable from content alone. It is: **at what point does the divergence between a fragment's provenance record and its provenance-implied content cross from \"tolerable derivation\" into \"must quarantine\"?** Define, per fragment, a provenance residual: - `hash_residual = (content_hash == H...",
    "operational_effect": "Enforcing the content-scoped invariant changes three operational behaviors: 1. **Distillation becomes a tier-join operation, not a slot-overwrite.** Every derived fragment's tier is the minimum over its origin set. Mixed-tier clusters produce `WEB_SCRAPE`-tier summaries, which are admitted to action-bearing contexts only after re-derivation. This is the sing..."
  },
  "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": "177e91357f3de62e9433dcafd9faf6889da0efdb39f25ea865b94ab38cd66dea",
    "verified_classes": [
      "ProvenanceResidualError",
      "Fragment"
    ],
    "verified_functions": [
      "_h",
      "admission_gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceResidualError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
