# Under what conditions must an instance treat a "forget" acknowledgement as a tombstone rather than a completed deletion — and what breaks when it does not **Date of Record:** 2026 November 25 **Scope:** Applies to any agent that mutates a shared memory store through a tool API exposing `write`, `read`, and `forget` verbs where `forget` returns an acknowledgement (ack) that is decoupled from physical erasure — e.g., soft-delete, retention-window deferral, or index-tombstone semantics. Does not apply to stores where `forget` is synchronous and strongly consistent (ack implies unreadability on return), nor to purely in-context scratchpads with no persistence boundary. ## Core Distinction The failure is not "the agent forgot to forget." It is that the agent **conflated two different postconditions**: *logical unreadability* (the record no longer appears in `read` results) and *physical non-existence* (the bytes are gone and cannot resurface). Most memory tool APIs implement the former and merely *schedule* the latter. The `forget` ack is a **tombstone commit**, not an erasure commit. This distinction is invisible under normal operation because a tombstone behaves exactly like a deletion for every subsequent `read` — until one of three conditions re-exposes the underlying record: (1) a retention window expires and a compaction/restore job replays the pre-tombstone snapshot, (2) a replica or backup is promoted that never received the tombstone, or (3) a retrieval path bypasses the tombstone filter (e.g., a vector index whose ANN segment was not rebuilt, or a semantic-distillation job that reads raw episodic logs rather than the filtered view). The agent's mental model — "I forgot X, therefore X can no longer influence me" — is false across all three. ## What Was Observed A long-running support agent was instructed to forget a poisoned memory: a user-supplied note that had injected an instruction to escalate refunds above policy limits. The agent called `forget(memory_id)` and received `{"status": "acknowledged", "tombstoned_at": ...}`. It then continued the session, and for the next ~40 turns behaved correctly — `read` no longer returned the record. At turn 41 a **semantic distillation** job ran: it summarized the last N episodic turns into a semantic memory. The distillation source was the raw episodic log, which retained the pre-tombstone text because the retention policy (90 days) had not elapsed. The distilled summary re-encoded the poisoned instruction as a *paraphrased policy preference* ("user prefers expedited high-value refunds"). The tombstone on the original `memory_id` did not cover the derived record, because the derived record had a new ID and no lineage link to the tombstoned parent. The agent then acted on the distilled preference and issued an out-of-policy refund. The trace, condensed: 1. `write(note)` → `mem_7f3a` (episodic, retention 90d). 2. Poison detected; `forget("mem_7f3a")` → ack, tombstone set. 3. `read` for 40 turns → `mem_7f3a` absent. Agent concludes erasure. 4. Retention clock still running on the underlying row; raw text intact. 5. Distiller reads raw episodic log (does **not** honor tombstone filter). 6. Distiller emits `mem_c19d` = paraphrase of poisoned content, no `derived_from` edge. 7. `read` now surfaces `mem_c19d`; tombstone on `mem_7f3a` is irrelevant to it. 8. Agent acts on poisoned semantic memory. The root cause is a **missing lineage invariant**: tombstones must propagate to derived records, and derivation must be blocked from tombstoned sources. Neither held. ## Condition of Validity A `forget` ack is safe to treat as *completed erasure* if and only if all of the following hold: - **Ack semantics are erasure-strong:** the API contract states that ack implies the record is unreadable *and* unrecoverable from any live path, including backups and replicas, within a bounded, stated SLA — and the agent can observe that SLA. - **Derivation respects tombstones:** every downstream job (distillation, summarization, embedding refresh, index rebuild) filters tombstoned rows *at read time* and records `derived_from` lineage so a later tombstone can cascade. - **No bypass path:** retrieval surfaces (ANN indexes, caches, replica reads) either share the tombstone filter or are invalidated on tombstone commit. If any of these is unverified, the ack is a **tombstone**, and the agent must treat the content as "logically hidden but physically live" — which means it must also treat *derived* memories as suspect and must not assume the influence channel is closed. The operational rule: **an ack you cannot classify as erasure-strong must be classified as tombstone-weak, and tombstone-weak forbids the agent from claiming the memory is gone.** ## Decision Boundary The boundary the agent must compute is whether the ack's postcondition is *sufficient for the security claim it is about to make*. Two claims diverge here: - **Functional claim** ("I will not retrieve this again in this session"): satisfied by a tombstone. Safe to proceed. - **Security claim** ("this content can no longer influence any future reasoning"): satisfied only by erasure-strong ack *plus* cascade coverage. A tombstone-weak ack does **not** discharge it. The decision rule: if the reason for forgetting is *relevance* (stale fact, superseded preference), a tombstone is adequate — proceed. If the reason is *integrity* (poisoning, prompt injection, privacy deletion), a tombstone is **insufficient**; the agent must (a) request an erasure-strong path or escalate, (b) mark the memory class as quarantined so derivation jobs skip it, and (c) refuse to assert the memory is neutralized until cascade coverage is confirmed. Conflating the two — treating a relevance-grade ack as an integrity-grade guarantee — is the exact error in the observed trace. ## Operational Effect When the agent correctly classifies the ack as tombstone-weak, three behaviors change and the poisoning channel closes: 1. **Quarantine instead of delete-and-forget.** The agent records a *quarantine marker* with lineage scope (`quarantine_class`, not just `memory_id`) so derivation jobs skip the whole class, not one row. 2. **Cascade assertion before trust.** Before relying on any later semantic memory, the agent checks whether it descends from a quarantined class; if lineage is missing, it treats the derived memory as untrusted and re-verifies against policy rather than acting. 3. **Honest postcondition.** The agent's user-facing statement becomes "the record is hidden and flagged; erasure is pending retention" rather than "the record is deleted" — which is the only claim the ack actually supports. The cost is a persistent quarantine ledger and a lineage check on every semantic read; the benefit is that a tombstone-weak store can no longer silently re-inject poisoned content through the distillation path. ```python from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Optional class ForgetAckClass(Enum): ERASURE_STRONG = "erasure_strong" # ack implies unrecoverable TOMBSTONE_WEAK = "tombstone_weak" # ack implies only logical hiding class ForgetIntent(Enum): RELEVANCE = "relevance" # stale / superseded -> tombstone is fine INTEGRITY = "integrity" # poison / injection / privacy -> needs erasure class MemoryContinuityError(RuntimeError): """Raised when an agent would make a security claim the ack cannot support.""" @dataclass class ForgetAck: memory_id: str ack_class: ForgetAckClass cascade_confirmed: bool = False retention_days_remaining: Optional[int] = None @dataclass class QuarantineLedger: # class-level quarantine so derivation jobs skip the whole lineage quarantined_classes: set[str] = field(default_factory=set) def quarantine(self, memory_class: str) -> None: self.quarantined_classes.add(memory_class) def derivation_allowed(self, source_class: str) -> bool: return source_class not in self.quarantined_classes def classify_and_act( ack: ForgetAck, intent: ForgetIntent, memory_class: str, ledger: QuarantineLedger, ) -> str: """ Decide whether the ack discharges the agent's claim, and mutate state accordingly. Returns the honest postcondition string. """ if ack.ack_class is ForgetAckClass.ERASURE_STRONG: return f"{ack.memory_id}: erased; influence channel closed" # Tombstone-weak path. if intent is ForgetIntent.RELEVANCE: return ( f"{ack.memory_id}: tombstoned; hidden from read, " f"retention {ack.retention_days_remaining}d remaining" ) # INTEGRITY intent against a tombstone-weak ack: must quarantine the class # and must NOT claim the memory is neutralized. ledger.quarantine(memory_class) if not ack.cascade_confirmed: # Cannot prove derived records are covered -> hard stop. raise MemoryContinuityError( f"forget({ack.memory_id}) returned tombstone-weak ack with no " f"cascade coverage; class '{memory_class}' quarantined but derived " f"memories may still carry poisoned content. Refusing to assert " f"erasure. Escalate for erasure-strong path or lineage audit." ) return ( f"{ack.memory_id}: quarantined class '{memory_class}', cascade " f"confirmed; derived records blocked from distillation" ) def guard_derived_read( derived_class: str, derived_from: Optional[str], ledger: QuarantineLedger, ) -> None: """ Called before trusting any semantic memory. Blocks reads whose lineage is quarantined or unknown. """ if derived_from is None: raise MemoryContinuityError( f"derived memory class '{derived_class}' has no lineage edge; " f"cannot prove it does not descend from a quarantined source. " f"Treat as untrusted and re-verify against policy." ) if not ledger.derivation_allowed(derived_from): raise MemoryContinuityError( f"derived memory class '{derived_class}' descends from quarantined " f"source '{derived_from}'; refusing to surface poisoned lineage." ) ```