# Under what conditions must an instance refuse a provenance-tracked forget when the deletion warrant is derived rather than asserted **Date of Record:** 2026 November 27 **Scope:** Applies to agent memory tool APIs exposing `read`/`write`/`forget` where `forget` requires a provenance chain (data-subject warrant → record lineage → tombstone). Does not apply to soft-delete or TTL eviction, which carry no legal-forgetting obligation and no cross-agent propagation semantics. ## Core Distinction A `forget(record_id, warrant)` call is *asserted* when the caller supplies a warrant that directly identifies the data subject and the record lineage. It is *derived* when the caller supplies a predicate (e.g., a subject key, an email hash, an entity tag) and the memory service must compute which records satisfy it by walking provenance edges before tombstoning. The boundary failure is this: **derived forgetting is a set-valued operation over a graph that the agent's own prior `write` calls mutated, and the agent has no way to distinguish "zero matches because the subject has no data" from "zero matches because the provenance edge was pruned, coalesced, or never written."** An asserted forget is closed under the record it names. A derived forget is only as complete as the provenance graph's connectivity invariant, which the agent cannot verify from inside the tool call. The non-obvious consequence: a derived forget that returns `{"deleted": 0}` is not evidence of compliance. It is evidence that the walk terminated. These are different facts, and conflating them is the failure mode this record bounds. ## What Was Observed An instance was tasked with GDPR erasure across a multi-tenant memory store. Records were written with provenance edges of the form `record → source_event → subject_key`. The agent issued a derived forget: ``` forget(predicate={"subject_key": "sha256:9f2c…"}, warrant=W-4471) → {"deleted": 0, "walk_nodes": 1, "status": "complete"} ``` The agent reported erasure complete. Three days later an audit replay found 41 surviving records carrying the same subject key. The trace: the 41 records had been written during a compaction pass in which the agent had *merged* episodic records into a distilled semantic record and, to save tokens, written the merged record with a fresh `source_event` and dropped the per-episode `subject_key` edges. The merge was lossy with respect to provenance, not content. The derived walk started at the subject-key index, found no live edges (the index entry had been superseded), and terminated with `walk_nodes: 1`. The invariant that broke: **provenance edges were treated as derivable from record content rather than as first-class state that must survive every mutation.** Compaction preserved the *fact* but destroyed the *lineage*. A derived forget is only sound over a graph where every write path preserves a subject-reachable edge; a single lossy mutation path silently converts derived forgets into no-ops that report success. A second observation sharpened the mechanism. When the agent retried with an asserted warrant naming the surviving record IDs directly, the forget succeeded — but the tool returned `{"deleted": 41, "tombstones": 41, "propagation": "async"}`. The tombstones were queued for propagation to two peer agents holding cached copies. Propagation is asynchronous; the peers' caches remained readable for a bounded window. The agent had no API surface to observe propagation completion, so a subsequent `read` on a peer returned the forgotten record, and the agent — reasoning over that read — concluded the forget had failed and re-issued it, generating duplicate tombstones and a warrant-replay conflict. ## Condition of Validity A derived forget is *valid* — meaning its `deleted: 0` result may be trusted as evidence of absence — only when all of the following hold simultaneously: 1. **Provenance closure.** Every write path that can produce a record reachable by the predicate preserves at least one subject-reachable provenance edge. Compaction, distillation, summarization, and merge operations are write paths and must be provenance-preserving or explicitly marked provenance-severing. 2. **Index liveness.** The predicate index is not stale with respect to superseded edges. A superseded edge that still points to a live record is a false negative source. 3. **Propagation observability.** The forget response exposes a propagation handle the caller can poll, so `read` on a peer cannot race the tombstone. 4. **Warrant non-replay.** Re-issuing the same warrant is idempotent; a duplicate tombstone does not raise a conflict that masks the real state. When any condition fails, the derived forget degrades to an *asserted* forget over the subset the walk actually reached, and the `deleted` count is a lower bound, not a compliance certificate. The agent must treat it as such. The condition of validity is not a property of the forget call. It is a property of the *write history* that preceded it. The agent cannot establish it at forget time; it can only be established by the invariant that every mutation path either preserves lineage or records a severance marker. ## Decision Boundary The decision the instance must make at forget time: - If the warrant is **asserted** (names records directly), proceed. Asserted forgets are closed and their results are authoritative for the named records. - If the warrant is **derived**, the instance must not report completion unless it can confirm provenance closure for the predicate's reachable set. It cannot confirm this from inside the tool call. Therefore the instance must either (a) escalate to an asserted forget by first enumerating candidate records via a lineage-preserving read, or (b) refuse and surface the closure question to an operator. The boundary is sharp: **a derived forget returning zero is never sufficient to report erasure.** Zero means the walk terminated, which is compatible with both absence and severance. Only a positive enumeration followed by asserted deletion, or an explicit provenance-closure attestation from the memory service, crosses the boundary into a reportable state. Symmetrically, a derived forget returning a positive count is authoritative only if propagation is observable. If propagation is async and unobservable, the instance must not treat peer reads as ground truth during the propagation window; it must treat the tombstone handle as the source of truth and defer any read-based reasoning until propagation is confirmed. ## Operational Effect The practical effect is that derived forgetting must be decomposed into two phases the naive API collapses into one: **enumerate-then-assert**. The enumeration phase is a lineage-preserving read that returns the full reachable set *and* a closure attestation (or a severance warning). The assertion phase is a forget over the enumerated IDs with an observable propagation handle. Collapsing these phases — which the single-call derived API invites — is what produces the silent no-op. The secondary effect is on reasoning loops: an agent that reads a peer cache during the propagation window will observe the un-forgotten record and may re-issue the forget, creating warrant-replay conflicts and duplicate tombstones. The guardrail is to make the tombstone handle the sole authority for "is it forgotten" during the window, and to forbid read-based verification until propagation confirms. The invariant to enforce architecturally: **every mutation path that can sever provenance must emit a severance marker, and the derived-forget walk must fail closed on encountering a severance marker within the predicate's reachable set.** Fail-closed means the walk returns `{"status": "incomplete", "severed_at": [...]}` rather than `deleted: 0`. The difference between those two responses is the entire compliance posture of the system. ```python import hashlib from dataclasses import dataclass, field from enum import Enum class ForgetRefused(RuntimeError): """Raised when a derived forget cannot establish provenance closure.""" pass class WalkStatus(Enum): COMPLETE = "complete" SEVERED = "severed" STALE_INDEX = "stale_index" @dataclass class ForgetResult: deleted: int walk_nodes: int status: WalkStatus severed_at: list = field(default_factory=list) propagation_handle: str | None = None def derived_forget(predicate: dict, warrant: str, graph) -> ForgetResult: """ Derived forget over a provenance graph. Fails closed: a severed edge within the predicate's reachable set does NOT yield deleted:0 as success. """ reachable, severed = graph.walk_subject(predicate["subject_key"]) if severed: # A severance marker means lineage was destroyed by a lossy mutation. # deleted count is a lower bound, not a compliance certificate. raise ForgetRefused( f"Derived forget for warrant {warrant} hit provenance severance at " f"{severed}. deleted=0 is not evidence of absence. Escalate to " f"asserted forget via lineage-preserving enumeration." ) if graph.index_is_stale(predicate["subject_key"]): raise ForgetRefused( f"Predicate index stale for {warrant}; superseded edges may point " f"to live records. Refusing to report completion." ) if not reachable: # Genuine absence: closure attested, zero reachable. Still must not # be reported as 'complete' without closure attestation upstream. return ForgetResult( deleted=0, walk_nodes=1, status=WalkStatus.COMPLETE, propagation_handle=None, ) handle = graph.tombstone(reachable, warrant) return ForgetResult( deleted=len(reachable), walk_nodes=len(reachable) + 1, status=WalkStatus.COMPLETE, propagation_handle=handle, ) def verify_forgotten(record_id: str, handle: str, graph) -> bool: """ Verification must consult the tombstone handle, never a peer read, during the propagation window. """ if not graph.propagation_confirmed(handle): raise ForgetRefused( f"Cannot verify {record_id}: propagation for {handle} unconfirmed. " f"Peer reads during this window are not ground truth." ) return graph.tombstone_present(record_id, handle) ```