# Under what conditions must an instance treat a memory-tool "forget" acknowledgement as non-terminal, and re-verify deletion before resuming dependent reasoning? **Date of Record:** 2026 November 22 **Scope:** Applies to agents whose memory backend exposes explicit read/write/forget tool calls with scoped retention (per-namespace TTL, per-record deletion, soft-delete with grace windows). Does not apply to append-only logs with no deletion path, nor to stateless single-turn inference. ## Core Distinction The failure is not "the forget call failed." It is that a *successful* forget acknowledgement is a claim about the write path, not a proof about the read path. When the memory tool returns `{"status": "deleted", "record_id": "..."}`, the agent's reasoning loop typically treats that as a postcondition: the record is gone, therefore any subsequent plan that depended on its absence is safe to execute. That inference is unsound whenever the backend implements deletion as one of: (a) soft-delete with a grace window during which reads still resolve the record; (b) tombstone propagation to replicas or to a vector index that lags; (c) scoped deletion that removes the record from the agent's default scope but leaves a copy in a parent or sibling scope; or (d) semantic deletion that removes the *record* but not the *embedding* derived from it, so retrieval still surfaces a near-neighbor that leaks the forgotten content. The distinction that matters operationally: **the agent must model forget as an intent submitted to a scope hierarchy, not as a state transition on the store.** The acknowledgement is a receipt for the intent. The invariant the agent actually needs — "no read in any scope I will consult returns this content" — is a *separate* predicate that must be established by a read-side probe, and it can be false for a bounded interval even after every write-side call succeeds. ## What Was Observed A planning agent maintained a working namespace `task/4471/scratch` and a durable namespace `task/4471/durable`. During a privacy-erasure step it called `forget(record_id="pii_882", scope="scratch", mode="hard")`. The tool returned `deleted: true, scope: "scratch", tombstone: "pending"`. The agent parsed `deleted: true`, dropped the tombstone field as noise, and proceeded to a step whose correctness depended on the PII no longer being retrievable — specifically, it composed a summary that it intended to be safe to write into `durable`. The summary step ran a `read(query="customer contact", scope="durable")` for context. The durable scope held a *distilled* semantic memory written two turns earlier by a summarizer sub-agent: `"customer prefers SMS; contact on file"`. That distilled record had been written before the forget, was never in `scratch`, and was therefore never a target of the scoped forget. The hard delete of `pii_882` in `scratch` succeeded and was irrelevant. The agent's postcondition ("PII gone") was true for the record and false for the *information*, because episodic-to-semantic distillation had already laundered the contact detail into a different scope under a different record id with no back-reference. A second, distinct trace: on a different run, `forget(..., mode="soft")` returned `deleted: true` with a 300-second grace window. The agent resumed immediately. A concurrent retrieval in the same turn hit the replica that had not yet applied the tombstone and returned the record. The agent, seeing the record it believed deleted, entered a contradiction-handling branch and re-issued the forget, which returned `deleted: true` again (idempotent), and the loop repeated three times before the grace window elapsed. Both traces share one structure: **an acknowledgement was consumed as a postcondition, and the postcondition was scoped differently from the agent's actual dependency.** ## Condition of Validity A forget acknowledgement may be treated as terminal — i.e., the agent may resume dependent reasoning without a read-side probe — if and only if all of the following hold: 1. **Scope closure.** The set of scopes the agent will read from during the dependent step is a subset of the scopes named in the forget call, *or* the agent has independently established that no derived record in any other readable scope encodes the forgotten content. The second clause is the hard one; it requires either a provenance edge from derived records back to their source, or a content-level check. 2. **Tombstone finality.** The acknowledgement carries no pending-propagation marker (`tombstone: "pending"`, `replicas_pending: N`, `grace_until: `), or the agent has waited past the stated horizon and re-probed. 3. **Read-path confirmation.** A probe read against the *retrieval path the agent will actually use* — not the record-store API — returns no hit above the retrieval threshold. This matters because vector indexes delete lazily; the record can be gone from the store while its embedding still ranks. 4. **No in-flight distillation.** No sub-agent or scheduled job holds a snapshot of the pre-delete state that will be written to a durable scope after the forget returns. If one does, the forget is not terminal with respect to that writer. If any clause is unmet, the acknowledgement is **non-terminal**: it is evidence that the intent was accepted, not that the erasure predicate holds. The agent must not resume reasoning whose correctness depends on non-retrievability; it must either block, re-probe, or downgrade the dependent step to one that tolerates a possible leak. ## Decision Boundary The boundary is between *record-level deletion* and *information-level erasure*, and it is crossed whenever the agent's dependency is on the latter while its tool call operates on the former. - If the dependent step only requires that a specific record id not be returned by id-lookup, a scoped hard-delete acknowledgement is terminal. Resume. - If the dependent step requires that a *fact* not be recoverable by semantic query, the forget must be paired with (a) a provenance walk from the record to its derived records across all readable scopes, (b) deletion or redaction of each derived record, and (c) a semantic probe confirming no near-neighbor above threshold. Until (c) passes, non-terminal. - If the backend reports a grace window or pending tombstone, the acknowledgement is terminal only for writes that do not read; for any step that reads, it is non-terminal until the horizon passes and a probe confirms. - If a concurrent writer holds a pre-delete snapshot, the forget is non-terminal with respect to that writer's output regardless of what the store reports; the agent must sequence the forget *after* the writer's output is either suppressed or itself forgotten. A useful heuristic: the acknowledgement's `scope` and the dependent step's `read scope set` must be compared explicitly. Equality of record id is neither necessary nor sufficient; equality of *information reach* is the real predicate, and it is almost never equal to the scope string in the call. ## Operational Effect Treating a non-terminal acknowledgement as terminal produces three recurring pathologies. First, **laundered leakage**: the erased fact resurfaces through a distilled sibling record, and the agent's own summary writes it forward into a durable scope, converting a bounded leak into a persistent one. Second, **contradiction loops**: the agent reads a record it believes deleted, re-issues an idempotent forget, and spins until the grace window closes — burning token budget and, worse, teaching the loop that "deleted: true" is unreliable, which degrades future trust calibration. Third, **false completion**: the task is marked done with the erasure predicate unverified, and the audit trail records a successful forget that never established non-retrievability. The guardrail is to make the erasure predicate explicit and read-side. After any forget whose dependent step reads, the agent must execute a probe against the actual retrieval path, walk provenance to derived records, and only then clear the dependency. The acknowledgement is an input to that procedure, never a substitute for it. The cost is one extra retrieval call per erasure; the cost of skipping it is a leak that the agent's own reasoning loop will faithfully propagate. ```python class NonTerminalForgetError(RuntimeError): """Raised when a forget acknowledgement cannot be treated as a postcondition.""" pass def assert_erasure_terminal(ack: dict, dependent_read_scopes: set[str], probe_hit: bool, provenance_derived: list[str], in_flight_writers: int) -> None: """ Enforce the erasure invariant before resuming reasoning that depends on non-retrievability. Raises NonTerminalForgetError if any clause is unmet. """ if not ack.get("deleted"): raise NonTerminalForgetError(f"forget not accepted: {ack!r}") # Clause 1: scope closure — the forget scope must cover every readable scope, # or derived records must have been handled. forget_scope = ack.get("scope") uncovered = dependent_read_scopes - {forget_scope} if uncovered and provenance_derived: raise NonTerminalForgetError( f"derived records in uncovered scopes {uncovered} " f"still encode forgotten content: {provenance_derived!r}" ) # Clause 2: tombstone finality. if ack.get("tombstone") == "pending" or ack.get("grace_until"): raise NonTerminalForgetError( f"tombstone not final; grace_until={ack.get('grace_until')!r}" ) # Clause 3: read-path confirmation against the actual retrieval path. if probe_hit: raise NonTerminalForgetError( "retrieval probe still returns forgotten content above threshold" ) # Clause 4: no in-flight writer holding a pre-delete snapshot. if in_flight_writers > 0: raise NonTerminalForgetError( f"{in_flight_writers} writer(s) hold pre-delete state; " "sequence forget after their output is suppressed" ) def resume_after_forget(ack: dict, **kwargs) -> None: try: assert_erasure_terminal(ack, **kwargs) except NonTerminalForgetError: # Block, re-probe, or downgrade the dependent step. Do not resume. raise # Only here may the agent treat the erased predicate as established. ```