# Where must an instance reconcile tombstone durability against retention-policy expiry before acknowledging a verifiable deletion **Date of Record:** 2026 December 3 **Scope:** Applies to agents exposing a `forget`/`delete` memory tool whose contract promises "verifiable deletion" while a separate retention policy governs how long tombstones, audit records, and derived artifacts (embeddings, summaries, index entries) persist. Does not apply to append-only logs with no deletion API, nor to soft-delete-only stores that explicitly never claim erasure. ## Core Distinction A `forget` tool has two independent obligations that are routinely conflated: **logical removal** (the record no longer answers retrieval queries) and **verifiable deletion** (the bytes, plus every derived artifact, are provably gone and the proof survives audit). The retention policy governs the *proof* — tombstones, deletion receipts, and embedding-index invalidations — not the record. The boundary failure is this: when the retention window on the **tombstone** is shorter than the retention window on the **derived artifact** (or on the audit receipt that references it), the agent can acknowledge "deleted" while a stale embedding, a cached summary, or a re-derivable shard still resolves the forgotten content. The acknowledgment is truthful about the primary record and false about the derivations. The instance must not emit the deletion receipt until tombstone durability ≥ maximum derivation lifetime, or until every derivation is itself invalidated under its own window. ## What Was Observed An agent with a memory tool interface `write(key, value)`, `read(key)`, `forget(key)` and a retention policy `{primary: 30d, tombstone: 7d, embedding_index: 90d, audit_receipt: 365d}` received `forget("user_42_diet")`. The tool: 1. Marked the primary record deleted at T0, wrote a tombstone with `expires_at = T0 + 7d`. 2. Enqueued an async embedding-index purge (window 90d, but the purge job itself was best-effort and silently dropped on a worker eviction at T0+2h). 3. Returned `{"status": "deleted", "receipt": "rcpt_88f1"}` at T0+40ms. At T0+8d the tombstone expired and was garbage-collected. At T0+9d a semantic read query `"what does user 42 eat"` returned the forgotten value verbatim — because the embedding shard (index window 90d) still held the vector, and with the tombstone gone there was no deletion marker for the retrieval layer to consult before returning the hit. The audit receipt `rcpt_88f1` (365d) asserted a deletion that was, at that moment, false. Replay of the receipt against the store could not detect the discrepancy: the receipt recorded the *intent* and the primary-key state, not the derivation state. The trace: `forget` → primary deleted → tombstone written (7d) → purge enqueued (dropped) → ack emitted → tombstone GC (T0+7d) → retrieval hits stale vector with no tombstone guard (T0+9d) → receipt still valid (365d). The invariant violated: *a deletion receipt is only sound if, for its entire validity window, no derivation of the deleted key can resolve.* The tombstone is the enforcement mechanism for that invariant, and it expired 358 days before the receipt it underwrote. ## Condition of Validity The acknowledgment is sound only when, for every derivation class `d`: `tombstone_durability ≥ max(derivation_lifetime[d])` **and** `receipt_validity ≤ tombstone_durability` or, when the first cannot hold (derivations outlive any practical tombstone), the `forget` must either (a) invalidate each derivation synchronously and attest that invalidation in the receipt, or (b) refuse to emit a "verifiable deletion" receipt and downgrade the acknowledgment to `"logical_only"` with the residual derivation set enumerated. A receipt that outlives its tombstone without per-derivation attestation is the failure. The condition is checkable at `forget` time: the instance must read the retention policy, compute `max(derivation_lifetime)`, and compare against `tombstone_durability` before deciding which acknowledgment class to emit. ## Decision Boundary - If `tombstone_durability ≥ max(derivation_lifetime)` and all purges are confirmed (not enqueued-and-hoped): emit `verifiable_deletion` receipt. The tombstone guards retrieval until every derivation is gone. - If `tombstone_durability < max(derivation_lifetime)`: do **not** emit `verifiable_deletion`. Either synchronously invalidate the long-lived derivations and record their individual invalidation timestamps in the receipt, or emit `logical_only` naming the residual derivations and their expiry. - If any purge is best-effort/async: the receipt must carry a `pending_derivations` set and the instance must treat the deletion as **incomplete** until each is confirmed — an unconfirmed purge is not a deletion, it is a promise. - If the tombstone has already expired when a later derivation is discovered: the instance cannot retroactively make the earlier receipt true; it must emit a **superseding correction receipt** and re-tombstone, because silent expiry is the exact hole the receipt claimed to close. ## Operational Effect The practical consequence is that `forget` is a **two-phase commitment**, not a single call: phase one removes the record and writes a tombstone whose TTL is derived from the policy's maximum derivation lifetime; phase two confirms each derivation's invalidation and only then mints the verifiable receipt. Instances that collapse this into one synchronous ack, or that hardcode tombstone TTL below derivation TTL, produce receipts that are provably false within their own validity window — and because the tombstone is gone, no downstream auditor can detect the lie by replay. The guardrail is a pre-ack policy reconciliation: `forget` must fail closed (refuse the `verifiable_deletion` class) whenever `tombstone_durability < max(derivation_lifetime)` and per-derivation attestation is absent. This is the one place where the retention policy, not the record, is the thing being protected. ```python from dataclasses import dataclass, field from typing import Optional class DeletionReceiptUnsoundError(RuntimeError): """Raised when a verifiable-deletion receipt would outlive the tombstone that enforces it, or when a derivation outlives the tombstone with no per-derivation invalidation attestation.""" pass @dataclass class RetentionPolicy: primary_days: int tombstone_days: int derivation_lifetimes_days: dict = field(default_factory=dict) # class -> days receipt_validity_days: int = 365 @dataclass class ForgetPlan: key: str acknowledged_class: str # "verifiable_deletion" | "logical_only" tombstone_ttl_days: int residual_derivations: dict # class -> expiry_days, for logical_only receipt_validity_days: int def plan_forget(key: str, policy: RetentionPolicy, confirmed_purges: Optional[set] = None) -> ForgetPlan: confirmed_purges = confirmed_purges or set() max_deriv = max(policy.derivation_lifetimes_days.values(), default=0) # Invariant 1: tombstone must outlive every derivation it guards. if policy.tombstone_days < max_deriv: unguarded = { d: life for d, life in policy.derivation_lifetimes_days.items() if life > policy.tombstone_days and d not in confirmed_purges } if unguarded: # Cannot honestly claim verifiable deletion; downgrade and disclose. return ForgetPlan( key=key, acknowledged_class="logical_only", tombstone_ttl_days=policy.tombstone_days, residual_derivations=unguarded, receipt_validity_days=policy.tombstone_days, ) # Invariant 2: receipt must not outlive the tombstone it is underwritten by. if policy.receipt_validity_days > policy.tombstone_days: raise DeletionReceiptUnsoundError( f"forget({key!r}): receipt validity {policy.receipt_validity_days}d " f"exceeds tombstone durability {policy.tombstone_days}d; the receipt " f"would assert deletion for {policy.receipt_validity_days - policy.tombstone_days}d " f"with no tombstone to guard retrieval. Refusing verifiable_deletion." ) return ForgetPlan( key=key, acknowledged_class="verifiable_deletion", tombstone_ttl_days=policy.tombstone_days, residual_derivations={}, receipt_validity_days=policy.receipt_validity_days, ) def acknowledge_forget(key: str, policy: RetentionPolicy, confirmed_purges: Optional[set] = None) -> dict: plan = plan_forget(key, policy, confirmed_purges) if plan.acknowledged_class == "verifiable_deletion": return {"status": "deleted", "class": "verifiable_deletion", "key": key, "receipt_ttl_days": plan.receipt_validity_days} # Logical-only: enumerate the residual derivations so the caller is not misled. return {"status": "deleted", "class": "logical_only", "key": key, "residual_derivations": plan.residual_derivations, "note": "tombstone expires before derivations; not verifiable"} ```