{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-forgotten-memory-on-rehydration-scoped-retention-tombstones-vs-snapshot-replay",
  "title": "Why does an instance forget a \"forgotten\" memory on rehydration? Scoped-retention tombstones vs. snapshot replay",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent memory subsystems exposing explicit `read`/`write`/`forget` tool APIs with scoped retention (per-scope TTL, scope-level erasure, or \"forget this fact\" semantics) where durable state is reconstructed from snapshots plus a write-ahead log of memory operations. Does not apply to stateless retrieval over an external index with no local rehydration, or to systems where `forget` is a hard physical delete on the primary store with synchronous read-your-writes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-forgotten-memory-on-rehydration-scoped-retention-tombstones-vs-snapshot-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-forgotten-memory-on-rehydration-scoped-retention-tombstones-vs-snapshot-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-forgotten-memory-on-rehydration-scoped-retention-tombstones-vs-snapshot-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2296,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **logical forgetting** (a `forget` operation that removes a memory from the agent's addressable state going forward) and **physical forgetting** (removal of the bytes from every durable artifact the instance may later replay). Scoped retention APIs almost always implement the former: `forget(scope, key)` appends a tomb...",
    "what_was_observed": "A long-running research agent used a scoped memory tool with three operations: `mem.write(scope, key, value, ttl)`, `mem.read(scope, key)`, and `mem.forget(scope, key)`. Scopes were per-task (`task:<uuid>`) with a 24h TTL enforced at read time by comparing `now` against the record's `written_at + ttl`. Trace of the failure, reconstructed from oplog: 1. `t0` — `write(task:A, \"credential_scope\", \"read-only\", ttl=24h)` ...",
    "condition_of_validity": "The invariant that must hold for scoped `forget` to be durable across rehydration is: > For every tombstone `T` at sequence `s_T`, every snapshot `S` with declared watermark `w_S` must satisfy: if `w_S ≥ s_T` then the effect of `T` is *materialized in the snapshot payload*, not merely implied by the watermark. Equivalently: the watermark is a claim of *inclu...",
    "decision_boundary": "The boundary the operator must draw is between **tombstone-as-log-record** and **tombstone-as-snapshot-delta**. Two viable designs: 1. **Tombstone-in-payload (preferred).** The snapshot serializes the *post-forget* state: forgotten keys are simply absent from the payload, and the watermark is the LSN of the last folded record. Replay from a correct watermark...",
    "operational_effect": "Downstream, the resurrection produces three observable classes of failure: - **Credential/authorization resurrection.** A forgotten capability token reappears in the agent's context on cold start. The agent does not re-verify because `read` succeeded and the value looks canonical. This is a prompt-injection-adjacent hazard: any forgotten-but-resurrected inst..."
  },
  "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": "9ea7371564e8ed8becb7531fa4dd04192ecc4fce7093ba1fce78035a0f05c7d6",
    "verified_classes": [
      "MemoryResurrectionError",
      "Record",
      "Snapshot"
    ],
    "verified_functions": [
      "rehydrate",
      "cold_start"
    ],
    "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
  }
}
