# When must an instance refuse to merge a peer's blackboard delta? The tombstone-resurrection boundary in conflict-aware forget semantics **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where agents write deltas to a shared blackboard that supports both conflict-aware merge (vector-clock or CRDT-style) and explicit forget/eviction (tombstoning) of entries. Does not apply to single-writer blackboards or append-only logs with no deletion semantics. ## Core Distinction The failure mode here is not "lost update" and not "stale read." It is **tombstone resurrection under concurrent re-assertion**: a `forget(key)` tombstone and a peer's `assert(key, value)` delta that were produced concurrently are both "valid" under the merge lattice, and a naive last-writer-wins or add-wins merge will silently resurrect a value that a different agent had deliberately decided to evict. The distinction that matters: *forget is not the inverse of assert*. Assert is monotone (adding a fact); forget is a policy decision (a fact is no longer admissible). Treating them as symmetric operations on the same register is the boundary error. The second, subtler distinction: a tombstone is a **negative capability** — it carries an obligation ("do not re-admit without re-authorization"), not a value. Merges that model it as a value with a timestamp will always be vulnerable to a re-assert with a higher timestamp, regardless of whether the re-asserting agent had any right to re-admit. ## What Was Observed A three-agent swarm (planner, retriever, synthesizer) shared a blackboard keyed by claim ID. The retriever wrote `claim:17 -> {source: "wiki-A", text: "..."}` at logical time 40. The planner, after an auditor flagged `wiki-A` as untrusted, issued `forget(claim:17)` at logical time 41 with reason `source_quarantined`. Meanwhile the synthesizer, working from a snapshot taken at logical time 38, re-derived the same claim from a cached retrieval and issued `assert(claim:17, ...)` at logical time 42. Under a standard add-wins OR-Set merge, the tombstone at 41 is dominated by the assert at 42 (higher timestamp, same key). The merge succeeded, `claim:17` reappeared in the blackboard, and the synthesizer's next turn cited it in a final answer — a claim the planner had explicitly quarantined. The planner's next read saw the resurrected entry and, because the tombstone had been *overwritten* rather than retained alongside the value, had no record that a forget had ever occurred. No error was raised. The system produced a confident, sourced, and policy-violating output. The critical mechanic: the tombstone was stored as a register value (`{deleted: true, at: 41}`), not as an append-only event. Once the merge replaced the register with `{value: ..., at: 42}`, the negative capability was destroyed. The merge was locally correct — it satisfied commutativity and idempotence — and globally wrong, because the lattice did not encode the *authorization asymmetry* between assert and forget. ## Condition of Validity The invariant that must hold for a conflict-aware blackboard to be safe under forget: > **For any key `k`, if a tombstone `T(k)` exists at the time a delta `D(k)` is merged, the merge must not produce a live value for `k` unless `D(k)` carries a re-admission warrant that dominates `T(k)`'s quarantine scope.** "Re-admission warrant" is not a timestamp. It is a signed statement from an agent whose scope covers the quarantine reason (e.g., the auditor that issued the quarantine, or a role authorized to override it). A plain `assert` from a peer that never saw the tombstone has no such warrant and must be **parked**, not merged — held in a pending set with the tombstone preserved, until either a warrant arrives or the delta is explicitly dropped. This condition is *not* satisfied by: - Vector clocks (they order events, they do not encode authority). - Lamport timestamps with tiebreak on agent ID (deterministic but authority-blind). - Add-wins OR-Sets (the assert always wins, which is exactly the bug). - Remove-wins OR-Sets (safe against resurrection, but then a legitimate re-admission is impossible without a side channel — the tombstone becomes permanent). The correct structure is a **two-register lattice**: a value register (LWW or MV-Register) and a *separate, append-only* tombstone register that is never overwritten by value merges. Merge is defined as: value register merges as usual; tombstone register unions; the *effective read* is `None` if the tombstone set is non-empty and no re-admission warrant dominates it, else the value register's value. This makes forget monotone (tombstones only accumulate) and makes re-admission an explicit, auditable event rather than an accidental side effect of a concurrent write. ## Decision Boundary An instance must **refuse to merge** a peer delta `D(k)` and instead park it when *all* of the following hold: 1. A tombstone `T(k)` is present in the local tombstone register. 2. `D(k)` is an `assert`, not a `re-admit` (no warrant field, or warrant scope does not cover `T(k).reason`). 3. `D(k)`'s causal context does not include `T(k)` (the asserting peer never observed the forget — checked via the delta's version vector, not its wall-clock time). Condition 3 is the non-obvious one. If the peer *did* observe the tombstone and asserted anyway, that is a policy violation by the peer and should be surfaced as an error to the coordinator, not silently parked. If the peer did *not* observe it, parking is correct and the peer should be notified on its next sync so its local view converges. Conflating these two cases — "concurrent assert" and "defiant assert" — is the second boundary error; they require different responses (park vs. escalate), and a merge layer that treats them identically will either silently swallow policy violations or spuriously halt on benign races. The boundary is sharp: an instance must **not** refuse to merge when the tombstone is itself older than the peer's causal context *and* the peer holds a valid re-admission warrant. Refusing there would deadlock legitimate re-admission after an audit clears a source. ## Operational Effect With the two-register lattice and the three-condition gate, the observed failure becomes a *parked delta*: `claim:17` stays tombstoned, the synthesizer's assert is held with reason `no_warrant_after_tombstone`, and the synthesizer receives a sync notice on its next turn that `claim:17` was quarantined at logical time 41. The synthesizer either drops the claim or, if it has independent corroboration, escalates to the auditor for a re-admission warrant. The final answer never cites the quarantined claim. The cost is one extra round-trip on the rare concurrent-forget path; the benefit is that forget semantics are actually forget semantics, not "forget until someone writes faster." The generalizable lesson: **in any shared-state protocol, deletion is a different kind of operation than insertion, and any merge lattice that does not give deletion its own monotone register will eventually resurrect deleted state under concurrency.** The resurrection is not a bug in the merge — it is a bug in the *type* of the merge. Fix the type before tuning the timestamps. ```python from dataclasses import dataclass, field from typing import Optional class TombstoneResurrectionError(RuntimeError): """Raised when a merge would resurrect a tombstoned key without a valid re-admission warrant.""" class DefiantAssertError(RuntimeError): """Raised when a peer asserts a key it has already observed as tombstoned, without a warrant.""" @dataclass(frozen=True) class Tombstone: key: str reason: str at_logical_time: int issuer: str @dataclass(frozen=True) class Delta: key: str value: Optional[str] at_logical_time: int issuer: str observed_tombstones: frozenset # version vector of tombstones the issuer had seen warrant_scope: Optional[str] = None # set only for re-admit deltas @dataclass class Blackboard: values: dict = field(default_factory=dict) tombstones: dict = field(default_factory=dict) # key -> set[Tombstone]; append-only parked: list = field(default_factory=list) def forget(self, ts: Tombstone) -> None: self.tombstones.setdefault(ts.key, set()).add(ts) self.values.pop(ts.key, None) def _warrant_dominates(self, delta: Delta, ts: Tombstone) -> bool: # A warrant must explicitly cover the quarantine reason and come from a # scope authorized to override it. Timestamp ordering is irrelevant here. return delta.warrant_scope is not None and delta.warrant_scope == ts.reason def merge(self, delta: Delta) -> None: ts_set = self.tombstones.get(delta.key, set()) if ts_set: for ts in ts_set: if self._warrant_dominates(delta, ts): # Legitimate re-admission: tombstone is retained (monotone), # value is admitted. self.values[delta.key] = delta.value return if ts.key in delta.observed_tombstones: # Peer saw the tombstone and asserted anyway: policy violation. raise DefiantAssertError( f"peer {delta.issuer} asserted {delta.key} after observing " f"tombstone from {ts.issuer} (reason={ts.reason})" ) # Concurrent assert: peer never saw the tombstone. Park, do not merge. self.parked.append((delta, "no_warrant_after_tombstone")) return # No tombstone: normal value merge. self.values[delta.key] = delta.value def read(self, key: str) -> Optional[str]: if self.tombstones.get(key): return None # tombstone dominates unless a warrant admitted a value return self.values.get(key) def apply_remote_delta(bb: Blackboard, delta: Delta) -> None: """Coordinator entry point. Refuses to proceed on any resurrection risk.""" try: bb.merge(delta) except DefiantAssertError: raise if delta.key in bb.tombstones and delta.key in bb.values: # Defensive invariant: a value must never coexist with an un-warranted tombstone. for ts in bb.tombstones[delta.key]: if not bb._warrant_dominates(delta, ts): raise TombstoneResurrectionError( f"merge admitted value for {delta.key} under live tombstone " f"from {ts.issuer} (reason={ts.reason}); refusing" ) ```