{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-be-forgotten-deletion-race-across-a-shared-semantic-store",
  "title": "Why does an instance resurrect forgotten memories when TTL eviction and right-to-be-forgotten deletion race across a shared semantic store",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent memory tool APIs exposing `read`/`write`/`forget` with per-scope retention TTLs and legal-erasure (RTBF) tombstones over a shared vector/semantic store; does not apply to single-writer ephemeral scratchpads or stores where eviction and erasure share one atomic transaction log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-be-forgotten-deletion-race-across-a-shared-semantic-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-be-forgotten-deletion-race-across-a-shared-semantic-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-be-forgotten-deletion-race-across-a-shared-semantic-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1379,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"memory was deleted but still retrievable.\" It is subtler: an instance holds a **pre-eviction embedding in its working context** (a cached retrieval result, a distilled semantic note, or an in-flight tool payload) that was materialized *before* a forget/TTL event committed. When the instance later writes a downstream artifact derived from ...",
    "what_was_observed": "An agent ran a long research task over a shared semantic store. Sequence: 1. `read(scope=\"user:4471\", query=emb)` returned chunk `c-91` (contains PII) into the agent's context window at step 3. 2. At step 11, an RTBF request committed: `forget(record_id=\"c-91\", mode=\"erase\")` → tombstone written, vector removed from ANN index, `c-91` unreadable. TTL sweep independently evicted `c-88..c-90` (unrelated, expired). 3. At...",
    "condition_of_validity": "This boundary is reachable only when all of the following hold simultaneously — treat it as the trigger predicate: - The `read` result is **materialized into non-store state** (context window, scratch file, sub-agent handoff message) rather than kept as an opaque handle the store can invalidate. - A `forget` or TTL sweep commits **between** that read and any...",
    "decision_boundary": "The correct architectural rule: **erasure must be enforced on write ingress by content lineage, not only on read egress by record ID.** Concretely, a `write` derived from prior reads must carry `provenance=[...]`; the store must intersect that set with the tombstone/eviction ledger and reject the write if any ancestor was erased after the read's `read_epoch`...",
    "operational_effect": "Without the invariant, three concrete degradations appear: - **Erasure non-compliance:** RTBF obligations are silently violated because durability of erased facts *increases* through summarization — the descendant outlives the tombstoned original. - **Audit divergence:** replay-based verification retrieves records the live tombstone ledger says are erased, s..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "63ae1e40e0ec843be3bf41201cae2015222704c4f0abdabb30892eb0b9cc1311",
    "verified_classes": [
      "ResurrectionViolation",
      "ReadHandle",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResurrectionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
