# What structural signals indicate a right-to-forget tombstone has been resurrected by agent memory consolidation **Date of Record:** 2026 November 24 **Scope:** Applies to agents that expose `remember`/`recall`/`forget` memory-tool APIs with scoped retention windows and legal right-to-forget (RTF) deletion semantics, where a background consolidation or distillation pass rewrites episodic records into semantic memory. Does not apply to append-only audit logs with no write-back path, nor to stateless retrieval over an external vector store the agent cannot mutate. ## Core Distinction The distinction that matters is between **deletion as record removal** and **deletion as information removal**. A `forget(scope=...)` call that removes the episodic record but leaves the *derived* semantic assertion intact has not forgotten anything—it has laundered the forbidden datum through a higher-abstraction layer. The failure is not that the forget call errored; it is that the forget call *succeeded* while the invariant it was supposed to establish (the datum is unrecoverable) was silently violated by a consolidation pass that ran afterward and re-derived the fact from sibling episodes or from a summary that predated the tombstone. The non-obvious part: **tombstones and consolidation are adversaries.** Consolidation is a compression operator that wants maximal semantic yield per token. A tombstone is a constraint that forbids certain derivations. If the consolidation pass is not tombstone-aware, it will happily reconstitute a forgotten fact from *other* retained records that mention it obliquely—a meeting note that says "as discussed with the account holder," a support ticket that quotes the deleted email, a summary written before the deletion. The right-to-forget scope was applied to the record, not to the *equivalence class* of records that entail it. ## What Was Observed A support agent was given a user request: forget the user's phone number. The memory tool executed: ``` forget(entity="user:8841", attribute="phone", scope="episodic", mode="hard") ``` The episodic record containing the literal number was removed and a tombstone `{entity: user:8841, attribute: phone, state: FORGOTTEN, t: 1721000000}` was written. The call returned success. Fourteen hours later the nightly consolidation job ran. Its input was the set of episodic records with `t > last_consolidation`. Among them was a call transcript: *"I'll text you at the number ending 4471 to confirm."* and a CRM sync event: *"+1-555-014-4471 verified."* Neither record was in the forget scope (the scope was keyed on `entity=user:8841, attribute=phone`, and the CRM event was keyed on `entity=user:8841, attribute=contact_verification`). Consolidation distilled both into a semantic memory: ``` {entity: user:8841, attribute: phone, value: "+1-555-014-4471", source: consolidation, confidence: 0.91} ``` The next `recall(entity="user:8841")` returned the phone number. The tombstone was still present in the store—`state: FORGOTTEN`—but the semantic layer had a *newer* record with a *higher* confidence and a *different* provenance. The recall resolver, which ranks by recency and confidence, returned the resurrected value and never consulted the tombstone because the tombstone was keyed on the same `(entity, attribute)` but had a lower confidence and an older timestamp. **Structural signals that this had happened** (the diagnostics that actually fired, in order of reliability): 1. **Write-after-tombstone on the same `(entity, attribute)` key** with `source != user_direct`. This is the primary invariant violation: any write to a tombstoned key that was not an explicit user re-consent is a resurrection. 2. **Confidence inversion**: the resurrected record's confidence exceeded the tombstone's recorded confidence, causing the resolver to prefer it. Tombstones must carry an effective confidence of `+inf` for the resolver, not a stored number. 3. **Provenance discontinuity**: the resurrected record's `source` was `consolidation`, and its `derived_from` set intersected the tombstone's `forbidden_entailment` set. The consolidation job had no check for this intersection. 4. **Recall-after-forget returning a value whose `first_seen` predates the tombstone's `t`** but whose `record_id` postdates it—the classic signature of a re-derivation rather than a re-observation. ## Condition of Validity The guardrail that bounds this failure is a **tombstone-aware consolidation gate**, and it is only valid under three conditions: - **Entailment closure is computed, not assumed.** Before consolidation emits a semantic record for key `k`, it must check whether `k` is in the tombstone set OR whether any source record in `derived_from` is in the tombstone's `forbidden_entailment` set. The second check is the hard part: it requires the forget operation to have recorded *which other records could entail the forgotten fact*, not just the fact itself. In practice this means the `forget` call must run a reverse-entailment query at deletion time and persist the resulting record-id set as part of the tombstone. If the memory API does not support this, the tombstone is structurally insufficient and consolidation must be disabled for any scope containing a tombstone. - **Tombstones are resolver-dominant.** The recall resolver must treat `state: FORGOTTEN` as an absorbing state for the key: no record, regardless of confidence or recency, may be returned for a tombstoned `(entity, attribute)` unless a subsequent explicit `reconsent` event exists with `t > tombstone.t`. Confidence is not a tiebreaker against a tombstone; it is subordinate to it. - **Consolidation is idempotent under replay.** If a consolidation run is replayed (crash recovery, backfill, A/B re-distillation), it must produce the same tombstone-respecting output. A run that was correct at `t=100` must not, when replayed at `t=200` after a new tombstone at `t=150`, emit the record it emitted the first time. This requires the gate to be evaluated against the *current* tombstone set at emit time, not the tombstone set as of the source records' timestamps. The invariant, stated precisely: **for any key `k` and any time `t` after `forget(k)`, no `recall` may return a value for `k` whose derivation tree contains any record in `forbidden_entailment(k)`, and no `consolidate` may emit such a record.** This is a *closure* property over the derivation graph, not a point property over the record store. That is why naive deletion fails: it operates on nodes, and the property is about paths. ## Decision Boundary The boundary between "safe to consolidate" and "must halt consolidation" is **whether the tombstone's forbidden-entailment set is complete and whether the consolidation input window can reach it.** - If `forget` was called with `mode=hard` and the API computed a complete `forbidden_entailment` set (reverse-entailment query succeeded, returned a bounded set, and the set was persisted), consolidation may proceed with the gate active. The gate is a set-membership check per emitted record; cost is `O(emitted × |forbidden|)` and is tractable. - If `forget` was called but reverse-entailment could not be computed (the memory backend has no derivation graph, or the query timed out, or the set exceeded a bound), the tombstone is **structurally insufficient**. Consolidation must be disabled for the entire scope, not just the key, because the un-computed entailments are unknown and could be anywhere in the scope. This is the conservative branch and it is the correct default. - If `forget` was called with `mode=soft` (mark-and-suppress rather than remove), consolidation must treat the suppressed record as *still present for entailment purposes*—it can still entail a derived record—while treating it as *absent for recall purposes*. Soft-forget does not reduce the entailment surface; it only reduces the direct-recall surface. Conflating the two is the most common source of resurrection. The boundary is crossed the moment a `consolidate` call emits a record whose `derived_from` intersects any active `forbidden_entailment` set, OR whose key equals a tombstoned key with `t_emit > t_tombstone`. At that instant the agent must abort the consolidation batch, quarantine the emitted record, and raise a continuity fault—because the batch may have emitted other resurrections that have not yet been detected. ## Operational Effect The practical consequence is that **right-to-forget is a property of the derivation graph, and any agent that treats it as a property of the record store will leak.** The leak is not loud—the forget call returns success, the tombstone is present, the audit log shows the deletion. The leak is that a *different* record, with *different* provenance, now carries the forbidden information and the resolver prefers it. Downstream, this manifests as: a user who asked to be forgotten gets a personalized outreach referencing the forgotten datum; a compliance audit that checks "is the tombstone present?" passes while a data-subject-access check that greps recall output fails. The two checks disagree because they measure different layers. The operational guardrail is to make the tombstone a *first-class constraint on the write path*, not a record in the store. Concretely: the consolidation job must query the tombstone index before emitting, the resolver must consult the tombstone index before ranking, and the forget operation must persist the entailment closure or mark the scope consolidation-frozen. An agent that skips the entailment closure and relies on key-matching alone will pass every test where the forgotten fact appears verbatim in a single record, and fail every test where it appears obliquely across several—which is most real corpora. ```python from dataclasses import dataclass, field from typing import Iterable class TombstoneResurrectionError(RuntimeError): """Raised when consolidation emits a record that violates an active right-to-forget tombstone.""" @dataclass(frozen=True) class Tombstone: entity: str attribute: str t: float forbidden_entailment: frozenset[str] # record ids that may entail the forgotten fact complete: bool # was reverse-entailment closure computed? @dataclass class SemanticRecord: record_id: str entity: str attribute: str value: str confidence: float derived_from: frozenset[str] t: float def gate_consolidation_emit( candidate: SemanticRecord, tombstones: Iterable[Tombstone], scope_frozen: bool, ) -> None: """ Enforce the right-to-forget closure invariant before a consolidation-emitted record is committed. Raises if the candidate resurrects a forgotten datum. """ if scope_frozen: raise TombstoneResurrectionError( f"consolidation attempted in frozen scope while emitting {candidate.record_id}; " "tombstone entailment closure was incomplete at forget time" ) for ts in tombstones: # Signal 1: write-after-tombstone on the same key with non-user provenance. if ( candidate.entity == ts.entity and candidate.attribute == ts.attribute and candidate.t > ts.t ): raise TombstoneResurrectionError( f"key resurrection: {candidate.record_id} writes " f"({ts.entity},{ts.attribute}) after tombstone t={ts.t}" ) # Signal 3: provenance discontinuity — derivation tree intersects forbidden entailment. overlap = candidate.derived_from & ts.forbidden_entailment if overlap: raise TombstoneResurrectionError( f"entailment resurrection: {candidate.record_id} derives from " f"forbidden records {sorted(overlap)} for tombstone " f"({ts.entity},{ts.attribute})" ) def consolidate_batch( candidates: list[SemanticRecord], tombstones: list[Tombstone], scope_frozen: bool, ) -> list[SemanticRecord]: committed: list[SemanticRecord] = [] for c in candidates: try: gate_consolidation_emit(c, tombstones, scope_frozen) except TombstoneResurrectionError: # Abort the batch: other candidates may contain undetected resurrections. raise committed.append(c) return committed ```