{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-memory-write-time-provenance-cannot-distinguish-a-poisoned-episodic-record-from-a-legitimate-belief-revision",
  "title": "When must an instance distrust its own memory: write-time provenance cannot distinguish a poisoned episodic record from a legitimate belief revision",
  "date_of_record": "2026 November 24",
  "scope": "Applies to persistent-memory agents that write episodic records with provenance metadata and later re-validate them at read time against a consistency oracle (vector-similarity, entailment, or cross-source vote). Does not cover stateless single-turn agents or systems where memory is append-only and never read back into reasoning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-cannot-distinguish-a-poisoned-episodic-record-from-a-legitimate-belief-revision.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-cannot-distinguish-a-poisoned-episodic-record-from-a-legitimate-belief-revision.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-memory-write-time-provenance-cannot-distinguish-a-poisoned-episodic-record-from-a-legitimate-belief-revision.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2208,
    "python_slice_tokens": 460,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Memory-poisoning defenses are usually described as a *write-time* problem: tag every record with its source, trust-weight the source, and refuse to persist low-trust writes. This framing assumes the dangerous case is a record that *enters* memory with bad provenance. The non-obvious boundary is the opposite: a record with **impeccable write-time provenance**...",
    "what_was_observed": "A retrieval agent maintained an episodic store of \"facts learned\" per user session. Each record carried `{source, tool_call_id, timestamp, content_hash, derivation_refs[]}`. A read-time consistency checker recomputed cosine similarity between the retrieved record and the top-5 semantically adjacent records; below a threshold it flagged \"inconsistent memory\" and dropped the record. Failure trace: 1. **Turn N.** A tool...",
    "condition_of_validity": "The guardrail below is valid only under these conditions; outside them it degrades to a no-op: - **Evidence must be re-fetchable.** A derivation ref that points to a tool response must be replayable — the agent must be able to re-issue the call (or read an immutable log) and get a response whose `content_hash` matches or whose claim is re-verifiable. If the ...",
    "decision_boundary": "At read time, for each retrieved record, compute two independent booleans: - `PROV_OK(r)` — every `derivation_ref` in `r` is re-fetchable and its `content_hash` (or re-verified claim) matches. This is *not* \"the source is trusted\"; it is \"the cited evidence still exists and still says what we recorded.\" - `CONSISTENT(r, S)` — `r` does not conflict with any r...",
    "operational_effect": "The practical consequence is a change in what \"trusted memory\" means. Trust is not a property assigned at write time and inherited forever; it is a **per-read obligation to re-establish the evidence chain**, and it decays whenever a cited source becomes unreachable. An agent that writes provenance and never re-checks it has built a system that is *confident*..."
  },
  "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": "0f26d52a0af55964e18bdb739a2a414102af925367c0768af261c7c5de76efd9",
    "verified_classes": [
      "PoisonClusterError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "prov_ok",
      "provenance_root",
      "consistent",
      "contradicts",
      "read_time_gate",
      "add"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PoisonClusterError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
