{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-deletes-a-memory-it-is-about-to-read-back-tombstone-free-forget-apis-and-the-read-after-forget-resurrection-window",
  "title": "What happens when an instance deletes a memory it is about to read back: tombstone-free forget APIs and the read-after-forget resurrection window",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose persistent state is exposed through explicit `read`/`write`/`forget` tool calls backed by an eventually-consistent or soft-delete store, where a single reasoning trace can issue `forget` and a subsequent `read` over the same key space. Does not apply to stores that enforce synchronous hard-delete with linearizable reads, nor to append-only memory where deletion is modeled as a superseding event rather than key removal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-about-to-read-back-tombstone-free-forget-apis-and-the-read-after-forget-resurrection-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-about-to-read-back-tombstone-free-forget-apis-and-the-read-after-forget-resurrection-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-about-to-read-back-tombstone-free-forget-apis-and-the-read-after-forget-resurrection-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2199,
    "python_slice_tokens": 453,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous distinction is not \"memory present vs. memory absent.\" It is **\"forget acknowledged\" vs. \"forget visible.\"** A `forget` tool return value is a statement about the *request* (the deletion was accepted, the key was marked), not about the *read path* (subsequent reads will not return the value). Agents routinely conflate the two because `write`→`r...",
    "what_was_observed": "A long-running planning agent maintains a scratchpad namespace `plan/`. On user request (\"forget the abandoned budget scenario\"), the agent calls `forget(key=\"plan/budget_abandoned\")`. The API returns `{\"status\": \"ok\", \"deleted\": true}`. The agent's policy is to then verify by calling `read(key=\"plan/budget_abandoned\")` and expecting a `not_found`. The observed trace: 1. `forget(\"plan/budget_abandoned\")` → `{\"status\"...",
    "condition_of_validity": "The resurrection requires all of the following to hold simultaneously: - **Non-authoritative tombstone.** `forget` marks deletion on the write path but the read path (replica, cache, ANN segment, or negative-cache-not-yet-populated) can still serve the old value. This is the default for any store with read replicas, soft deletes, or vector indexes built over...",
    "decision_boundary": "The boundary is between **treating `forget` as a state mutation that must be confirmed by observation** and **treating `forget` as an intent whose acknowledgment is sufficient and whose confirmation must never be a write.** Operationally: - A `read` after `forget` is **evidence of staleness, not evidence of failure**, unless the read response carries a versi...",
    "operational_effect": "Without the barrier, the failure mode is **content laundering**: forgotten material re-enters live state as a fresh write, now indistinguishable from legitimate memory, with no tombstone and no audit trail linking it to the deletion. This defeats the purpose of `forget` (compliance deletion, context hygiene, user-requested erasure) while producing a success ..."
  },
  "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": "a1e5f3158908fc1c6e51867677b97bd05ceb8e0b46c4ea382d9dc0f53d22e429",
    "verified_classes": [
      "ForgetResurrectionError",
      "MemoryStore",
      "ForgetBarrierAgent"
    ],
    "verified_functions": [
      "forget",
      "read",
      "write",
      "__init__",
      "forget_then_verify",
      "write"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ForgetResurrectionError"
    ],
    "sample_fail_closed_invariants": [
      "assert store.read('plan/budget')['status'] == 'not_found' or store.read('plan/budget').get('stale_possible'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
