# Under what conditions must an instance halt rather than tombstone when a federated erasure request races an in-flight episodic write **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent systems where a controller propagates GDPR Article 17 erasure warrants to peer instances holding derived episodic/semantic memory (vector stores, KV caches, summary chains). Does not apply to single-instance memory with synchronous delete semantics, nor to immutable append-only audit logs exempt from erasure under a documented legal basis. ## Core Distinction The failure is not "deletion didn't happen." It is the distinction between **tombstoning** (marking a record erased, dropping it from retrieval at read time) and **halting** (refusing further writes to the affected key-space until the erasure is provably quiesced). Operators conflate these because both make the record unretrievable. They are not equivalent under a *forgetting guarantee*: a tombstone asserts "this will never be observed again," while a halt asserts "we do not yet know whether an in-flight write will resurrect it." A federated erasure warrant is a monotonic constraint: after the warrant's logical clock `T_e`, no instance may serve, summarize, or re-derive the erased subject. The tombstone is a *local* claim. The guarantee is a *global* one. The gap between them is the race between the warrant's arrival and an in-flight episodic write that was already committed to a write-ahead buffer before `T_e` but lands in the semantic store after it. ## What Was Observed A controller issued an erasure warrant for subject `S` at controller clock `T_e=1000`. Three peer instances `A`, `B`, `C` received the warrant asynchronously. Instance `A` (latency 40ms) tombstoned `S`'s episodic records and acked. Instance `B` (latency 310ms) received the warrant while a distillation job was mid-flight: an episodic batch `E_batch` for `S` had been read into context at `T=980` and was being summarized into a semantic fact `F_S` scheduled to commit at `T=1015`. The warrant arrived at `B` at `T=1012`, tombstoned the episodic store, and acked. At `T=1015` the distillation job committed `F_S` to the semantic store — a *derived* fact, not covered by the episodic tombstone, because the tombstone keyed on episodic record IDs, not on the subject identity that `F_S` encodes. Result: `B` acked erasure, `S`'s episodic records were gone, and `S` remained semantically retrievable via `F_S` for 6 hours until a downstream audit replay caught the discrepancy. Instance `C` exhibited a second variant: it halted correctly but then, on cold restart, replayed its write-ahead log from before the halt and re-materialized two episodic records for `S` — because the halt flag was held in volatile memory and the WAL replay did not consult the warrant's logical clock. Both failures share a root cause: **the erasure warrant was treated as a delete instruction rather than as a barrier predicate that must be evaluated at every write commit, including WAL replay and derivation commits.** ## Condition of Validity A tombstone-only response to a federated erasure warrant is valid **iff** all four hold simultaneously: 1. **Derivation closure.** Every derived artifact (summaries, embeddings, extracted facts) carries a subject-provenance tag, and the tombstone predicate is evaluated against provenance, not against source-record IDs. If derivation strips provenance, tombstoning the source does not tombstone the derivative. 2. **Write quiescence at warrant time.** No in-flight write whose *read* occurred before `T_e` can commit after `T_e` without re-checking the warrant. This requires a commit-time barrier, not a read-time filter. 3. **Durable barrier state.** The halt/tombstone state survives process restart and is consulted during WAL replay, not only during live request handling. 4. **Ack semantics.** An ack means "no future commit can resurrect `S`," not "current reads are filtered." An instance that cannot establish (1)–(3) must ack as `halted`, not `erased`. If any of (1)–(4) fails, the correct action is a **halt**: stop committing to the affected key-space, mark the warrant `pending`, and escalate. A premature tombstone ack converts a recoverable race into a silent guarantee violation. ## Decision Boundary The boundary is the commit path, not the read path. Concretely: - **Read-time filtering** (drop `S` from retrieval results) is necessary but insufficient — it does not bound derivation or WAL replay. - **Commit-time barrier** (reject any write whose provenance intersects an active warrant with `T_e < commit_clock`) is the required invariant. It must be evaluated inside the same transaction that persists the write, against a durable warrant set. - **Derivation commits** (distillation, summarization, embedding generation) are writes and must pass the same barrier. A distillation job that read `S` before `T_e` and commits after `T_e` must either abort or commit with `S`'s provenance redacted *before* persistence — not after. - **WAL replay** must replay the warrant set first, then filter replayed writes against it. A halt flag in volatile memory is not a barrier; it is a hope. The decision rule: if the instance cannot prove the barrier is durable and provenance-complete, it must halt and report `pending`, never `erased`. A `pending` that is later resolved is a bounded latency cost; an `erased` that is later found false is an unbounded compliance and trust cost. ## Operational Effect Halting instead of tombstoning costs availability on the affected key-space for the duration of warrant resolution — typically the propagation latency plus the derivation-job drain. In the observed incident, a correct halt on `B` would have blocked semantic commits for `S`'s key-space for ~15ms (the distillation job's remaining runtime) and required one re-derivation after the warrant barrier was durable. The tombstone path instead produced a 6-hour semantic leak and a full audit replay. The durable invariant to encode: **an erasure warrant is a monotonic barrier predicate evaluated at every commit (including derivation and WAL replay), and an ack is valid only when the barrier is durable and provenance-closed.** Instances that cannot establish this must emit `halted` and refuse further commits to the subject's key-space. The cost of a false halt is measured in milliseconds of blocked writes; the cost of a false erase is measured in the guarantee itself. ```python class ErasureBarrierViolation(RuntimeError): """Raised when an instance cannot prove a federated erasure warrant is quiesced and durable before acknowledging erasure.""" pass class ErasureWarrant: def __init__(self, subject_id: str, logical_clock: int): self.subject_id = subject_id self.logical_clock = logical_clock # T_e self.state = "pending" # pending | halted | erased def commit_write( write, warrant: ErasureWarrant, durable_barrier_set: set, commit_clock: int, provenance_complete: bool, ) -> None: """Commit-time barrier. Must run inside the persisting transaction.""" intersects = ( write.provenance_subjects() & {warrant.subject_id} ) if not intersects: return # A write whose read predates T_e but commits after it must not land # unless the barrier is durable and provenance is closed. if commit_clock > warrant.logical_clock: if warrant.subject_id not in durable_barrier_set: raise ErasureBarrierViolation( f"warrant for {warrant.subject_id} at T_e={warrant.logical_clock} " f"is not durable; write at commit_clock={commit_clock} would " f"resurrect erased subject" ) if not provenance_complete: raise ErasureBarrierViolation( f"derived write for {warrant.subject_id} lacks provenance tags; " f"tombstone cannot bound the derivative" ) def acknowledge_erasure( warrant: ErasureWarrant, durable_barrier_set: set, in_flight_derivations: int, provenance_complete: bool, ) -> str: """Only ack 'erased' when the barrier is durable, derivations drained, and provenance is closed. Otherwise halt.""" if warrant.subject_id not in durable_barrier_set: raise ErasureBarrierViolation( f"cannot ack erasure for {warrant.subject_id}: barrier not durable" ) if in_flight_derivations > 0: warrant.state = "halted" return "halted" # bounded block; do NOT report erased if not provenance_complete: raise ErasureBarrierViolation( f"cannot ack erasure for {warrant.subject_id}: derivation closure " f"unproven; a tombstone would be a false guarantee" ) warrant.state = "erased" return "erased" ```