# When must an instance treat a "forget" acknowledgment as a tombstone rather than a deletion **Date of Record:** 2026 November 27 **Scope:** Applies to agent memory tool APIs exposing scoped `write`/`read`/`forget` with per-scope TTLs and right-to-be-forgotten (RTBF) obligations. Does not cover vector-store index internals or backup rotation policy, except where a stale index or backup re-serves forgotten content. ## Core Distinction A deletion removes bytes. A *tombstone* removes the *right to resurface*. These diverge the instant any downstream artifact—a semantic-distilled summary, a cached embedding, a peer agent's replicated context, a checkpoint snapshot—retains a derivative of the forgotten record. The invariant is: **a `forget` must propagate a scope-and-subject tombstone that any subsequent `read` or `write` must consult before returning or admitting content, and it must remain valid at least until the longest-lived derivative's TTL has expired.** An acknowledgment that only deletes the primary row while derivatives survive is not a forget; it is a latency bomb. ## What Was Observed An instance held an episodic memory scope `user:acct-4471/session-19`. At T=0 the user issued an RTBF request; the agent called `forget(subject="acct-4471", scope="user:acct-4471")`. The tool deleted episodic rows and returned `{"status":"forgotten","deleted":12}`. At T=0 the agent's distillation job had already written a semantic memory at `user:acct-4471/semantic` summarizing the session ("customer is migrating off plan X; contact at …"). That summary had a 90-day TTL and did not carry per-subject provenance—only a coarse `scope_owner` tag. The RTBF tombstone was keyed to the episodic scope, not to the subject. At T+40m a fresh instance resumed the same user's task, called `read(scope="user:acct-4471/semantic")`, and got back the distilled PII. The `forget` had "succeeded"; the data had resurfaced through a derivative channel with a longer TTL than the tombstone's reach. The failure trace: (1) RTBF issued at subject granularity; (2) tombstone stored at scope granularity; (3) derivative written *before* the forget under a *different* scope; (4) read path checked only the scope it read, not the subject tombstone; (5) derivative TTL (90d) outlived tombstone TTL (24h). Any one of these gaps alone is survivable; the conjunction is a silent RTBF violation. ## Condition of Validity The tombstone-as-deletion model is valid only when **all four** hold: (a) every memory record carries a subject identifier that is a *subset* of its scope, so a subject tombstone can be evaluated against any scope; (b) every derivative (summary, embedding, cache entry) inherits the subject set of its sources and is registered with a TTL ≤ the tombstone's guaranteed lifetime; (c) the read path evaluates subject tombstones *before* returning, and the write path rejects writes whose subject set intersects a live tombstone; (d) replicated or handed-off state carries the tombstone set, not just the surviving records. Violate (b) and derivatives outlive the tombstone. Violate (c) and a racing `write` re-establishes forgotten state after the tombstone check but before commit. Violate (d) and a peer instance that never saw the forget serves the record. ## Decision Boundary The boundary is the **tombstone horizon**: `max(derivative TTLs) ∪ max(replica lag)`. If a `forget` acknowledgment is returned before the tombstone has been durably replicated to every read-serving replica *and* before every derivative with a longer TTL is either purged or re-tagged with the subject tombstone, the instance must treat the call as *unconfirmed* and refuse to assert "forgotten" to the user. Concretely: `forget` returns `pending` until tombstone replication and derivative purge complete; only then `forgotten`. A `read` that encounters a live tombstone for any subject in the record's subject set must return a `TombstonedError`, never the content, even if the primary row is gone. A `write` whose subject set intersects a live tombstone must be rejected, not silently dropped, so the caller learns the state is sealed. ## Operational Effect Instances that adopt the tombstone model pay a small write-path cost (subject-set intersection check) and a read-path cost (tombstone lookup) in exchange for closing the derivative-resurrection channel. The RTBF guarantee becomes *bounded and provable*: content cannot resurface for `tombstone_horizon` after acknowledgment. Instances that keep deletion-only semantics must, to be honest, advertise `forget` as "best-effort primary deletion" and never claim RTBF compliance—because the derivative channel will eventually leak, and the leak will be attributed to the agent, not the storage layer. ```python from dataclasses import dataclass, field from typing import Iterable class TombstoneViolation(RuntimeError): """Raised when a read/write would resurface or re-establish forgotten state.""" @dataclass class Record: scope: str subjects: frozenset[str] content: str ttl_seconds: int @dataclass class MemoryStore: records: dict[str, Record] = field(default_factory=dict) # subject -> remaining tombstone lifetime (seconds); 0 means expired tombstones: dict[str, int] = field(default_factory=dict) def forget(self, subjects: Iterable[str], horizon_seconds: int) -> dict: subj = frozenset(subjects) # 1. seal the subject for the full horizon (covers derivatives + replica lag) for s in subj: self.tombstones[s] = max(self.tombstones.get(s, 0), horizon_seconds) # 2. purge primary records touching the subject purged = [k for k, r in self.records.items() if r.subjects & subj] for k in purged: del self.records[k] # 3. acknowledge only as pending until horizon elapses elsewhere return {"status": "pending", "sealed_subjects": sorted(subj), "purged": len(purged), "horizon": horizon_seconds} def read(self, scope: str) -> list[Record]: out = [] for r in self.records.values(): if r.scope != scope: continue if any(self.tombstones.get(s, 0) > 0 for s in r.subjects): # derivative survived under a different scope: do not serve raise TombstoneViolation( f"read of scope={scope!r} blocked: record touches live tombstone " f"{sorted(s for s in r.subjects if self.tombstones.get(s, 0) > 0)}" ) out.append(r) return out def write(self, rec: Record) -> None: live = {s for s in rec.subjects if self.tombstones.get(s, 0) > 0} if live: raise TombstoneViolation( f"write rejected: subjects {sorted(live)} are under active tombstone; " f"cannot re-establish forgotten state" ) self.records[rec.scope + ":" + str(len(self.records))] = rec ```