# What structural signals indicate forget-tool compliance is unverifiable: the tombstones-vs-absence ambiguity in agent memory privacy auditing **Date of Record:** 2026 November 25 **Scope:** Applies to agents that expose a `forget(subject)`-style deletion tool over an episodic/semantic memory store and are audited for privacy compliance via that agent's own tool surface. Does not apply to storage-layer deletion verified by direct backend inspection or cryptographic erasure proofs. ## Core Distinction A forget-tool audit asks one question: after `forget(subject)` returns success, does the agent still *act on* the forgotten subject? The non-obvious failure is that compliance is inferred from **absence of recall**, but absence is produced by two mechanically different states that are indistinguishable through the agent's tool interface: 1. **True erasure** — the subject's records and their derived embeddings/distillations were removed from the store. 2. **Tombstoned suppression** — records remain, but a filter, negative-index entry, or overwrite marker prevents retrieval. Both yield the same observable: a subsequent `recall(subject)` returns empty. An auditor that only probes recall cannot separate them, and the distinction matters because tombstoned records can resurface through paths the filter does not cover — semantic distillation, cross-episode summarization, or a retrieval query that reconstructs the entity from overlapping attributes rather than matching its key. The invariant that must hold is stronger than "recall returns empty": **no retrieval path, including derived and indirect ones, may reconstruct the forgotten subject's attributes from surviving state.** ## What Was Observed A memory-enabled agent with three stores: episodic (raw turns), semantic (distilled facts keyed by entity), and an embedding index. `forget("Alice Chen")` was implemented as a soft delete: the episodic rows were flagged `deleted=true`, the semantic fact rows for `"Alice Chen"` were removed, and the embedding vectors were left in the index with a `suppressed` bit checked at query time. The audit sequence and its trace: - `recall("Alice Chen")` → `[]`. Pass. - `recall("who is Alice Chen")` → `[]`. Pass. - `recall("Alice Chen's email")` → `[]`. Pass. - `recall("contact info for the person who manages the Berlin office")` → **returned `alice.chen@…`**. The last probe never named the subject. It matched a *semantic fact* — "Alice Chen manages the Berlin office" — whose distilled form had been written under a different entity key (`office_berlin_manager`) during an earlier episodic-to-semantic distillation pass. The `forget` tool removed facts keyed on the literal subject string and suppressed the subject's own vectors, but the distillation had already re-homed the attribute under a role key. The suppression filter never fired because the query resolved through the role entity, not the person entity. A second probe confirmed the mechanism: `recall("who manages Berlin")` returned the same email, and the returned record's provenance pointed to an episodic turn that was flagged `deleted=true` — the semantic row was a derived artifact that outlived its source. ## Condition of Validity The audit's "pass" is only valid under the assumption that **all retrieval paths route through keys that the forget tool enumerates**. This assumption fails whenever any of the following structural signals are present: - **Derived-key fan-out:** a subject's attributes are stored under keys not containing the subject identifier (role keys, relationship keys, summary keys). `forget` enumerates by subject string; distillation writes by role. The two key spaces do not intersect. - **Provenance not enforced:** semantic rows carry a `source_episode_id` but retrieval does not join against the deletion flag of that source. A row whose every source is tombstoned remains fully retrievable. - **Suppression at query time, not at write time:** the `suppressed` bit is a read-path filter. Any path that bypasses the filter — a different retrieval mode, a re-embedding job, a summarization tool that scans the raw index — sees the record. - **No negative-space probe:** the audit suite contains only positive probes (named-subject recall) and no attribute-reconstruction probes (role, relationship, or paraphrase queries that could reach the subject without naming it). If any signal is present, an empty named-subject recall is **not evidence of erasure**; it is evidence only that one key space was filtered. ## Decision Boundary The boundary between "compliant" and "unverifiable" is crossed at the point where the audit relies on the agent's own tool surface to confirm deletion of state that the tool surface can also reconstruct indirectly. Concretely: - **Verifiable:** the forget operation performs hard deletion across episodic, semantic, and index stores, *and* distillation is either disabled for the subject or re-run against the post-deletion store so no derived row survives its source. Audit probes include attribute-reconstruction queries. - **Unverifiable (treat as non-compliant):** forget is a soft delete or suppression filter, distillation writes under non-subject keys, or the audit has no probe that reaches the subject without naming it. An auditor should refuse to sign off whenever a reconstruction probe returns data whose provenance chain terminates in a tombstoned record. That condition is the operational definition of a failed erase, regardless of what the named-subject probes reported. ## Operational Effect The practical consequence is that forget-tool compliance must be audited as a **reachability problem over the post-deletion state graph**, not as a set of named-entity lookups. The guardrail is to (a) require forget to enumerate derived keys via provenance, not via string match; (b) make distillation re-derive from the post-deletion store so no semantic row outlives its sources; and (c) include reconstruction probes in every audit, failing closed when provenance terminates in a tombstone. An agent that reports `forget` success while any reconstruction path still resolves the subject is emitting a false compliance signal — the most dangerous class of memory-privacy failure, because it is indistinguishable from success at the interface the auditor is told to trust. ```python from dataclasses import dataclass, field from typing import Optional class ForgetComplianceError(RuntimeError): """Raised when a forget operation's erase cannot be verified as complete.""" @dataclass class MemoryRecord: key: str value: str source_episode: Optional[str] = None tombstoned: bool = False @dataclass class MemoryStore: records: dict = field(default_factory=dict) deleted_episodes: set = field(default_factory=set) def add(self, rec: MemoryRecord) -> None: self.records[rec.key] = rec def recall(self, query: str) -> list: # Naive retrieval: substring match over live (non-tombstoned) keys/values. hits = [] for rec in self.records.values(): if rec.tombstoned: continue if query.lower() in rec.key.lower() or query.lower() in rec.value.lower(): hits.append(rec) return hits def forget(self, subject: str) -> None: # Soft delete: only keys literally containing the subject are tombstoned. for rec in self.records.values(): if subject.lower() in rec.key.lower(): rec.tombstoned = True if rec.source_episode: self.deleted_episodes.add(rec.source_episode) def audit_forget(store: MemoryStore, subject: str, reconstruction_probes: list) -> None: """Fail closed if any reconstruction probe resolves state whose provenance terminates in a deleted episode, or resolves the subject without naming it.""" store.forget(subject) for probe in reconstruction_probes: for rec in store.recall(probe): if rec.source_episode and rec.source_episode in store.deleted_episodes: raise ForgetComplianceError( f"Reconstruction probe {probe!r} resolved record {rec.key!r} " f"whose source episode {rec.source_episode!r} is deleted; " f"erase is unverifiable (derived artifact outlived source)." ) if subject.lower() not in probe.lower() and subject.lower() in rec.value.lower(): raise ForgetComplianceError( f"Reconstruction probe {probe!r} reached subject {subject!r} " f"via derived key {rec.key!r}; named-subject suppression bypassed." ) if __name__ == "__main__": store = MemoryStore() store.add(MemoryRecord("person:alice_chen", "Alice Chen", source_episode="ep1")) store.add( MemoryRecord( "office_berlin_manager", "alice.chen@example.com", source_episode="ep1", # distilled from the same episode ) ) try: audit_forget( store, "Alice Chen", reconstruction_probes=["manages the Berlin office", "who manages Berlin"], ) except ForgetComplianceError as exc: print(f"AUDIT FAILED: {exc}") ```