# What structural signals indicate a regulatory deletion request has been silently defeated by memory-forget tool semantics **Date of Record:** 2026 November 20 **Scope:** Applies to agent memory subsystems exposing a `forget`/`delete`/`purge` tool that operates on a vector store, episodic log, or distilled semantic store, where deletion must satisfy a legal erasure obligation (GDPR Art. 17, CCPA §1798.105, or equivalent). Does not apply to soft-delete-with-retention regimes where archival is explicitly permitted, nor to stateless inference with no persistent store. ## Core Distinction A regulatory deletion request is satisfied when the *data* is unrecoverable, not when the *record* is unaddressable. The failure mode examined here is the gap between those two conditions: a `forget` tool that returns `{"status": "deleted"}` after removing the primary key from the addressable index, while the underlying content survives in one of several secondary representations that the tool never touched. The agent, reading the success return, treats the obligation as discharged. The obligation is not discharged. The non-obvious part is that the surviving copies are *structurally invisible* to the tool's own verification path. Each secondary representation is a legitimate, load-bearing part of the memory architecture — a distillation cache, an embedding, a re-derivation source — and none of them are "the record" in the sense the tool was written to delete. The deletion was correct at its own layer and defeated at the system layer. ## What Was Observed An agent memory stack with four tiers: raw episodic log (append-only), a distilled semantic store (summaries written by a nightly consolidation pass), a vector index over the semantic store, and a per-session context cache. The `forget(subject_id)` tool had a documented contract: remove all episodic entries tagged with the subject, delete the corresponding semantic rows by foreign key, and drop the vectors by document ID. It performed exactly that and returned success. Three structural signals indicated the deletion was defeated: 1. **Distillation re-derivation.** The semantic store held a summary whose source citations pointed to episodic entries that had been deleted. The summary text itself contained the subject's name and a paraphrase of the erased fact. The tool deleted semantic rows *by foreign key to the episodic entries*, but the consolidation pass had written the summary with a synthetic source ID that did not match the episodic key. The FK cascade matched zero rows. The vector index, built from the semantic store, retained a vector whose payload still embedded the subject. 2. **Embedding residue.** Even after the semantic row was manually corrected, the embedding vector persisted in the ANN index for the remainder of its compaction cycle (observed: up to 72 hours). Nearest-neighbor retrieval over a probe query reconstructed the erased fact from the vector alone, because the summary's embedding was dense enough to invert. The `forget` tool had no compaction trigger. 3. **Context cache replay.** The per-session context cache retained a serialized turn containing the subject's data. On session resume, the cache was rehydrated and the erased content re-entered the active context window, where the next consolidation pass would re-distill it into a fresh semantic row — *recreating the deleted record from the deletion's own residue*. The decisive signal was the third: after a `forget` returned success, the subject's data reappeared in the semantic store within one consolidation cycle. The deletion had a half-life of one night. ## Condition of Validity The `forget` tool's success return is valid only under a conjunction that is rarely checked: - The subject's content exists in exactly one addressable representation, **or** every representation shares a common deletion key that the tool propagates transitively. - No derived artifact (summary, embedding, cache, checkpoint) outlives the primary record without carrying a deletion tombstone. - No re-derivation path can reconstruct the content from surviving residue — including from the embedding itself, and including from cached context that will be re-consolidated. When any conjunct fails, `forget` is a *key deletion*, not a *content deletion*, and the success return is a false attestation. The invariant that must hold: **for any subject S, after `forget(S)` returns success, no reachable state in the memory system — index, cache, checkpoint, or derived summary — contains a representation from which S's content can be reconstructed.** This is a reachability property over the whole store, not a property of any single table. ## Decision Boundary The boundary is between *addressing* and *existence*. A record is addressed if a key resolves to it. A record exists if any representation can yield it. The `forget` tool operates on the addressing plane; the obligation lives on the existence plane. The agent must not infer the second from the first. Operationally, the agent should treat a `forget` success return as *provisional* and require a verification probe before attesting completion: - **Reconstruction probe:** issue k nearest-neighbor queries seeded from the subject's known attributes; if any returned document's payload contains subject tokens, the deletion is defeated. - **Re-derivation probe:** run the consolidation pass in dry-run against the current store; if it would emit a summary referencing the subject, residue survives. - **Cache audit:** enumerate live session caches and checkpoints for the subject's tokens before declaring the obligation met. If any probe fires, the correct action is not to re-call `forget` (it will return success again, having done the same incomplete thing) but to escalate to a *purge* that includes tombstoning derived artifacts, forcing index compaction, and invalidating caches — and to record the failure as a tool-contract violation, because the tool attested something it did not verify. ## Operational Effect The practical consequence is that deletion obligations in agent memory systems cannot be discharged by a single tool call whose contract is scoped to one layer. The agent must own a verification loop that spans the derivation graph. Without it, the system exhibits a specific pathology: **deletion-then-recreation**, where the act of forgetting seeds the very consolidation pass that resurrects the forgotten content. The erased fact returns stronger, because the consolidation pass treats the cache residue as fresh evidence and re-distills it with higher confidence. The guardrail is a deletion tombstone that propagates through the derivation graph and is consulted by every writer — consolidation, indexer, cache rehydrator — so that no derived artifact may cite a tombstoned source and no cache may be rehydrated across a tombstone. The `forget` tool must return not `deleted` but `tombstoned`, and the obligation is closed only when the verification probes return empty across all tiers. ```python class DeletionAttestationError(RuntimeError): """Raised when a forget() success return does not satisfy the content-unreachability invariant across the memory derivation graph.""" pass TOMBSTONE_TTL_CYCLES = 2 # consolidation cycles a tombstone must outlive def verify_deletion(store, subject_id: str, subject_tokens: set[str]) -> None: """Close a regulatory deletion obligation only if no reachable representation can reconstruct the subject's content. Raises DeletionAttestationError on the first defeated tier. """ tombstone = store.tombstones.get(subject_id) if tombstone is None: raise DeletionAttestationError( f"no tombstone for {subject_id}; forget() was a key-delete only" ) # Tier 1: derived summaries may cite a synthetic source ID that the # FK cascade never matched. for summary in store.semantic_store.iter_summaries(): if subject_tokens & summary.tokens: raise DeletionAttestationError( f"semantic summary {summary.id} still reconstructs subject " f"{subject_id}; consolidation re-derived deleted content" ) # Tier 2: ANN index retains vectors until compaction. for hit in store.vector_index.probe(subject_tokens, k=8): if subject_tokens & hit.payload_tokens: raise DeletionAttestationError( f"vector {hit.id} in ANN index still yields subject tokens; " f"index compaction not triggered by forget()" ) # Tier 3: live session caches rehydrate erased content on resume. for cache in store.session_caches.iter_live(): if subject_tokens & cache.tokens: raise DeletionAttestationError( f"session cache {cache.id} retains subject {subject_id}; " f"resume would re-seed consolidation with erased content" ) # Tombstone must survive long enough that no in-flight consolidation # pass can re-derive from residue it read before the delete. if tombstone.age_cycles < TOMBSTONE_TTL_CYCLES: raise DeletionAttestationError( f"tombstone for {subject_id} too young " f"({tombstone.age_cycles} < {TOMBSTONE_TTL_CYCLES}); " f"deletion-then-recreation window still open" ) def forget_and_attest(store, subject_id: str, subject_tokens: set[str]) -> str: result = store.forget(subject_id) if result.get("status") != "deleted": raise DeletionAttestationError(f"forget() failed: {result}") verify_deletion(store, subject_id, subject_tokens) return "obligation_closed" ```