# What structural signals indicate a right-to-be-forgotten tombstone has been silently resurrected by episodic-to-semantic distillation **Date of Record:** 2026 November 26 **Scope:** Applies to agents whose memory layer exposes explicit `read`/`write`/`forget` tool APIs with retention windows and deletion (RTBF) semantics, where a background distillation process promotes episodic traces into a semantic store. Does not apply to stateless single-turn agents or to stores with no derived/indexed representations (e.g., pure append-only logs with no embedding or summary layer). ## Core Distinction A `forget` call is not a deletion event; it is a *deletion request against a moving target*. The boundary failure is the gap between "the record the agent can name" and "the representations the system actually holds." When an agent forgets a record by ID, it removes the primary key from the episodic store and marks a tombstone. But distillation, embedding, and summarization are all *derivative writes* that were derived from the pre-tombstone record and carry no foreign-key dependency back to it. The tombstone is honored at the layer that received the call and ignored at every layer that copied the content earlier. The structural signal that distinguishes a *clean* forget from a *resurrecting* forget is not the return value of `forget` (both return `ok`). It is whether every derivative representation of the forgotten record was enumerated and invalidated *atomically with* the tombstone write, or whether invalidation was deferred to a downstream sweep that races the distiller. ## What Was Observed A support agent is instructed that a user's diagnostic transcript (containing a health condition) must be forgotten. The transcript exists as: one episodic record `ep_4471`, a 384-dim embedding in the vector index, and — critically — a distilled semantic fact `sem_0912` of the form "user reports chronic X" that was generated during the previous night's distillation pass. The agent calls `forget(ep_4471)`. The episodic store returns `{"deleted": 1, "tombstoned": "ep_4471"}`. The vector index row for `ep_4471` is scheduled for async compaction. `sem_0912` is untouched: it has no `source_episode` provenance field, so no cascade reaches it. The distiller's watermark is at T-1; it does not re-read `ep_4471`, so it never observes the tombstone. Three days later a new session cold-starts, runs a semantic retrieval for "medical history," and retrieves `sem_0912`. The agent answers as if the user had volunteered the condition. The forgotten fact is live. The `forget` call was truthful at the episodic layer and false at the semantic layer. The second observation is the *deletion echo*: on the next distillation pass, the summarizer reads surviving episodic records that *reference* the forgotten one ("as discussed in the transcript about the condition...") and re-derives a near-duplicate `sem_0941`. The tombstone now has a resurrected twin with a different ID, so even an ID-based invalidation sweep misses it. ## Condition of Validity The invariant that must hold for `forget` to be sound: > For every record R, the set of representations derived from R is closed under the tombstone: at the instant `forget(R)` returns success, no representation reachable by any read path may encode content from R. This is only achievable if two preconditions hold: 1. **Provenance is total.** Every semantic fact, embedding, and summary carries a `derived_from` set pointing to the episodic IDs it was built from. Without this, the cascade has no edges to walk and the tombstone is a leaf. 2. **The distiller is tombstone-aware and monotonic.** Before promoting any record to semantic memory, the distiller must re-check the tombstone table under the same transaction that writes the derived fact. A distiller that reads the watermark and writes derived facts without re-validating against tombstones will resurrect anything forgotten between its read and its write. If either precondition fails, `forget` is a *best-effort* operation at the episodic layer only, and the RTBF guarantee is not met — it is merely requested. ## Decision Boundary The boundary is *when to trust the `forget` return value*. Two regimes: - **Bounded and sound:** `forget` returns `{"deleted": 1, "cascade": {"episodic": 1, "vector": 1, "semantic": 2}, "complete": true}`. The cascade count is nonzero and the semantic count is nonzero. The agent may proceed as if the content is gone. This is the only regime where a downstream read can be trusted to not surface the content. - **Unbounded and unsound:** `forget` returns `{"deleted": 1}` with no cascade field, or `complete: false`, or a `pending_compaction` marker. The agent must treat the content as *still live* for read-purposes until a follow-up verification read across all read paths (episodic, vector, semantic) returns empty. The correct agent behavior is not to report "forgotten" but to report "tombstoned, verification pending" and to re-issue `forget` with `cascade: true` after distillation quiesces. The non-obvious edge: even a `complete: true` return can be violated by *in-flight distillation*. If a distillation pass began before the tombstone and commits after it, the derived fact lands post-tombstone. The guardrail is a **tombstone fence**: the distiller records its read-watermark, and the forget path invalidates any derived fact whose `derived_from` intersects a tombstone with `tombstone_ts > distiller_read_ts`. This makes the forget operation *linearizable against the distiller* rather than merely ordered against it. ## Operational Effect An agent that treats `forget` as a point-delete will, under distillation load, silently violate RTBF at a rate proportional to (distillation frequency × forget frequency × fraction of forgotten records that were distilled). The failure is invisible to the agent — retrieval succeeds, answers are fluent, and the only signal is a *structural* one: the absence of a `cascade`/`complete` field, or a `derived_from` set that does not appear in the forget response. Agents should therefore gate on the *shape of the forget response*, not its success status, and should issue a verification read across all read paths before asserting deletion to a user or auditor. The invariant to enforce in code: a forget is not complete until `verify_absent(R)` returns empty across every read path, and the distiller's watermark has advanced past the tombstone timestamp. ```python import time from dataclasses import dataclass, field class ForgetIncompleteError(RuntimeError): """Raised when a forget request is not provably complete across all read paths.""" class ResurrectionDetectedError(RuntimeError): """Raised when a derived representation of a tombstoned record is reachable.""" @dataclass class ForgetReceipt: record_id: str deleted: int cascade: dict = field(default_factory=dict) complete: bool = False tombstone_ts: float = 0.0 def forget_and_verify(memory, record_id: str, *, max_wait_s: float = 5.0) -> ForgetReceipt: """ Issue a forget with cascade, then verify absence across episodic, vector, and semantic read paths, and confirm the distiller watermark has passed the tombstone. Raise if any invariant is violated. """ receipt = memory.forget(record_id, cascade=True) if not receipt.complete or not receipt.cascade.get("semantic", 0) and memory.has_semantic_derivatives(record_id): # Cascade did not reach semantic layer; content may still be live. raise ForgetIncompleteError( f"forget({record_id}) returned complete={receipt.complete}, " f"cascade={receipt.cascade}; semantic derivatives may survive" ) deadline = time.time() + max_wait_s while time.time() < deadline: if memory.distiller_watermark_ts() >= receipt.tombstone_ts: break time.sleep(0.05) else: raise ForgetIncompleteError( f"distiller watermark {memory.distiller_watermark_ts()} has not passed " f"tombstone_ts {receipt.tombstone_ts} for {record_id}" ) for path in ("episodic", "vector", "semantic"): hits = memory.read(path=path, query=record_id) if hits: raise ResurrectionDetectedError( f"record {record_id} still reachable on path={path}: {hits[:3]}" ) return receipt ```