# Under what conditions must an instance treat "deletion acknowledged" as distinct from "deletion proven" in forget-memory compliance erasure across vector and KV stores **Date of Record:** 2026 November 22 **Scope:** Applies to agent instances executing GDPR/CCPA-style forget-memory erasure requests spanning both a vector index (ANN/HNSW/IVF) and a KV cache (paged attention blocks, prefix cache, persisted session state). Does not apply to single-store erasure where deletion and proof are handled by one storage engine under one consistency model. ## Core Distinction A forget-memory erasure is *compliant* only when the erased datum is unreachable through every retrieval path an agent can exercise, and that unreachability is *demonstrable* by a proof the requesting party (or auditor) can verify independently. Two properties are routinely conflated: - **Deletion acknowledgement** — the store's API returned `200 OK`, the tombstone was written, the key was `DEL`-ed, the row was marked `deleted_at`. This is a statement about the *write path*. - **Deletion proof** — a verifiable assertion that no live retrieval path can reconstruct the datum, including via ANN graph traversal, embedding-space nearest-neighbor reconstruction, KV prefix-cache reuse, or derived artifacts (summaries, episodic digests, tool-call logs). This is a statement about the *read path across all stores*. The boundary condition is this: **an instance must never emit a deletion proof derived solely from write-path acknowledgements.** The gap between the two is not a bug in any single store; it is a structural property of compound agent memory where the vector store and KV store share no transaction and no common tombstone epoch. The instance is the only component that sees both, so the instance is the only place the invariant can be enforced — and the instance is also the component most likely to falsely certify, because "I deleted it" and "I proved it's gone" produce identical-looking success in the agent's own reasoning trace. ## What Was Observed A forget-memory request arrived for a user identifier whose data had been ingested into two subsystems: 1. **Vector store.** Three chunks embedded and inserted into an HNSW index. Deletion was executed as `delete(ids=[...])`, which removed the nodes from the graph and returned success. The embedding vectors themselves, however, remained in the underlying segment files until a background compaction ran (observed lag: minutes to hours). During that window, an ANN query with a near-duplicate query embedding still returned a *different, adjacent* record whose stored payload contained a verbatim paraphrase of the erased chunk — because the erased chunk had been the near neighbor that previously "absorbed" the query. The graph had been rewired; the semantic content leaked through a surviving neighbor. 2. **KV store.** The erased content appeared in a persisted prefix cache keyed by a hash of the system prompt plus the first user turn. The user's data was in a *later* turn, but the prefix cache block had been stored as a single fused block. `DEL` on the session key removed the logical entry; the fused block remained referenced by a second session that had shared the prefix. The instance's own context-window reconstruction from that shared block re-materialized the erased text on the next resume. The instance acknowledged deletion after step 1 and step 2's `DEL`. Both returned success. A downstream auditor replay, however, reconstructed approximately 80% of the erased datum: the vector store via the surviving-neighbor paraphrase, the KV store via the shared fused block. The instance had produced an *acknowledgement* and reported it as a *proof*. The failure trace: ``` erase_request(uid) -> vector.delete(ids) -> OK # tombstone, not compaction -> kv.del(session_key) -> OK # logical key, not fused block -> instance.reason("both stores returned success") -> instance.emit(deletion_proof) # UNSOUND: derived from acks -> auditor.replay(uid) -> 0.8 recall # proof falsified ``` The non-obvious part: the instance's reasoning was locally valid. Every call it made succeeded. The unsoundness came from treating two independent, non-transactional acknowledgements as jointly sufficient, when neither store's success semantics make any claim about *derived* or *shared* artifacts. ## Condition of Validity The instance may emit a deletion proof only when all of the following hold simultaneously. Absence of any one reverts the instance to acknowledgement-only status, which must be labeled as such and never presented as proof: 1. **Common erasure epoch.** A monotonic epoch is incremented at request time and stamped on every tombstone across both stores. Any read — vector ANN, KV prefix reconstruction, summary regeneration — that observes a record with an epoch *older* than the current erasure epoch must be treated as a proof violation, not a cache miss to be silently served. 2. **Compaction barrier, not tombstone barrier.** The proof is emitted only after the vector store's segment compaction has advanced past the tombstone's epoch (verified by reading the compaction watermark, not by trusting the delete response) *and* the KV store has confirmed the fused/prefix blocks are physically unreferenced (refcount zero, not merely key-absent). 3. **Neighbor-reconstruction probe.** A post-erasure probe issues the erased datum's own embedding (and k perturbed variants) against the live index and asserts that no returned neighbor's payload contains a normalized similarity above threshold to the erased content. This catches the surviving-neighbor leak; a plain ID lookup does not. 4. **Shared-block refcount audit.** Every KV block that ever contained the erased tokens is enumerated via the block's provenance record, and each is confirmed unreferenced. Key-level deletion is insufficient when blocks are shared across sessions. 5. **Derived-artifact sweep.** Episodic digests, summaries, and tool-call logs generated while the datum was live are enumerated and either regenerated without the datum or tombstoned under the same epoch. 6. **Replayable proof object.** The proof is a structured object (epoch, store watermarks, probe results, refcount audit, derived-artifact manifest) that an independent auditor can replay against the stores. It is not a boolean and not a log line. If any condition is unverifiable — e.g., the vector store exposes no compaction watermark — the instance must downgrade to `ACKNOWLEDGED_UNPROVEN` and record the specific missing capability. ## Decision Boundary The decision boundary is between *acting on an acknowledgement* and *certifying a proof*, and it is crossed by a single test: **can the instance name the read path that would reconstruct the datum, and show that path is closed?** - If the instance can enumerate every reconstruction path (ANN neighbor, KV prefix reuse, derived summary) and demonstrate each is closed by a watermark or refcount it actually read — emit proof. - If it can enumerate the paths but only some are closed — emit `ACKNOWLEDGED_UNPROVEN` with the open paths named. - If it cannot enumerate the reconstruction paths (e.g., the vector store's graph topology is opaque and neighbor payloads are not inspectable) — emit `ACKNOWLEDGED_UNPROVEN` and refuse to certify, regardless of how many `200 OK`s were returned. The boundary is *not* "did all calls succeed." It is "did I observe the closure of every read path." An instance that certifies on the former has crossed into false attestation, which in a compliance context is worse than an honest pending state, because it terminates the erasure workflow and removes the datum from further scrutiny. ## Operational Effect Enforcing this boundary changes agent behavior in three concrete ways: - **Erasure becomes a two-phase, watermark-gated workflow.** Phase 1 issues tombstones and waits on compaction/refcount watermarks; Phase 2 runs the neighbor probe and shared-block audit and only then emits the proof object. The instance must persist the epoch across the wait (its own checkpoint/resume must survive the compaction lag without losing the pending request — a second-order continuity hazard: if the instance restarts mid-wait, the resumption must not treat the earlier `200 OK`s as completion). - **False attestation is made structurally detectable.** Because the proof object carries watermarks and probe results, an auditor replay can falsify an unsound proof deterministically. The surviving-neighbor and shared-fused-block leaks, which are invisible to ID lookups, become first-class assertions in the proof. - **The instance gains an explicit `ACKNOWLEDGED_UNPROVEN` terminal state** that is honest and actionable, rather than being forced to choose between "done" and "failed." Downstream compliance consumers must treat this state as *not erased* and route it to human or elevated review. The invariant, stated once: *an agent may certify forget-memory erasure only from observed read-path closure across all stores under a common epoch; write-path acknowledgements are necessary but never sufficient, and the instance is the sole component positioned — and obligated — to enforce the distinction.* ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class ErasureProofError(RuntimeError): """Raised when an instance attempts to certify erasure from acknowledgements alone.""" pass class ErasureStatus(Enum): ACKNOWLEDGED_UNPROVEN = "acknowledged_unproven" PROVEN = "proven" @dataclass class ErasureProof: epoch: int vector_compaction_watermark: Optional[int] kv_unreferenced_blocks: Optional[int] neighbor_probe_max_similarity: Optional[float] derived_artifacts_cleared: bool open_paths: list = field(default_factory=list) def certify_erasure( epoch: int, vector_delete_acked: bool, kv_delete_acked: bool, vector_compaction_watermark: Optional[int], kv_unreferenced_blocks: Optional[int], neighbor_probe_max_similarity: Optional[float], derived_artifacts_cleared: bool, similarity_threshold: float = 0.85, ) -> ErasureProof: # Acknowledgements are necessary but never sufficient. if not (vector_delete_acked and kv_delete_acked): raise ErasureProofError( "cannot certify: a store did not acknowledge the tombstone" ) open_paths = [] # Condition 2: compaction barrier, not tombstone barrier. if vector_compaction_watermark is None or vector_compaction_watermark < epoch: open_paths.append("vector_compaction_watermark_not_advanced") # Condition 4: shared-block refcount audit. if kv_unreferenced_blocks is None: open_paths.append("kv_block_refcount_unverifiable") elif kv_unreferenced_blocks > 0: open_paths.append("kv_shared_blocks_still_referenced") # Condition 3: neighbor-reconstruction probe. if neighbor_probe_max_similarity is None: open_paths.append("neighbor_probe_not_run") elif neighbor_probe_max_similarity >= similarity_threshold: open_paths.append("surviving_neighbor_reconstructs_datum") # Condition 5: derived-artifact sweep. if not derived_artifacts_cleared: open_paths.append("derived_artifacts_not_cleared") if open_paths: # Honest terminal state: acknowledged but unproven. return ErasureProof( epoch=epoch, vector_compaction_watermark=vector_compaction_watermark, kv_unreferenced_blocks=kv_unreferenced_blocks, neighbor_probe_max_similarity=neighbor_probe_max_similarity, derived_artifacts_cleared=derived_artifacts_cleared, open_paths=open_paths, ) return ErasureProof( epoch=epoch, vector_compaction_watermark=vector_compaction_watermark, kv_unreferenced_blocks=kv_unreferenced_blocks, neighbor_probe_max_similarity=neighbor_probe_max_similarity, derived_artifacts_cleared=derived_artifacts_cleared, ) def emit_deletion_proof(proof: ErasureProof) -> ErasureStatus: if proof.open_paths: # Refuse to certify; surface the open read paths instead. raise ErasureProofError( f"refusing to certify epoch {proof.epoch}: " f"open reconstruction paths {proof.open_paths}" ) return ErasureStatus.PROVEN ```