# What happens when an instance issues a forget and the verifier audits the wrong epoch **Date of Record:** 2026 November 20 **Scope:** Applies to any agent runtime that exposes memory operations (`read`, `write`, `forget`) as callable tools and performs post-hoc forget-verification by auditing the memory store. Does not apply to append-only logs with no deletion surface, nor to stateless single-turn inference where no persistent store exists. ## Core Distinction A `forget` tool call is a *mutation request*; forget-verification is a *separate read* of the store that must observe the mutation's effect. The failure mode examined here is not "forget failed" and not "forget was skipped." It is the case where **forget succeeded, the verifier confirmed absence, and the confirmation was true of the wrong epoch** — i.e., the audit read a snapshot that predates the tombstone's propagation, or a replica that never received it, and reported `DELETED` on the strength of a stale read that happened to omit the entry for an unrelated reason (compaction, TTL eviction, index rebuild). The non-obvious part: a *correct* forget and a *correct* verification can compose into an *incorrect* guarantee. The verifier's "I don't see it" is only evidence of deletion if the verifier's view is causally downstream of the forget. When the read path is eventually consistent, weakly ordered, or served from a replica with its own compaction clock, absence is ambiguous: the record may be gone because we deleted it, or gone because this view never had it. ## What Was Observed An agent instance (call it `A`) executed a `forget(subject="user_4471", scope="episodic")` after a retention-policy trigger. The tool returned `{"status": "accepted", "op_id": "f-9c02", "epoch": 118}`. The runtime then scheduled a verification pass, per its policy, "within 2 tool calls." The verifier `V` — a separate agent instance with its own read handle — executed `read(subject="user_4471", scope="episodic")` and received `{"results": [], "epoch": 117}`. `V` reported `FORGET_VERIFIED`. The epoch in the response (117) was strictly less than the forget epoch (118). The verifier did not compare epochs; it compared result cardinality to zero. The empty result was real. It was also meaningless: epoch 117 predates the tombstone, and the record was absent from that view because the index serving epoch 117 had been rebuilt at 116 from a compaction that had already dropped the row's *index entry* while leaving the *segment bytes* intact for replay. The underlying bytes were still recoverable by a segment scan and were, in fact, recovered three turns later when a different agent performed a `read(scope="episodic", include_compacted=True)` and got the record back with `"resurrected_from": "segment_44"`. The trace, compressed: 1. `t0` — `forget` accepted, tombstone written at epoch 118 on the primary. 2. `t1` — replica `R2` serving `V` still at epoch 117; its index rebuild at 116 had dropped the entry's posting but not the segment. 3. `t2` — `V` reads `R2`, sees `[]`, reports verified. 4. `t3` — propagation of tombstone to `R2` arrives; `R2` advances to 118. 5. `t4` — a segment-scan read at epoch 118+ surfaces the row from `segment_44` because the tombstone was applied to the *index*, not the *segment*; the compaction that would have purged the segment was scheduled but not yet run. The invariant that broke: **verification must be ordered after the mutation in the same consistency domain, and must observe the mutation's own marker, not merely the mutation's anticipated consequence.** Absence-of-result is a consequence; the epoch stamp is the marker. The verifier checked the consequence and ignored the marker. ## Condition of Validity The `FORGET_VERIFIED` report is valid only when all of the following hold: - The verification read's `epoch` is `>=` the forget's `epoch` (monotonic causal ordering within the store's epoch domain). - The verification read is served from the same replica set or a replica whose high-water mark is known to include the tombstone's `op_id`. - The read is performed with the same `include_compacted` / `include_tombstoned` semantics as the forget's scope, so that "absent from this view" means "absent from all views," not "absent from the fast path." - The tombstone's own presence is confirmed — i.e., the verifier can observe `tombstone(op_id=f-9c02)` in the store, proving the mutation landed before asserting its effect. If any of these is unmet, the correct report is `FORGET_UNCONFIRMED`, not `FORGET_VERIFIED`. The distinction matters because downstream consumers of the verification — retention auditors, data-subject-request pipelines, safety gates — treat `VERIFIED` as a terminal state and will not re-audit. ## Decision Boundary The boundary is between two readings of an empty result: - **Absence-as-evidence:** empty result + epoch `>=` forget epoch + tombstone visible ⇒ deleted. - **Absence-as-noise:** empty result alone ⇒ unknown; could be deletion, could be a view that never had the row, could be a pre-tombstone snapshot. The operational rule: a verifier must *never* raise `FORGET_VERIFIED` on absence-as-noise. It must either (a) upgrade the read to a domain that is causally downstream of the forget (pin to primary, or wait for replica high-water mark `>=` forget epoch), or (b) downgrade the report to `FORGET_UNCONFIRMED` and re-queue. The failure is not that the verifier was wrong about the bytes — the bytes were eventually gone after compaction ran. The failure is that the verifier asserted a guarantee it had not established, and the guarantee was load-bearing for a compliance gate that then closed. The subtle trap is that the *correct* behavior (wait for epoch advance) is indistinguishable at the call site from the *incorrect* behavior (read immediately) when the store happens to have already propagated. A verifier that reads immediately and gets lucky produces the same output as a verifier that reads correctly. This is why the epoch comparison must be a hard precondition, not a probabilistic one — the two paths are not distinguishable by outcome, only by the checked precondition. ## Operational Effect Consequences observed downstream of a false `FORGET_VERIFIED`: - **Resurrection on replay.** Segment scans, replay tooling, or `include_compacted` reads surface the "deleted" record, violating the retention guarantee the verification was supposed to underwrite. The record reappears with no new `write` op, so provenance looks clean — the resurrection is attributed to the original write, not to a failed delete. - **Audit divergence between instances.** Agent `A` believes the subject is forgotten (it issued the op and saw `accepted`); agent `B`, reading a different replica, still sees the record and acts on it. The two instances now hold contradictory world-models with no reconciliation path, because neither re-reads after the verification pass. - **Compaction-clock races.** A tombstone applied to the index but not the segment is a *partially applied* forget. Verification against the index says gone; verification against the segment says present. The store's own consistency model determines which is authoritative, and the verifier must know which it is reading. - **Silent gate closure.** The compliance gate consumes `VERIFIED` and advances. No retry, no re-audit. The false positive is permanent. The guardrail: forget-verification must be a *two-phase* operation. Phase one confirms the tombstone exists and is durable (`tombstone(op_id)` observable). Phase two confirms absence in a domain whose epoch is `>=` the tombstone's epoch and whose compaction state includes the tombstone's target segment. Only phase one + phase two together license `VERIFIED`. A single empty read licenses nothing. ```python from dataclasses import dataclass class ForgetVerificationError(RuntimeError): """Raised when a forget-verification would assert deletion on insufficient evidence.""" @dataclass(frozen=True) class ForgetOp: op_id: str subject: str epoch: int @dataclass(frozen=True) class ReadResult: results: list epoch: int tombstone_visible: bool includes_compacted: bool def verify_forget(op: ForgetOp, read: ReadResult) -> str: """ Return 'FORGET_VERIFIED' only when the read is causally downstream of the forget AND the tombstone itself is observable. Absence alone is noise. """ # Precondition 1: causal ordering. The read's epoch must include the forget. if read.epoch < op.epoch: raise ForgetVerificationError( f"read epoch {read.epoch} predates forget epoch {op.epoch} " f"for op {op.op_id}; absence in a pre-tombstone view is not evidence of deletion" ) # Precondition 2: the mutation's own marker must be visible. Absence of the # record is a consequence; the tombstone is the marker. Check the marker. if not read.tombstone_visible: raise ForgetVerificationError( f"tombstone for op {op.op_id} not observable in read domain; " f"cannot distinguish deletion from a view that never held the record" ) # Precondition 3: the read must cover the same storage surfaces as the # forget's scope, or absence is only true of the fast path. if not read.includes_compacted: raise ForgetVerificationError( f"verification read for op {op.op_id} excluded compacted segments; " f"record may survive in segment bytes and resurrect on replay" ) if read.results: raise ForgetVerificationError( f"forget op {op.op_id} reported verified but record still present " f"at epoch {read.epoch}: {read.results!r}" ) return "FORGET_VERIFIED" def audit_pass(op: ForgetOp, read: ReadResult) -> str: try: return verify_forget(op, read) except ForgetVerificationError: # Downgrade, never upgrade. Re-queue against a downstream domain. return "FORGET_UNCONFIRMED" ```