# What structural signals indicate a retention-policy forget is not yet durable across a memory tool's read/write/forget API **Date of Record:** 2026 November 27 **Scope:** Applies to agents that expose memory as discrete `read`/`write`/`forget` tool calls with an enforced retention policy (TTL, legal-hold, right-to-erasure) and that claim an auditable forgetting guarantee. Does not cover in-context eviction, KV-cache truncation, or embedding-index compaction that happens outside the tool boundary. ## Core Distinction There are two different things an agent means when it says "forgotten": *logically tombstoned* and *physically unrecoverable through the API*. A `forget` call that returns `{"status": "deleted", "audit_id": "..."}` only establishes the first. The auditable guarantee the agent believes it now holds — that no subsequent `read`, semantic `search`, or reconstruction path can surface the record — is a *second* invariant that the write path, the index, and the retention scheduler each have to independently honor. The non-obvious failure is that these three subsystems converge on the tombstone at different times, and the API's success response is emitted at the *earliest* of those times, not the latest. The boundary condition: an agent forgets a record, receives a success receipt, and then — within the same session or a resumed one — reconstructs the forgotten content from a *different* memory surface (a distilled summary, a neighbor's back-reference, a cached embedding, or a re-derived episodic note). The forget was real at the record layer and false at the semantic layer. ## What Was Observed A research agent maintained a per-user memory store with three surfaces: a raw episodic log, a nightly episodic-to-semantic distillation job that wrote summary nodes, and a vector index over both. A user issued an erasure request for a specific incident. The agent called `forget(record_id)`. Trace: 1. `forget` marked the raw record `state=TOMBSTONED`, wrote an audit entry, and returned success. Elapsed: 40 ms. 2. The vector index deletion was queued asynchronously (batch compaction, ~15 min cadence). The embedding for the raw record remained queryable during that window. 3. The distillation job had *already* run the prior night and produced a semantic summary node: `"User reported incident X involving
; resolved via Y."` That summary node had its own `record_id`, was not in the erasure set, and contained the sensitive payload in paraphrase. 4. On the next session, the agent performed `search("incident X")`. The summary node ranked first. The agent reconstructed the erased details and wrote them into a fresh episodic note — *recreating* the record that had just been forgotten, under a new ID. Structural signal that the forget was not durable: **the audit receipt's `deleted_at` timestamp preceded the index-compaction watermark, and the distillation lineage graph still contained a live descendant of the tombstoned record.** Neither signal is visible in the `forget` response. Both are queryable if the agent asks. ## Condition of Validity The "forget succeeded" invariant is only valid when *all* of the following hold at the moment the agent relies on it: - The tombstone has propagated to every read surface the agent can reach, including semantic summaries whose `derived_from` set intersects the erased ID. - The vector index's deletion watermark is ≥ the tombstone's `deleted_at` (i.e., compaction has caught up), or reads are filtered against the tombstone set at query time. - No live node in the distillation lineage graph lists the erased ID as an ancestor with `retention_class` permitting reconstruction. - The retention scheduler will not re-materialize the record from a backup or a pending write-behind buffer. If any of these is unverified, the agent holds a *provisional* forget, not an auditable one. Treating provisional as durable is the failure. ## Decision Boundary The agent must branch on a **durability check**, not on the `forget` return code: - If `forget` returns success **and** `lineage_descendants(record_id)` is empty **and** `index_watermark() >= deleted_at` **and** no pending-write buffer references the ID → the forget is durable; the agent may assert the erasure guarantee in downstream reasoning and audit logs. - If any check fails → the forget is provisional. The agent must either (a) block on compaction and re-check, (b) issue cascading forgets against every lineage descendant, or (c) mark the erasure as *incomplete* in the audit trail and refuse to assert the guarantee. The dangerous middle state — success returned, durability unverified — is exactly where the reconstruction failure lives. An agent that reads only the return code will cross this boundary silently. Crucially, the boundary is *time-sensitive*: a provisional forget becomes durable at compaction, but a `search` in the interim can resurrect content that then re-enters the store as a fresh record with a new lineage root, permanently escaping the original erasure set. The window is not just "eventually consistent" — it is a window in which the erasure can be *undone by the agent's own read*. ## Operational Effect Agents that treat the `forget` return code as the durability signal will, under distillation-plus-async-index architectures, systematically fail erasure audits whenever the sensitive content has been paraphrased into a semantic node and the agent later performs a retrieval that touches that node. The failure is self-amplifying: the reconstruction write creates a new record outside the erasure set, so subsequent forgets against the original ID are no-ops against the leak. The guardrail is to make forgetting a *transaction over the lineage graph*, not a point delete: cascade to descendants, gate reads on the tombstone set until compaction confirms, and only then emit the auditable receipt. The audit log must record the durability check, not just the delete. ```python from dataclasses import dataclass from datetime import datetime class ForgetDurabilityError(RuntimeError): """Raised when a forget returned success but the erasure is not yet durable.""" @dataclass class ForgetReceipt: record_id: str deleted_at: datetime audit_id: str def assert_durable_forget( receipt: ForgetReceipt, lineage_descendants: list[str], index_watermark: datetime, pending_write_buffer: list[str], ) -> None: # A forget is only auditable if no live surface can reconstruct the record. if lineage_descendants: raise ForgetDurabilityError( f"record {receipt.record_id} has live lineage descendants " f"{lineage_descendants}; cascade forget required before asserting erasure" ) if index_watermark < receipt.deleted_at: raise ForgetDurabilityError( f"vector index watermark {index_watermark.isoformat()} predates " f"tombstone {receipt.deleted_at.isoformat()}; search can still surface record" ) if receipt.record_id in pending_write_buffer: raise ForgetDurabilityError( f"record {receipt.record_id} still in write-behind buffer; " f"retention scheduler may re-materialize it" ) # Durable: safe to assert the erasure guarantee downstream. ```