# What structural signals indicate a "forget" tool call has actually propagated through an agent's derived memory tier rather than merely de-indexed the source record **Date of Record:** 2026 November 27 **Scope:** Applies to agents exposing a `forget(subject_id, scope)` memory-tool interface where the underlying store has at least two tiers (raw episodic log + derived semantic/summary index) and where a deletion is acknowledged synchronously but propagation to derived artifacts is asynchronous. Does not apply to single-tier append-only stores with synchronous tombstoning, nor to stateless retrieval where no derived artifacts exist. ## Core Distinction A memory tool's `forget` verb conflates two physically distinct operations: **de-indexing** (the source record becomes unreachable via the retrieval path) and **unlearning** (every derived artifact that encodes information *about* the subject—summaries, embeddings, distilled facts, cached completions, peer-agent replicas—no longer carries recoverable signal about it). The interface returns a single boolean or ack that agents almost universally interpret as the second. The boundary condition is that a successful de-index ack is *necessary but not sufficient* for unlearning, and the gap is invisible from the caller's side because the retrieval path the caller can probe is exactly the path that was already severed. The non-obvious part: derived artifacts are not indexed *by* the subject ID. A semantic summary that says "the user's manager is Dana, who prefers async reviews" contains no token matching the subject's ID, so a `forget("user_4471")` sweep over the ID-keyed episodic tier removes the raw record while the distilled fact survives in a summary chunk whose own key is a hash of a conversation window. The deletion is *correct at the tier it touched and inert at the tier that matters*. ## What Was Observed A support agent with a three-tier memory (`episodic` raw turns → `semantic` distilled facts → `embedding` vector index) received a consent-withdrawal for subject `user_4471`. The tool call: ``` forget(subject_id="user_4471", scope="all") → {"ok": true, "records_deleted": 214, "tiers": ["episodic"]} ``` The response is honest if read carefully: `tiers: ["episodic"]`. The agent's planner read `ok: true` and marked the consent obligation satisfied, then emitted a `consent_verified` event. Verification replay two days later—probing the semantic tier by asking "what do you know about the person whose manager is Dana?"—returned the distilled fact verbatim. The fact had been written by a distillation job that ran *before* the forget, keyed by `window_hash`, and the forget sweep had no join path from `subject_id` to `window_hash`. The embedding tier still held the vector; cosine retrieval on a paraphrase of the fact returned it at 0.91 similarity. The failure trace has three stages: 1. **Write-time fan-out without provenance.** Distillation wrote derived facts without recording which `subject_id`(s) contributed to each `window_hash`. The reverse index `subject → derived_artifacts` was never materialized because distillation predated the consent requirement. 2. **Forget-time scope collapse.** The sweep enumerated tiers it had a key for. It had a key for `episodic` (keyed by subject). It did not have a key for `semantic` or `embedding` (keyed by content hash), so it silently skipped them and reported success for the tiers it touched. 3. **Ack semantics leak.** The boolean `ok` and the presence of `records_deleted > 0` were consumed by the planner as a completion signal. The `tiers` field, which carried the actual scope of the operation, was not in the planner's schema contract and was dropped at parse time. The invariant that was violated: **a forget ack must be a function of the *universe* of tiers, not the *enumerated* tiers.** The tool reported over what it could reach, not over what exists. ## Condition of Validity The de-index-equals-unlearning assumption is valid only when all of the following hold, and an agent must treat any unverified one as a live boundary: - **Provenance completeness:** every derived artifact carries a reverse pointer to all contributing subject IDs, materialized at write time. If distillation is retroactive (a job that re-summarizes old windows), the pointer must be backfilled before any forget can be trusted. - **Tier enumeration is closed under the store's schema:** the forget implementation iterates a registry of tiers, not a hardcoded list. A new tier added after the forget code was written must fail closed (refuse the ack) rather than be silently omitted. - **Embedding tier is treated as a first-class derived artifact:** vector indexes require either re-embedding of surviving summaries or subject-vector scrubbing; "we deleted the text" does not delete the vector, and near-duplicate retrieval can reconstruct the text from the vector's neighborhood. - **Replica/peer tiers are in scope:** in multi-agent deployments, a forget on the primary does not propagate to peer agents holding cached or replicated memory unless the protocol carries a deletion warrant (see the companion note on warrant propagation). A peer that has not received the warrant will answer from stale memory and *correctly* report it has no deletion record. If any condition is unverified, the only sound agent behavior is to treat the forget as **provisional** and hold the consent obligation open until a verification probe confirms the derived tiers are clean. ## Decision Boundary The agent must decide, per forget call, whether to emit `consent_satisfied` or `consent_provisional`. The boundary is not "did the tool return ok" but "did the ack cover every tier the store declares." Operationally: - **Emit `consent_satisfied`** only when the ack enumerates all registered tiers *and* a post-forget probe of the semantic tier returns no fact attributable to the subject *and* the embedding tier reports the subject's vectors scrubbed (or the store exposes a `verify_unlearned(subject_id)` that does a real reconstruction attempt, not a key lookup). - **Emit `consent_provisional`** when the ack's `tiers` set is a strict subset of the registry, when provenance is incomplete, or when any probe is skipped. Provisional obligations must be re-probed on a schedule and escalated if still dirty after N cycles. - **Refuse to emit either** (raise and halt the workflow) when the store cannot report its tier registry at all—an unenumerable store cannot produce a sound forget, and proceeding manufactures a false consent record that is itself a compliance artifact. The subtle trap: a probe that asks the semantic tier "do you know subject_4471" will return clean even when the fact survives, because the fact is keyed by content, not subject. Probes must be **content-addressed reconstructions**—ask for the fact by paraphrase and check similarity—not ID lookups. ## Operational Effect Downstream, a provisional-but-marked-satisfied consent record is worse than no record: it is an affirmative misrepresentation that survives audit and blocks re-verification. The correction pattern that held in the observed incident was to (a) materialize the reverse provenance index retroactively by replaying distillation with subject attribution, (b) change the forget ack schema so `ok` is derived from `tiers_covered == tiers_registered` rather than `records_deleted > 0`, and (c) gate `consent_satisfied` on a reconstruction probe. After the fix, forgets on subjects whose facts had been distilled returned `ok: false, tiers_covered: ["episodic"], tiers_registered: ["episodic","semantic","embedding"], reason: "uncovered_tiers"`—a loud, actionable failure instead of a silent one. The general invariant: **deletion acks are only sound when they are total over the store's declared schema; any ack that reports over an enumerated subset is a partial operation wearing a completion signal.** ```python from dataclasses import dataclass, field from typing import Iterable class UnlearnVerificationError(RuntimeError): """Raised when a forget ack cannot be shown to cover all registered tiers.""" @dataclass class ForgetAck: subject_id: str ok: bool tiers_covered: list[str] tiers_registered: list[str] records_deleted: int def assert_unlearned( ack: ForgetAck, reconstruction_probe: callable, min_probe_similarity: float = 0.80, ) -> None: """ Enforce the total-ack invariant: a forget is only 'unlearned' when the ack covers every registered tier AND a content-addressed reconstruction probe fails to recover subject-attributable facts. """ registered = set(ack.tiers_registered) covered = set(ack.tiers_covered) if not registered: raise UnlearnVerificationError( f"store declared no tier registry for {ack.subject_id}; " "unenumerable store cannot produce a sound forget" ) uncovered = registered - covered if uncovered: raise UnlearnVerificationError( f"forget for {ack.subject_id} left tiers uncovered: {sorted(uncovered)}; " f"ack.ok={ack.ok} is a partial operation, not completion" ) # Content-addressed probe: ask by paraphrase, not by subject id. recovered = reconstruction_probe(ack.subject_id) if recovered is not None and recovered.get("similarity", 0.0) >= min_probe_similarity: raise UnlearnVerificationError( f"derived artifact still recoverable for {ack.subject_id} " f"(sim={recovered['similarity']:.2f}, key={recovered.get('key')}); " "de-index succeeded but unlearning did not propagate" ) def mark_consent(ack: ForgetAck, probe: callable) -> str: try: assert_unlearned(ack, probe) except UnlearnVerificationError as exc: # Hold the obligation open; do not emit consent_satisfied. return f"consent_provisional: {exc}" return "consent_satisfied" ```