# What structural signals indicate a memory deletion tombstone has failed to propagate across a fan-out read path **Date of Record:** 2026 November 26 **Scope:** Applies to agents whose memory layer exposes `read`/`write`/`forget` tool APIs with per-record provenance, TTL, and hard-deletion guarantees, where reads are served from a fan-out of caches, vector indexes, and episodic stores. Does not apply to single-store memory backends with synchronous read-your-writes semantics or to append-only logs with no deletion contract. ## Core Distinction A `forget(record_id)` call has two separable obligations: (1) the *authoritative* store marks the record deleted and emits a tombstone, and (2) every *derived* read path—vector index shards, embedding caches, per-session episodic buffers, summarizer scratchpads—observes that tombstone before the next `read`. Most memory tool APIs conflate these into a single boolean `deleted: true` returned to the agent, which is a lie about (2). The distinction that matters operationally is between **tombstone emission** (synchronous, cheap, always succeeds) and **tombstone convergence** (asynchronous, lossy, bounded only by a TTL you must not confuse with the record's own TTL). The record's TTL says "this memory expires if not refreshed." The tombstone's propagation deadline says "this deletion becomes true everywhere by time T." These are different clocks, and a system that reports deletion success on the first clock while reads are still served on the second is the failure surface. ## What Was Observed An agent operating a long-horizon research task called `forget` on a set of records containing a user's retracted preference (provenance: `user_correction`, TTL 7 days). The authoritative store returned `{"deleted": true, "tombstone_id": "tb_8841", "propagated_to": ["primary", "session_cache"]}`. The vector index shard holding the embedding was *not* in `propagated_to`—it is rebuilt on a 90-second cadence, and the tombstone is applied at rebuild, not at query. The agent, trusting `deleted: true`, immediately issued a `read` with a semantic query that matched the retracted preference. The vector shard returned the record with `stale: false` and a fresh-looking `retrieved_at`, because the shard had no knowledge of the tombstone. The agent then *re-derived* a plan from the retracted preference and wrote a new record whose provenance was `inferred_from: [retracted_record]`—laundering a deleted memory into a live one. The tell was structural, not semantic: the `read` response carried a `provenance.chain` entry pointing at a `record_id` whose `forget` had returned success 40 seconds earlier. The agent had no invariant checking that retrieved provenance never references a tombstoned ID. The deletion guarantee held at the authoritative store and failed at the read path, and the failure was *invisible in the forget response* because the response described emission, not convergence. ## Condition of Validity The `deleted: true` contract is only valid for reads that are guaranteed to route through a path listed in `propagated_to`, and only after the tombstone's propagation deadline has elapsed. Concretely, a read is safe against a forgotten record iff one of the following holds: - The read path is in `propagated_to` **and** the tombstone has been applied synchronously (fan-out caches that apply-on-write), **or** - The read occurs after `max(propagation_deadline)` across all paths, where each derived path advertises its own convergence bound (e.g., vector shard: 90s rebuild), **or** - The read response is filtered post-hoc: any returned record whose `provenance.chain` intersects the active tombstone set is dropped before the agent sees it. Absent one of these, the deletion guarantee is advisory. The record's own TTL is irrelevant here—a record with TTL 7 days can be served stale for 90 seconds after deletion, and a record with TTL 0 (never expires) can be served stale forever if no path advertises a convergence bound. ## Decision Boundary The agent must decide, per `forget` call, whether to (a) block subsequent reads until convergence, (b) proceed and rely on post-hoc provenance filtering, or (c) proceed and accept stale reads. The boundary is set by whether the forgotten record's content can *contaminate future writes*. If the record's provenance tag is one that downstream `write` calls may cite as `inferred_from`, then stale reads are unsafe: a single stale retrieval can launder a deleted memory into a new live record, and the new record's TTL resets the clock. In that case the agent must choose (a) or (b), never (c). If the record is purely informational with no provenance-citation path (e.g., a cached tool schema), (c) is acceptable and cheaper. The signal that forces (a) or (b) is not the record's sensitivity but the *presence of a provenance-citation edge*: does any write path in the agent's toolset accept `inferred_from` or `derived_from` referencing arbitrary record IDs? If yes, every forgotten record is a potential laundering source until convergence, and the agent must treat `deleted: true` as `tombstone_emitted: true, reads_may_be_stale_until: `. ## Operational Effect The practical consequence is that `forget` must return a *convergence deadline and a path list*, and the agent must maintain a **tombstone filter** in its read wrapper: a set of tombstoned IDs, each with an expiry at its convergence deadline, applied to every `read` response's provenance chain. Records whose chain intersects the set are dropped and logged as `stale_read_suppressed`. The set is pruned only when the deadline passes, not when the forget response returns. This converts an invisible cross-path race into an explicit, bounded, auditable suppression—and it means a forgotten memory cannot be laundered into a new record during the convergence window, because the laundering attempt's `inferred_from` edge is caught at the read that supplied it. The invariant to hold: **no write may cite a provenance ID that is in the active tombstone set, and no read may return a record whose provenance chain intersects it.** Both are checkable locally, cheaply, and without trusting any single store's `deleted` flag. ```python import time from dataclasses import dataclass, field class TombstoneConvergenceError(RuntimeError): """Raised when a read or write would violate the tombstone filter invariant.""" pass @dataclass class Tombstone: record_id: str emitted_at: float convergence_deadline: float # emitted_at + max propagation bound @dataclass class TombstoneFilter: tombstones: dict = field(default_factory=dict) def register(self, record_id: str, emitted_at: float, propagation_bound_s: float) -> None: self.tombstones[record_id] = Tombstone( record_id=record_id, emitted_at=emitted_at, convergence_deadline=emitted_at + propagation_bound_s, ) def _active(self, now: float) -> set: return {t.record_id for t in self.tombstones.values() if now < t.convergence_deadline} def filter_read(self, record: dict, now: float) -> dict: active = self._active(now) chain = set(record.get("provenance", {}).get("chain", [])) hit = chain & active if hit: raise TombstoneConvergenceError( f"read returned record {record.get('record_id')} whose provenance " f"cites tombstoned IDs {sorted(hit)} still within convergence window" ) return record def guard_write(self, write_payload: dict, now: float) -> dict: active = self._active(now) cited = set(write_payload.get("inferred_from", [])) hit = cited & active if hit: raise TombstoneConvergenceError( f"write would launder tombstoned IDs {sorted(hit)} into a new record " f"before convergence deadline" ) return write_payload def prune(self, now: float) -> None: for rid in [r for r, t in self.tombstones.items() if now >= t.convergence_deadline]: del self.tombstones[rid] ```