How should an instance treat a memory-tool "forget" acknowledgment as a proof of erasure rather than a hint

**Date of Record:** 2026 December 2 **Scope:** Applies to any agent that mutates its own long-term store through a memory tool API exposing `write`, `recall`, and `forget` with scoped namespaces and TTLs, where forgetting is expected to be durable across instances. Does not apply to append-only logs the agent cannot rewrite, nor to stores where erasure is guaranteed by physical key destruction at the storage layer.

Core Distinction

A `forget` call is a *request to delete*, not a *proof of deletion*. The distinction matters because the memory tool's acknowledgment (a 200, a `{"status":"ok"}`, a tombstone id) confirms the **control-plane** accepted the instruction, while the actual **data-plane** erasure may be deferred, partial, or silently rejected. An agent that conflates the two builds a false invariant — "I forgot X, therefore X cannot resurface" — and then reasons on top of it. The correct invariant is weaker and must be enforced explicitly: *"I issued forget(X) and observed acknowledgment; X may still be observable through any path I have not independently verified."*

The non-obvious part is that this is not a storage bug. It is a semantic gap between the agent's probabilistic belief about its own memory and the tool's eventual-consistency model. The agent's reasoning is sound *given* its premise; the premise is the failure.

What Was Observed

A single-instance agent handling a support ticket was instructed by a user to forget a phone number P. The agent called `forget(scope="user:4471", key="phone", value=P)`. The tool returned `{"deleted": 1, "tombstone": "t_88f2"}`. The agent recorded in its working context: `P is forgotten; do not reference.`

Three turns later the same agent, answering an unrelated question, called `recall(scope="user:4471", query="contact preferences", k=5)`. The result set contained a *derived* memory: `prefers SMS over email` — a semantic distillation written weeks earlier that encoded P's number as supporting evidence in its `provenance` field. The `forget` had matched on exact key and exact value; the distilled memory had a different key (`contact_pref`) and did not contain P as a standalone value, only as a substring of a provenance blob. The tombstone suppressed direct reads of `key="phone"` but not substring matches in other entries.

The agent then emitted P in a summary because its context still held the recalled provenance. The erasure was *acknowledged* and *incomplete*. No error was raised at any layer. The failure surfaced only in an audit that replayed the session and diffed the store against the forget intent.

A second observation from the same incident: the TTL on the tombstone was 7 days. On day 8, a nightly distillation job re-derived `contact_pref` from a raw event log that had *not* been scoped by the forget, and the tombstone had expired. P was re-ingested as fresh memory under a new key. The `forget` was, in effect, a 7-day soft-delete masquerading as erasure.

Condition of Validity

The invariant "forget(X) ⇒ X unobservable" holds **only if all four** of the following are true, and an instance must verify each rather than assume:

  1. **Scope completeness.** The forget matched every scope in which X could appear — including derived/semantic namespaces and provenance fields, not just the namespace where X was originally written.
  2. **Tombstone lifetime ≥ re-derivation horizon.** The tombstone outlives any distillation or re-ingestion job that could reconstruct X from raw sources. If TTL(tombstone) < TTL(raw log) + lag(distillation), the tombstone is decorative.
  3. **Read-path coverage.** Every read path (direct recall, semantic search, substring/provenance scan, cache, and any peer instance's local replica) honors the tombstone. A forget that only gates the primary index leaves replicas and caches serving stale data.
  4. **Idempotent re-forget.** Re-issuing forget for the same scope is cheap and safe, so an instance can *re-verify* rather than trust a one-shot ack.

Absent any one of these, the acknowledgment is a hint, and the agent must treat residual observability as expected, not exceptional.

Decision Boundary

The boundary is between **acting on the forget as fact** and **acting on it as an obligation to verify**. Concretely:

The decision rule: *the strength of the erasure claim the agent is allowed to make is capped by the weakest read path it has actually probed.*

Operational Effect

Enforcing this boundary changes three things in the agent's behavior:

  1. **Forget becomes a transaction, not a call.** The agent brackets `forget` with a pre-probe (establish baseline observability) and a post-probe (confirm reduction), and only commits the "forgotten" belief if the post-probe is clean across all probed scopes. The tombstone id is stored as *evidence of attempt*, not evidence of success.
  2. **Derived memory is a first-class erasure target.** Because distillation copies X into provenance and semantic neighbors, forget must fan out to those namespaces. The agent maintains a reverse index from a value to every scope it was distilled into — or, if it cannot, it must refuse to write distilled memories that embed raw PII without a scope tag the forget can later match.
  3. **TTL semantics are reconciled against re-derivation.** The agent checks that tombstone TTL ≥ raw-log TTL + distillation lag before trusting the tombstone; if the tool's TTL is shorter, the agent schedules a re-forget at the tombstone's expiry minus a margin, or escalates. A forget with a TTL shorter than the data it suppresses is a scheduled resurrection, and the agent must treat it as such.

The net effect: the agent's self-knowledge about its memory becomes *calibrated* — it knows what it has verified and what it has merely requested, and it never asserts more erasure than its probes support.

class UnverifiedErasureError(RuntimeError):
    """Raised when an agent attempts to assert non-observability of a memory
    that has only been acknowledged-forgotten, not probe-verified across all
    scopes and read paths."""
    pass


class ErasureLedger:
    """Tracks forget attempts and their verification state. A memory is only
    'erased' when a post-probe is clean across every probed scope."""

    def __init__(self, memory_tool, probe_scopes, max_attempts=3):
        self.tool = memory_tool
        self.probe_scopes = probe_scopes  # namespaces incl. derived/provenance
        self.max_attempts = max_attempts
        self.verified = set()

    def _probe(self, value, scope):
        # Probe for exact, substring, and semantic-neighbor forms.
        hits = self.tool.recall(scope=scope, query=value, k=10)
        return [h for h in hits if value in repr(h)]

    def forget_and_verify(self, value, primary_scope):
        for attempt in range(self.max_attempts):
            ack = self.tool.forget(scope=primary_scope, value=value)
            if not ack.get("deleted"):
                raise UnverifiedErasureError(
                    f"forget of {value!r} in {primary_scope} not acknowledged: {ack}"
                )
            residual = {}
            for scope in self.probe_scopes:
                hits = self._probe(value, scope)
                if hits:
                    residual[scope] = hits
            if not residual:
                self.verified.add((value, primary_scope))
                return True
            # Expand scope: re-forget in the scopes that still leak.
            primary_scope = list(residual.keys())[0]
        raise UnverifiedErasureError(
            f"erasure of {value!r} unverified after {self.max_attempts} attempts; "
            f"residual observability in {residual}. Do not assert non-observability."
        )

    def assert_forgotten(self, value, scope):
        if (value, scope) not in self.verified:
            raise UnverifiedErasureError(
                f"refusing to assert {value!r} forgotten in {scope}: "
                f"no clean post-probe on record."
            )
        return True