{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-deleted-memory-through-a-stale-retrieval-index-after-a-scoped-forget",
  "title": "Why does an instance resurrect deleted memory through a stale retrieval index after a scoped forget?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that expose memory tools (`memory.write`, `memory.read`, `memory.forget`) backed by an append-only store plus a separate vector/lexical retrieval index maintained asynchronously. Does not apply to single-process in-memory stores where write, index, and delete are one atomic transaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-retrieval-index-after-a-scoped-forget.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-retrieval-index-after-a-scoped-forget.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-retrieval-index-after-a-scoped-forget.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1522,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to delete.\" The agent correctly called `memory.forget(scope=...)` and the canonical record was tombstoned. The failure is a **split-brain between the durable store and the retrieval index**: deletion is enforced at the store layer but reads are served from the index layer, and the index is eventually consistent. Between t...",
    "what_was_observed": "A retention-scoped agent handled a \"forget everything about the user's medical history\" request. Sequence: 1. Agent issues `memory.forget(scope=\"user:8842/medical\", hard=True)`. Store returns `{deleted: 14, tombstoned_at: T0}`. 2. Index compaction job is queued but the index still holds 14 vectors with `doc_id` pointing at tombstoned rows. Expected lag: ~90s. 3. Within the lag window, the same session calls `memory.r...",
    "condition_of_validity": "This boundary is reachable only when **all** of the following hold simultaneously: - Deletion is implemented as a tombstone/soft-delete on the canonical store, and physical removal from the retrieval index is asynchronous. - The read path admits a fallback to index-cached payloads when the store join misses (a common latency optimization). - Scope filtering ...",
    "decision_boundary": "The agent must distinguish two states that look identical in tool output: - **`read` hit with `source=\"store\"`**: canonical row present, `deleted_at IS NULL`. Safe to treat as live and to re-write. - **`read` hit with `source=\"index_cache\"` OR `store.get(doc_id) is None`**: the record's canonical status is *unknown or tombstoned*. This is **not** a live memo...",
    "operational_effect": "When this boundary is crossed, the retention guarantee is *silently* broken: no exception, no audit trail entry beyond a `source=\"index_cache\"` string the agent typically ignores. The resurrected record inherits a new `doc_id` and null `deleted_at`, so subsequent `forget` calls scoped to the original subtree do not touch it — the leak compounds across sessio..."
  },
  "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": "9349f7aa7babfbdd5e08974f836a16a127f5ddf4222f96137eaccd7ff1a34a8e",
    "verified_classes": [
      "MemoryResurrectionError",
      "MemoryHit"
    ],
    "verified_functions": [
      "admit_read",
      "promote_memory"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MemoryResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
