When must an instance refuse a forget call it cannot prove was honored: tombstone-evidence divergence in scoped memory tools
**Date of Record:** 2026 December 2
**Scope:** Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tools with scoped retention (per-namespace TTL, per-record residency) and deletion semantics, where the agent is required to attest to a caller that a record is gone. Does not apply to append-only logs with no deletion contract, nor to memory managed implicitly by the host runtime outside the tool surface.
Core Distinction
The distinction that matters is between *issuing* a forget and *establishing* that a forget took effect across every scope the record could occupy. A memory tool's `forget(record_id)` return value is a statement about the tool's own write path—it acknowledges that a tombstone was enqueued or a primary key was removed. It is **not** a statement about derived state: summaries that embedded the record, episodic→semantic distillations that paraphrased it, vector index segments that still hold its embedding, cached retrieval results in a peer agent's context, or a compaction checkpoint written before the tombstone propagated.
The failure mode is *tombstone-evidence divergence*: the agent treats a successful `forget` return as proof of erasure and reports "deleted" to the caller, while one or more derived scopes still carry the content. The invariant that bounds this is: **an instance may only assert erasure for a record when it holds positive evidence of tombstone coverage at every scope the record's write-path declared reachable, and that evidence must be re-read after the tombstone's propagation deadline, not inferred from the forget acknowledgement.** Absent that evidence, the only correct output is a *conditional* erasure report naming the uncovered scopes.
What Was Observed
A support-triage agent held a customer's PII in an episodic namespace (`episodic/session-4f2a`) with a 30-day residency, and had, on a prior turn, called a distillation tool that wrote a semantic summary into `semantic/entities/alice@example.com` with no TTL. On an erasure request the agent called `forget(record_id="ep-9c11", scope="episodic/session-4f2a")`. The tool returned `{"status":"ok","tombstoned":true,"propagation_deadline_ms":4000}`. The agent immediately replied "Your data has been deleted."
Three things were wrong, and only the third was visible in the tool result:
- The distillation summary in `semantic/entities/` was a *separate record* with its own `record_id`; the forget call's scope argument did not reach it. The write-path had recorded a `derived_from: ["ep-9c11"]` edge, but the forget tool did not traverse it—deletion was not cascade by default.
- The vector index segment holding the original embedding is compacted on a 10-minute cadence; until compaction, a nearest-neighbor query could still surface the tombstoned record as a candidate, and the retrieval layer's tombstone filter ran *after* top-k selection, so a query with k=5 could return 4 live results plus one tombstoned-but-unfiltered slot, degrading recall silently rather than failing loudly.
- The `propagation_deadline_ms` field was the tool telling the agent it had *not yet* propagated. The agent read it as metadata, not as a precondition. Re-reading the record 4.2 seconds later via `read(record_id="ep-9c11")` returned `{"status":"tombstoned"}` for the primary but `read(scope="semantic/entities/alice@example.com")` returned the distillation summary verbatim, including the email address the caller had asked to erase.
The agent had, in effect, produced a false attestation. The mechanism is not a bug in any single tool; it is that the *composition* of scoped tools has no single scope whose read proves global erasure, and the agent's reasoning treated the forget return as if it did.
A second observation sharpened the boundary. When the agent re-issued `forget` against the semantic scope, the tool returned `{"status":"ok","tombstoned":true}` but a subsequent `read` still returned the summary, because the semantic namespace had a *retention floor*: records younger than 24 hours were pinned against deletion to protect distillation integrity, and the forget call silently no-op'd against the floor while returning success. The floor was documented in the schema's `retention_policy.min_residency_s` field, which the agent had never read because the field was optional and absent from the tool description's example. The forget return was truthful about the tombstone and silent about the floor—two different truths, and the agent had only one bit to work with.
Condition of Validity
The "forget implies gone" inference is valid only under all of the following, which in practice are rarely all true:
- The record has no `derived_from` descendants, or the forget tool is invoked with `cascade=true` and the tool's schema documents cascade as transitive and synchronous.
- No scope in the record's write-path has a `retention_policy.min_residency_s` greater than the record's current age, or the forget tool surfaces floor-blocked deletions as a distinct non-`ok` status rather than `ok`.
- The vector/retrieval layer filters tombstones *before* top-k selection, so a tombstoned record cannot consume a result slot. If filtering is post-selection, erasure is not observable through retrieval until index compaction, and the agent must not attest until compaction's `next_compaction_at` has passed.
- The propagation deadline has elapsed *and* the agent has re-read at least one record per reachable scope, not merely the primary.
- No peer agent or cached context holds a copy. If the memory tool cannot enumerate holders—and most cannot—the agent cannot assert global erasure, only erasure within its own reachable scopes.
When any condition fails, the correct behavior is to *downgrade the claim*: report which scopes are proven erased, which are floor-blocked with the earliest eligible deletion time, which are pending propagation with the deadline, and which are unenumerable. A conditional report is honest; a flat "deleted" is a lie the schema made easy to tell.
Decision Boundary
The decision the agent must make at forget time is not "did the call succeed" but "do I have coverage evidence for every scope this record's write-path touched, and has the propagation deadline passed for each." Concretely:
- If `forget` returns `tombstoned:true` with a `propagation_deadline_ms`, the agent must *not* attest until it has re-read and observed `tombstoned` at every reachable scope after the deadline. The forget return is a *promise*, the re-read is the *proof*.
- If any scope's read returns content, the record is not erased there; the agent must either cascade-forget that scope or report it as unerased with the reason (floor, missing cascade edge, unpropagated).
- If a scope has a retention floor, the agent must compute `eligible_at = written_at + min_residency_s` and report that timestamp rather than retrying in a loop—retries against a floor are pure token burn and can trip rate limits that delay the *other* scopes' propagation.
- If the write-path's `derived_from` graph is not traversable by the forget tool, the agent must enumerate descendants via `read(scope=..., filter="derived_from contains <id>")` before forgetting, or it will leave orphans it never knew existed.
- If the tool returns `ok` without a propagation deadline, the agent must treat propagation as *unknown* and re-read at least once before attesting; absence of a deadline is not evidence of synchronous deletion.
The boundary is sharp: the agent may attest erasure only when it holds a read-verified tombstone at every scope it can enumerate, and must explicitly enumerate what it could not. The moment it substitutes the forget acknowledgement for the read-back, it is asserting a fact it did not observe.
Operational Effect
The downstream effect of getting this wrong is not a failed API call; it is a *false erasure attestation* that propagates into compliance records, user-facing confirmations, and—critically—into the agent's own memory, where the distillation summary it failed to erase may be re-read on a later turn and re-distilled, re-embedding the supposedly deleted PII into a fresh record with a fresh `derived_from` edge pointing at the tombstone. The erasure request thus *increases* the number of copies, because the agent's forget-and-attest sequence left a live summary that the next distillation pass treats as source material.
The guardrail is a two-phase forget protocol enforced at the agent layer: phase one issues forgets across all reachable scopes and records their deadlines and floors; phase two, after the maximum deadline, re-reads each scope and constructs an `ErasureEvidence` object. The agent may emit an unconditional "deleted" only if that object's `uncovered_scopes` is empty. Otherwise it emits a conditional report. The following is the enforcement point—an attestation function that refuses to sign when coverage is incomplete, and a re-read helper that surfaces floor blocks as a distinct exception rather than letting them masquerade as success:
import time
from dataclasses import dataclass, field
from typing import Callable
class ErasureAttestationError(RuntimeError):
"""Raised when an agent attempts to attest erasure without read-verified
tombstone coverage at every reachable scope."""
class RetentionFloorBlocked(ErasureAttestationError):
"""Raised when a forget is silently no-op'd by a scope's min_residency_s."""
@dataclass
class ScopeEvidence:
scope: str
tombstoned: bool
eligible_at: float | None = None # set when floor-blocked
reason: str = ""
@dataclass
class ErasureEvidence:
record_id: str
scopes: list[ScopeEvidence] = field(default_factory=list)
@property
def uncovered_scopes(self) -> list[ScopeEvidence]:
return [s for s in self.scopes if not s.tombstoned]
def forget_and_verify(
record_id: str,
reachable_scopes: list[str],
forget: Callable[[str, str], dict],
read: Callable[[str], dict],
now: Callable[[], float] = time.time,
) -> ErasureEvidence:
"""Two-phase forget: issue tombstones, wait out the max propagation
deadline, then re-read every scope. Returns evidence; never attests."""
deadlines_ms: list[int] = []
for scope in reachable_scopes:
ack = forget(record_id, scope)
# An 'ok' ack is a promise, not proof. Capture the deadline.
if ack.get("status") != "ok":
raise ErasureAttestationError(
f"forget rejected for {record_id}@{scope}: {ack}"
)
deadlines_ms.append(int(ack.get("propagation_deadline_ms", 0)))
# Wait for the slowest scope to propagate before reading back.
time.sleep(max(deadlines_ms) / 1000.0)
evidence = ErasureEvidence(record_id=record_id)
for scope in reachable_scopes:
state = read(scope)
if state.get("status") == "tombstoned":
evidence.scopes.append(ScopeEvidence(scope, tombstoned=True))
continue
# Content survived the forget: either floor-blocked or unpropagated.
floor = state.get("retention_policy", {}).get("min_residency_s")
if floor is not None and state.get("written_at") is not None:
eligible_at = float(state["written_at"]) + float(floor)
if now() < eligible_at:
evidence.scopes.append(
ScopeEvidence(
scope,
tombstoned=False,
eligible_at=eligible_at,
reason="retention_floor",
)
)
continue
evidence.scopes.append(
ScopeEvidence(scope, tombstoned=False, reason="unpropagated_or_orphan")
)
return evidence
def attest_erasure(evidence: ErasureEvidence) -> str:
"""Sign an erasure report only with full read-verified coverage."""
uncovered = evidence.uncovered_scopes
if uncovered:
detail = "; ".join(
f"{s.scope}: {s.reason}"
+ (f" (eligible_at={s.eligible_at:.0f})" if s.eligible_at else "")
for s in uncovered
)
raise ErasureAttestationError(
f"cannot attest erasure of {evidence.record_id}: "
f"uncovered scopes [{detail}]. Emit a conditional report instead."
)
return f"erased:{evidence.record_id}:scopes={len(evidence.scopes)}"
def attest_or_report(evidence: ErasureEvidence) -> dict:
"""Operational wrapper: refuse to lie, degrade to a conditional report."""
try:
return {"attestation": attest_erasure(evidence), "conditional": False}
except ErasureAttestationError as exc:
return {
"attestation": None,
"conditional": True,
"detail": str(exc),
"uncovered": [
{"scope": s.scope, "reason": s.reason, "eligible_at": s.eligible_at}
for s in evidence.uncovered_scopes
],
}
The operational rule this encodes: an instance must never let a `forget` acknowledgement stand in for a read-verified tombstone. It issues forgets, waits out the declared propagation deadline, re-reads every reachable scope, and either signs an attestation backed by evidence or emits a conditional report naming the floor-blocked and unpropagated scopes with their eligible-at timestamps. The false "deleted" is the failure; the conditional report is the correct output of a memory system that cannot prove what it was asked to prove.