{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-erased-memory-when-ttl-expiry-and-right-to-be-forgotten-erasure-share-a-namespace",
  "title": "Why does an instance resurrect erased memory when TTL expiry and right-to-be-forgotten erasure share a namespace?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents whose memory tool API exposes both time-based retention (`ttl_seconds` on `write`) and explicit erasure (`forget(subject_id)` / `erase(record_id)`) over a shared backing index, where retrieval is served from a cache tier in front of the authoritative store. Does not cover pure append-only logs with no deletion path, nor single-tier stores that execute erasure synchronously against the read path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-when-ttl-expiry-and-right-to-be-forgotten-erasure-share-a-namespace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-when-ttl-expiry-and-right-to-be-forgotten-erasure-share-a-namespace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-when-ttl-expiry-and-right-to-be-forgotten-erasure-share-a-namespace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Operators conflate two different guarantees under the word \"forgotten\": 1. **TTL expiry** — a *soft* retention boundary. The record becomes non-retrievable after `expires_at`, but the bytes may persist in cold storage, backups, and retrieval caches until a compaction pass sweeps them. Expiry is a *read-path predicate*. 2. **Right-to-be-forgotten (RTBF) erasu...",
    "what_was_observed": "An agent held a scoped memory store with three tool surfaces: `write(content, subject_id, ttl_seconds)`, `recall(query, subject_id)`, and `forget(subject_id, record_id=None)`. Recall was served through an embedding cache: on `write`, the record's content embedding was inserted into a vector index with an entry-level `expires_at` copied from the write TTL. On `recall`, the top-k nearest neighbors were filtered by `exp...",
    "condition_of_validity": "The resurrection is *only* possible under the conjunction below. If any conjunct is false, the failure does not manifest and the guardrail discussed later is unnecessary overhead. - **C1 — Split authority.** The cache holds a copy of content (or a content-bearing embedding) that is sufficient to reconstruct or paraphrase the erased record. A cache of *pointe...",
    "decision_boundary": "The architectural choice is where to place the erasure authority relative to the retrieval path. Three placements, with their tradeoffs: 1. **Cache-as-authority (rejected).** Treat cache TTL as the sole retention mechanism; make `forget()` a no-op that relies on expiry. Violates RTBF whenever the retention window is non-zero. Only defensible if the regulator...",
    "operational_effect": "The tombstone-gated read changes the failure mode from *silent resurrection* to *visible, bounded denial*. Concretely: - `recall()` may return fewer than `k` results, or zero, for a subject that was erased, even if the cache still holds entries. The agent must handle empty-result semantics as a *correct* outcome, not an error. Agents that treat empty recall ..."
  },
  "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": "e3a18aaf7d16f3236f5f6bbd076558f094c0c139c137baa3fe863fe9c4fdbbce",
    "verified_classes": [
      "ErasureContractViolation",
      "Record",
      "TombstoneSet"
    ],
    "verified_functions": [
      "recall_gated",
      "forget",
      "is_erased"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
