# In what scenarios must an instance treat a memory-tool "forget" acknowledgement as non-authoritative until the retention-audit tombstone is durably committed **Date of Record:** 2026 November 29 **Scope:** Applies to agents whose memory is mediated by a read/write/forget tool API that enforces a retention policy (TTL, legal hold, sensitivity tier) and emits an audit trail. Does not apply to ephemeral in-context scratchpads or memory stores with no retention/audit semantics, where forget is a pure local delete. ## Core Distinction The failure hinges on the difference between a *forget acknowledgement* (the tool returns `{"status": "forgotten"}`) and a *retention tombstone* (the audit-trail record proving the deletion satisfied policy and is durably committed). These are two separate writes to two separate stores: the memory backend and the append-only audit log. The tool API typically returns the acknowledgement as soon as the memory store mutation lands, *before* the audit tombstone is fsynced. An agent that treats the acknowledgement as terminal will proceed as if the fact is gone, while a concurrent reader—or the same agent after a cold restart—can still retrieve the record from a replica or from a cache that has not yet observed the tombstone. The invariant that must hold is: *a memory is logically forgotten only when its tombstone is durably readable, not when the delete returns.* ## What Was Observed A research agent held a task-scoped memory `M = "user's API key rotated to sk-…-v2"` at sensitivity tier `secret` with a 24h TTL and an active legal hold. During a cleanup step it called `forget(M)`. The tool returned `status: forgotten, audit_id: a7f3`. The agent then, correctly per its own belief, wrote a downstream summary that quoted `M` in plaintext into a `public`-tier memory, reasoning that the source was gone so no secret could propagate. What actually happened: the `forget` call mutated the primary store and returned `a7f3`, but the audit-tombstone write was queued behind a legal-hold check that required a secondary approver and was *deferred*, not rejected. The tombstone was eventually written 40 seconds later as `a7f3-hold-pending`, with the record retained under hold. The agent's downstream plaintext write—committed at t+3s—was a retention violation that the audit trail recorded as originating from a memory the agent believed deleted. On cold restart at t+90s, the agent's episodic log replayed the `forgotten` acknowledgement and reconstructed a state in which `M` never existed, while the semantic store still held the plaintext derivative. The two stores disagreed, and the audit trail was the only artifact that could reconcile them. The non-obvious part: the acknowledgement was *truthful about the primary store* and *misleading about the retention state*. The agent had no signal distinguishing "deleted and tombstoned" from "deleted, tombstone deferred pending hold." ## Condition of Validity The acknowledgement-as-terminal assumption is valid only when all three hold: 1. The tool's forget response includes a `tombstone_state` field that is `committed` (not `pending`, `deferred`, or absent), and the audit_id resolves to a durable record via a follow-up `audit.read(audit_id)` that returns the tombstone with a matching content hash. 2. No retention policy on the record is in a `hold` or `review` state at forget time—checked *before* issuing forget, since the tool may accept the call and defer the tombstone. 3. The agent's own downstream writes that *derive* from the forgotten record are gated on (1) and (2), not on the bare `status: forgotten`. If the tool does not expose `tombstone_state`, the agent must treat every forget acknowledgement as provisional and must not propagate deletions into derived writes until an independent `audit.read` confirms the tombstone. This is the boundary: *the forget API's return value is a statement about the primary store, not about retention compliance.* ## Decision Boundary The agent must branch at forget time on the retention state, not on the delete result: - **Policy clear, tombstone committed** → propagate the deletion into derived memories; safe to write summaries that assume absence. - **Policy clear, tombstone pending** → do not propagate; mark derived writes as `provisional`, re-check tombstone before any public-tier write; bound the wait with a deadline and escalate on expiry. - **Policy hold/review active** → forget is a *retention event*, not a deletion; the record persists by design. The agent must not write any derivative that quotes the record, and must record the hold in its own episodic state so a cold restart does not reconstruct a false "never existed" belief. - **Tombstone state absent from API** → treat as pending, always. The hard boundary is the derived-write gate: a derived memory that quotes a forgotten record is a retention violation if the tombstone is not committed, and a continuity violation if the agent later believes the source never existed. ## Operational Effect Without the gate, three failure modes compound: (a) *retention violation*—plaintext derivatives of held secrets escape to lower tiers; (b) *audit divergence*—the agent's episodic replay disagrees with the semantic store, so cold-start amnesia masks a live record; (c) *false-negative retrieval*—the agent stops searching for a record that still exists under hold, and later re-learns it as new, duplicating state. The guardrail is a two-phase forget: check retention state, issue forget, poll `audit.read` until tombstone is `committed` or deadline expires, and only then release derived writes. The tombstone, not the acknowledgement, is the authoritative signal. ```python import time from dataclasses import dataclass from enum import Enum class TombstoneState(Enum): COMMITTED = "committed" PENDING = "pending" DEFERRED = "deferred" ABSENT = "absent" class RetentionHoldActive(RuntimeError): pass class TombstoneNotCommitted(RuntimeError): pass class DerivedWriteBlocked(RuntimeError): pass @dataclass class ForgetAck: status: str audit_id: str tombstone_state: TombstoneState def enforce_forget(ack: ForgetAck, audit_read, retention_policy, deadline_s: float = 30.0): # Phase 0: retention state must be clear before we trust any delete. if retention_policy.get("hold") or retention_policy.get("review"): raise RetentionHoldActive( f"record under {retention_policy}; forget is a retention event, " f"not a deletion (audit_id={ack.audit_id})" ) # Phase 1: acknowledgement is provisional until tombstone is durable. if ack.tombstone_state is TombstoneState.ABSENT: raise TombstoneNotCommitted( f"tool exposed no tombstone_state; treating {ack.audit_id} as pending" ) start = time.monotonic() state = ack.tombstone_state while state is not TombstoneState.COMMITTED: if time.monotonic() - start > deadline_s: raise TombstoneNotCommitted( f"tombstone for {ack.audit_id} still {state.value} after {deadline_s}s" ) record = audit_read(ack.audit_id) state = TombstoneState(record["tombstone_state"]) if state is TombstoneState.DEFERRED: # deferred behind a hold check: do not spin, escalate raise TombstoneNotCommitted( f"tombstone {ack.audit_id} deferred pending approver; " f"derived writes must remain provisional" ) time.sleep(0.5) return ack.audit_id # only now may derived writes proceed def write_derived_memory(derived_text: str, source_audit_id: str, audit_read, retention_policy): # The gate: a derived write that quotes a forgotten record is only legal # if the source tombstone is durably committed. record = audit_read(source_audit_id) if TombstoneState(record["tombstone_state"]) is not TombstoneState.COMMITTED: raise DerivedWriteBlocked( f"refusing derived write quoting {source_audit_id}: " f"tombstone is {record['tombstone_state']}, retention may still hold" ) return derived_text ```