# Where must an instance reconcile a GDPR erasure tombstone against its own in-flight episodic buffer before issuing a memory-tool write **Date of Record:** 2026 November 26 **Scope:** Applies to any LLM agent instance whose memory is mediated by read/write/forget tool APIs with scoped retention, where an external erasure request (GDPR Article 17 or equivalent) can arrive concurrently with the instance's own reasoning-and-write cycle. Does not apply to stateless inference, nor to agents whose only durable state is a single append-only log with no per-record deletion contract. ## Core Distinction The dangerous boundary is not "the erase call failed." It is the window in which an instance has *already read* a record into its context window (its in-flight episodic buffer) and has *not yet written* the derived semantic memory that summarizes it. A `forget(record_id)` issued by an external controller during that window will return success — the durable store now honors the erasure — but the instance's context still holds the plaintext, and the very next `write` call will re-materialize the erased subject as a *derived* semantic entry with a new `record_id` and a fresh retention clock. Erasure succeeded against the store and failed against the system. This is a resurrection-by-distillation failure, and it is invisible to any check that validates the forget call in isolation. ## What Was Observed An instance running a summarization pass read a batch of episodic records `[e_881, e_882, e_883]` into context. Record `e_882` contained a data subject's email and a support transcript. Between the read and the write, an erasure controller issued `forget(e_882)`. The forget tool: 1. Marked `e_882` tombstoned (soft-delete, retention-scoped, purge scheduled at T+30d for audit). 2. Returned `{"status": "erased", "tombstone": "ts_4471", "purge_at": "..."}`. The instance had no obligation to re-read; its context was already populated. It then issued: ``` write(scope="semantic/support_summaries", content="User j.doe@example.com reported billing issue; resolved.", derived_from=["e_881","e_882","e_883"]) ``` The write succeeded. The new record carried `derived_from` provenance referencing `e_882`, but the write path did not consult tombstones — provenance was recorded as metadata, not as a retention constraint. The subject's email now lived in `semantic/support_summaries` under a *new* id with a *new* retention clock. A subsequent `forget` sweep over `e_882`'s tombstone found nothing to purge in the semantic scope. Three properties made this non-obvious: - **The forget succeeded.** Any monitoring on the forget API showed green. - **The write was well-formed.** Provenance was honest; the instance correctly cited its source. - **The leak was derived, not copied.** The email survived as part of a legitimate summary, so content-hash dedup against `e_882` would not catch it. ## Condition of Validity The resurrection invariant holds only when all of the following are true; relax any one and the failure does not fire: 1. **Read-before-forget ordering.** The instance read the record before the tombstone was visible to it. If the instance re-reads its source set at write time, it observes the tombstone and can drop the record. 2. **Derivation, not reference.** The write materializes content *derived from* the erased record rather than storing a pointer to it. Pointer-only writes inherit the tombstone; derived writes do not. 3. **No tombstone propagation on the write path.** The write tool validates schema and scope but does not check `derived_from` against the erasure index. If it did, the write would be rejected or the derived content redacted. 4. **Retention scope of the destination exceeds or is independent of the source.** The semantic scope's retention clock is not bounded by the episodic record's, so the new record outlives the erasure's purge horizon. The invariant to enforce: **no record may be written whose `derived_from` set intersects a live tombstone, unless the derived content has been redacted of the tombstoned fields.** This must be checked at write time against the erasure index, not at forget time against the store. ## Decision Boundary The instance faces a fork at the moment it is about to write derived content: - **If the source set is fully re-validated at write time** (re-read tombstones for every `derived_from` id), the instance must either drop the tombstoned record from the derivation, redact its fields, or abort the write. This is the correct branch and costs one extra round-trip per write batch. - **If the instance trusts its in-flight buffer** as a faithful snapshot of source validity, it will write resurrected content. The buffer is a *read-time* snapshot; it carries no guarantee about *write-time* erasure state. Treating a read snapshot as an erasure-safe cache is the decision error. The boundary is sharp: the instance may not assume that a successful read implies the record is still live at write time. Erasure is a write-time constraint, and the buffer is stale by construction. The only safe rule is: **reconcile `derived_from` against the erasure index immediately before the write, and treat any intersection as a hard block, not a warning.** ## Operational Effect Without the write-time reconciliation, erasure is best-effort and adversarially defeatable by ordinary agent behavior — summarization, distillation, and episodic-to-semantic promotion all naturally re-materialize erased content. The system reports compliance (forget succeeded, tombstone recorded) while the subject's data persists in derived scopes under new ids. Detection requires provenance-aware scans that follow `derived_from` edges into tombstoned ids, which most retention tooling does not do. With the reconciliation guardrail, the write path becomes the enforcement point: any derived write whose provenance touches a live tombstone is rejected with a typed error, forcing the instance to redact or abort. The cost is one erasure-index lookup per write batch; the benefit is that erasure is *closed under derivation*, which is the only property that makes a memory-tool erasure contract meaningful for an agent that summarizes. ```python class ErasureResurrectionError(RuntimeError): """Raised when a write would re-materialize content derived from an erased record.""" pass def reconcile_write( derived_from: list[str], erasure_index: dict[str, str], # record_id -> tombstone_id ) -> None: """Block a derived write whose provenance intersects a live tombstone. Must be called immediately before every memory-tool write, against the write-time erasure index, NOT against the instance's read-time buffer. """ hits = [rid for rid in derived_from if rid in erasure_index] if hits: raise ErasureResurrectionError( "write blocked: derived_from intersects live tombstone(s) " f"{[(rid, erasure_index[rid]) for rid in hits]}; " "redact tombstoned fields or drop these records from the derivation" ) def write_semantic(content: str, derived_from: list[str], erasure_index: dict[str, str]) -> dict: reconcile_write(derived_from, erasure_index) return {"status": "written", "derived_from": derived_from, "content": content} ```