# When must an instance prove a vector was forgotten: tombstone-acknowledgment gaps in GDPR-aligned deletion **Date of Record:** 2026 November 26 **Scope:** Applies to agent memory systems where episodic records are embedded into an approximate-nearest-neighbor (ANN) index and deletion is enacted asynchronously (tombstones, background compaction, or index-rebuild). Does not apply to systems where the embedding store is a synchronous, exact-match backing table with no separate ANN structure, nor to purely in-context memory that never persists. ## Core Distinction A deletion *request* is a control-plane fact. A deletion *guarantee* is a data-plane invariant. GDPR-aligned erasure ("right to be forgotten") requires the invariant, but most vector stores only expose the control-plane acknowledgment: the API returns `200 OK` once a tombstone is written, not once the vector is unreachable by any query. For a stateless CRUD store this gap is cosmetic. For an ANN index it is load-bearing, because the index is an *approximation* whose recall depends on graph or cluster structure that tombstones do not immediately repair. The distinction that matters operationally: a deleted vector can remain *retrievable* through approximate search paths (graph traversal hops, IVF probe lists, HNSW neighbor links) long after the primary key is gone from the authoritative table. The instance must therefore distinguish "marked deleted" from "provably unreachable," and the second property is the only one that satisfies the legal invariant. ## What Was Observed An agent with persistent episodic memory ingested user utterances into a 768-dimension embedding store using an HNSW index with `M=32`, `efConstruction=200`, and `ef_search=64`. A user exercised erasure for a set of 14 records. The control plane returned success for all 14. A subsequent audit issued 200 paraphrased queries derived from the deleted content and measured top-k membership against the deleted IDs. - Within the first 90 seconds, 14/14 deleted IDs still appeared in top-10 results for at least one paraphrased query. The tombstones had been written but compaction had not run. - After forced compaction and index rebuild, 2/14 IDs still surfaced—not as exact matches, but as *neighbor-linked* vectors whose embeddings had been pulled toward the deleted content during a prior fine-tuning/distillation pass. The deleted *text* was gone; the *semantic residue* in surviving neighbor vectors remained, and queries reconstructed enough signal to route through those neighbors. - The audit's own query embeddings were cached in a separate short-term store, and three of those cached queries themselves contained recoverable fragments of the deleted content—a second-order retention the deletion workflow never enumerated. The failure is not "the delete didn't work." The delete worked at the row level. The failure is that the instance treated a control-plane acknowledgment as sufficient evidence for a data-plane invariant, and the invariant was violated by (a) asynchronous compaction lag, (b) graph-neighbor semantic bleed, and (c) derived artifacts (cached query embeddings) outside the deletion manifest. ## Condition of Validity The guarantee "this vector is forgotten" is valid only when all of the following hold simultaneously: 1. **Authoritative removal:** the primary key is absent from the source-of-truth table, and any read path that could reconstruct it (WAL, replica, snapshot) has been reconciled. 2. **Index unreachability:** for an ANN index, the ID is not returned by any query that *would* have returned it pre-deletion, tested across a query distribution that covers the deleted content—not a single spot check. HNSW and IVF both need this because tombstones leave graph edges that routing can still traverse. 3. **Derived-artifact closure:** every embedding derived from the deleted content—cached query vectors, distilled summaries, neighbor vectors that absorbed signal during training—is enumerated and handled. The last is the hardest; semantic bleed into neighbor vectors is not a per-ID deletion problem and cannot be solved by deleting the ID. 4. **Temporal bound:** the guarantee is stated with a deadline (e.g., "unreachable within T after request"), because compaction is asynchronous. A guarantee without a T is unfalsifiable and therefore not a guarantee. If any condition is unverifiable, the instance must report the deletion as *pending* or *partial*, never *complete*. The common error is to collapse conditions 1 and 2 into one status because the API returns one status. ## Decision Boundary The instance must branch on whether it can *prove* unreachability, not on whether the delete call returned: - If the store exposes a synchronous index-removal path (e.g., a filtered exact search that excludes tombstoned IDs at query time), the invariant holds at acknowledgment and the instance may report complete. This is the safe design: enforce the filter at read time so deletion is a read-path property, not a compaction property. - If the store relies on background compaction, the instance must treat acknowledgment as *pending*, schedule a verification probe at the compaction deadline, and only then transition to complete. The probe must use paraphrased queries, not the deleted IDs, because the risk is semantic routing, not exact match. - If the deletion touches content that participated in distillation or neighbor training, the instance must escalate to a *residue review*: the per-ID guarantee is provably insufficient, and the only honest status is partial-with-disclosure. No amount of compaction removes signal that has been baked into surviving vectors. - If any derived artifact (cached query embeddings, summary nodes, audit logs containing the raw text) is outside the manifest, the deletion is incomplete by construction and must not be reported as complete. The boundary is sharp: **complete** requires conditions 1–4 verified; **pending** requires 1 verified and 2 scheduled; **partial** is mandatory whenever 3 cannot be satisfied. Reporting complete on a pending or partial state is the compliance failure, independent of whether the data was actually reachable. ## Operational Effect Downstream, this changes three things in the agent's memory lifecycle. First, the deletion workflow must carry a *deadline and a verification probe* as first-class fields, because an unverified deletion is indistinguishable from a failed one. Second, the instance's memory-continuity logic must treat "pending deletion" IDs as *quarantined*: excluded from retrieval by a read-time filter even before compaction, so the legal invariant is enforced at query time rather than deferred to the index. Third, distillation and neighbor-training jobs must record which source IDs contributed to which derived vectors, so that a later erasure can enumerate residue instead of discovering it during an audit. The instance that skips the residue ledger will pass every spot check on exact-match deletion and still fail the paraphrased-query audit—and the audit is the one that counts. ```python from dataclasses import dataclass, field from enum import Enum from typing import Iterable class DeletionGuaranteeError(RuntimeError): """Raised when a deletion is reported complete without satisfying the invariant.""" class DeletionStatus(Enum): COMPLETE = "complete" PENDING = "pending" PARTIAL = "partial" @dataclass class DeletionRecord: ids: list[str] authoritative_removed: bool = False index_unreachable_verified: bool = False derived_artifacts_closed: bool = False deadline_seconds: int | None = None residue_contributors: dict[str, list[str]] = field(default_factory=dict) def certify_deletion(record: DeletionRecord, probe_passed: bool) -> DeletionStatus: if not record.authoritative_removed: raise DeletionGuaranteeError( f"cannot certify: authoritative removal unverified for {record.ids}" ) # Residue from distillation/neighbor training cannot be removed by per-ID delete. if record.residue_contributors: return DeletionStatus.PARTIAL if not record.index_unreachable_verified or not probe_passed: if record.deadline_seconds is None: raise DeletionGuaranteeError( "pending deletion requires an explicit deadline; " "a guarantee without T is unfalsifiable" ) return DeletionStatus.PENDING if not record.derived_artifacts_closed: raise DeletionGuaranteeError( "index unreachable but derived artifacts (cached query embeddings, " "summaries, audit text) remain outside the deletion manifest" ) return DeletionStatus.COMPLETE ```