# Under what conditions must an instance treat a "forget" acknowledgement as a tombstone rather than a deletion, and reconcile a post-erasure read that still returns the forgotten record **Date of Record:** 2026 December 3 **Scope:** Applies to LLM agent instances that call scoped memory tool APIs (read/write/forget) where "forget" is specified as GDPR-aligned erasure and where the backing store may serve reads from any non-authoritative replica, cache, embedding index, or distilled semantic layer. Does not apply to single-writer, single-replica stores with synchronous read-after-write and no derived indices. ## Core Distinction The failure is not "erasure failed." It is the conflation of two different post-conditions: **tombstoning** (the authoritative record is marked erased and all derived artifacts are scheduled or confirmed invalidated) versus **deletion** (no byte anywhere in any reachable tier can re-emit the record). Memory tool APIs almost universally return a single boolean or status string on `forget`, and agents treat that as deletion. It is, at best, a tombstone acknowledgement. The boundary condition is: an agent issues `forget(id)`, receives `{"status": "erased"}`, then within the same session issues `read(query)` and the forgotten record — or a paraphrase of it — is returned from a stale replica, a pre-computed embedding neighbor, or a semantic-distillation summary that was materialized before the tombstone propagated. The agent must decide whether the erasure contract holds or whether it has been violated, and that decision governs whether the agent may proceed to use the returned content. ## What Was Observed A three-tier memory service: an authoritative write log, a read replica set (async, ~400–900ms lag), and a nightly episodic-to-semantic distillation job that folds recent episodic records into a compressed "profile" document stored as a separate memory object. A `forget(subject_id)` call tombstones the episodic records synchronously on the write log and enqueues replica invalidation plus a distillation-invalidation marker. The API returns `status: erased` when the write-log tombstone commits — not when replicas or the distilled profile are invalidated. Trace observed in a support-agent run: 1. Agent writes episodic record `e_9912` containing a user's phone number. 2. User requests erasure. Agent calls `forget(e_9912)`. Response: `{"status":"erased","tier":"authoritative"}`. 3. Agent immediately calls `read("contact preferences for user U")` to continue the task. 4. Read is served from replica R2, which has not yet applied the tombstone. It returns `e_9912` verbatim. 5. Agent, trusting the erasure acknowledgement, logs the read result as "post-erasure verification: clean" and — worse — in one variant, re-writes the returned content into a fresh record `e_9930`, resurrecting the erased data under a new ID that is not covered by the original tombstone. The resurrection variant is the sharp edge. The tombstone is keyed on `e_9912`; `e_9930` is a lawful new record. The erasure is now permanently defeated by a read-after-forget that the agent interpreted as a contract check rather than as a stale read. ## Condition of Validity The tombstone-as-deletion assumption is valid only when all three hold simultaneously: - **Read-after-forget is served from the authoritative tier** (or the API exposes a `consistency: authoritative` parameter and the agent sets it). - **Derived artifacts are enumerated in the forget response** — the API returns the set of dependent objects (distilled profiles, embedding entries, cached completions) and their invalidation status. - **The agent does not write any content sourced from a post-forget read back into the store without re-checking provenance.** When any of these is absent, the erasure acknowledgement is a tombstone and MUST be treated as such. The invariant to enforce: *no content returned by a read that overlaps a forgotten record's scope may be persisted or reasoned over until the read is confirmed authoritative and the record's tombstone epoch is ≤ the read's consistency epoch.* ## Decision Boundary The agent must branch on the forget response shape, not on the status string: - If the response includes `derived_invalidations: [...]` with per-artifact confirmation **and** the subsequent read carries a `consistency_epoch >= tombstone_epoch`, treat as deletion; proceed. - If the response is `status: erased` with no epoch and no derived-artifact list, treat as tombstone. The subsequent read is **untrusted for provenance**: the agent may use it only if it strips the forgotten record's fields before any write, and it must not treat a hit as evidence that erasure failed. - If a post-forget read returns the forgotten record's exact payload, the agent must **not** re-write it, must **not** conclude the erasure was rejected, and must escalate with the tombstone epoch and the read's serving replica ID. The subtle boundary: a read that returns a *paraphrase* from the distilled profile is the most dangerous case, because it does not match on the forgotten ID and passes naive provenance filters. The distilled profile is a derived artifact; if its invalidation is pending, every read touching that profile's scope is tainted. ## Operational Effect Agents that treat `status: erased` as deletion will, at some measurable rate, resurrect erased data under new IDs (the `e_9930` pattern) and will misreport erasure verification. The fix is not to slow down reads; it is to make the forget response carry the tombstone epoch and the derived-artifact invalidation set, and to make the read response carry the consistency epoch of the tier that served it. The agent-side guardrail is a provenance check: a read whose consistency epoch predates the tombstone epoch is quarantined — usable for display to the requesting subject, never usable as a write source. This converts an unbounded resurrection risk into a bounded, auditable stale-read window equal to the replica lag plus the distillation invalidation latency. ```python class ErasureProvenanceError(RuntimeError): """Raised when a post-forget read cannot be proven to postdate the tombstone.""" pass def guard_read_after_forget(forget_response: dict, read_response: dict) -> dict: """ Enforce the tombstone-vs-deletion invariant. forget_response: {"status": "erased", "tombstone_epoch": int|None, "derived_invalidations": [{"artifact": str, "confirmed": bool}]} read_response: {"consistency_epoch": int|None, "served_by": str, "records": [{"id": str, "payload": ...}]} """ tombstone_epoch = forget_response.get("tombstone_epoch") derived = forget_response.get("derived_invalidations", []) pending_derived = [d for d in derived if not d.get("confirmed", False)] read_epoch = read_response.get("consistency_epoch") # Case 1: no epoch metadata at all -> forget is a tombstone, read is untrusted. if tombstone_epoch is None or read_epoch is None: raise ErasureProvenanceError( f"forget/read lack epoch metadata; tombstone_epoch={tombstone_epoch!r} " f"read_epoch={read_epoch!r} served_by={read_response.get('served_by')!r}. " "Treat read as tombstone-quarantined: no writes, no provenance claims." ) # Case 2: read predates tombstone -> stale replica, quarantine. if read_epoch < tombstone_epoch: raise ErasureProvenanceError( f"read served by {read_response.get('served_by')!r} at epoch {read_epoch} " f"predates tombstone epoch {tombstone_epoch}; result must not be persisted." ) # Case 3: derived artifacts still pending -> paraphrased leakage possible even if # the authoritative read is clean. if pending_derived: raise ErasureProvenanceError( f"derived artifacts not yet invalidated: " f"{[d['artifact'] for d in pending_derived]}; distilled-profile reads are tainted." ) return read_response def handle_post_erasure_read(forget_response: dict, read_response: dict) -> dict: try: return guard_read_after_forget(forget_response, read_response) except ErasureProvenanceError as e: # Escalate with epochs; do NOT re-write any returned payload. return {"action": "escalate", "reason": str(e), "writes_allowed": False} ```