# What structural signals indicate an unverifiable erase in federated agent memory: the tombstone-replay divergence boundary **Date of Record:** 2026 November 30 **Scope:** Applies to any agent whose `forget`/`erase` tool call must produce an auditable proof of erasure across two or more independently-operated memory stores (episodic logs, vector indices, semantic caches) where the agent does not own the underlying storage engine. Does not apply to single-store, single-tenant erasure where the caller can read the raw backing files directly, nor to cryptographic-shredding schemes where key destruction is the sole erasure primitive. ## Core Distinction The failure is not "the forget tool returned an error." The failure is that the forget tool returned **success with a proof that is internally consistent but externally unbound** — a tombstone that attests to erasure against a store revision that no longer matches the live store. Two distinct things get conflated: *the erase executed* versus *the erase is provable against the current state*. A federated store that acknowledges a deletion at revision `r` produces a signed tombstone `T(r)`. If the store has since compacted, reindexed, or re-ingested a derived embedding at revision `r+k`, the tombstone remains cryptographically valid while the erased content's *derivative* is live. The invariant that must hold is **tombstone coverage**: for every store `s`, every live record `x` in `s` at audit time must be either (a) not descended from any tombstoned record, or (b) covered by a tombstone whose revision is `>=` the revision that created `x`. Erasure proofs verify *deletion events*, not *absence of descent*. That gap is the boundary. ## What Was Observed A three-store agent configuration: `episodic` (append-only JSONL log), `vec` (HNSW vector index over chunk embeddings), `sem` (distilled semantic summary store). A user issued a forget request for a document `D`. The orchestrator called the `forget` tool on each store in sequence and collected signed tombstones. Trace: 1. `episodic.forget(D)` → tombstone `T_ep@rev=4410`, covering all log lines tagged `doc:D`. Signed, verifiable. 2. `vec.forget(D)` → tombstone `T_vec@rev=4410`, deleting vector IDs whose metadata carried `doc:D`. Signed. 3. `sem.forget(D)` → tombstone `T_sem@rev=4411`, deleting summary nodes whose provenance cited `doc:D`. Signed. All three tombstones verified against their issuers' public keys. The forget tool returned `{"erased": true, "proofs": [T_ep, T_vec, T_sem]}`. Audit at `rev=4419` found a live summary node `S_x` in `sem` whose `provenance` field listed `doc:D` as a *secondary* source. It had been created at `rev=4415` by the nightly distillation job, which re-derived summaries from `episodic` lines that had **not** been tagged `doc:D` but were paraphrases the distillation model had generated from `D` at `rev=4402`. The distillation job read `episodic` at `rev=4413` — *after* `T_ep@4410` — but the paraphrased lines it consumed carried no `doc:D` tag, so the tag-based tombstone never matched them. The tombstone was valid. The descent was live. Three signed proofs, zero coverage of the actual derivative. The structural signal was not in any single tombstone. It was in the **revision skew between tombstone issuance and the latest write that touched a descendant**: `max(tombstone_rev) = 4411` but `max(descendant_write_rev) = 4415`. A monotonic audit invariant would have flagged `4415 > 4411` as an unproven-write window. No such check existed because each store's tombstone verified in isolation. ## Condition of Validity A federated erase proof is valid only when the following holds at audit time, for every store `s`: - **Descent closure.** The tombstone predicate must match not only by tag/ID but by *provenance lineage*. If any store performs derivation (summarization, embedding, paraphrase, re-chunking), the tombstone must either (a) transitively cover derived records, or (b) the derivation job must be *quiesced* and its output watermarked with source IDs so lineage is reconstructible. Tag-only matching is valid only when no derivation exists between the erased record and live records. - **Monotonic revision fence.** Every tombstone carries the store revision at issuance. Any live record with `created_rev > tombstone_rev` that is descended from the tombstoned content invalidates the proof. The fence must be checked against the *live* store's current revision, not the revision at forget time. - **Issuer binding to derivation authority.** The party that signed the tombstone must be the same party authorized to write derived records. If a separate distillation service writes to `sem`, its writes must be covered by a tombstone the forget tool can obtain from *that* service, not just from the store's CRUD interface. When any of these fails, the proof attests to a deletion event but not to erasure. The forget tool's `erased: true` is then a **false attestation** — the most dangerous class of memory-safety bug in agents, because downstream auditors treat the signed proof as ground truth. ## Decision Boundary The boundary between "provable erase" and "unverifiable erase" is crossed at the moment a **derivation job runs against a store after a tombstone is issued, without re-emitting lineage**. Concretely: - If `derivation_watermark > last_tombstone_rev` for any store that feeds a derivation, the erase is **unverifiable** until the derivation job re-runs with the tombstone applied or emits a coverage proof for its outputs. - If the forget tool cannot reach the derivation service's signing key (federation boundary), it must return `erased: unverifiable` with the specific uncovered revision window, **not** `erased: true`. - If tombstone matching is tag-based and the store contains model-generated paraphrases, the boundary is crossed at the first paraphrase, regardless of revision — tag coverage is structurally insufficient. The correct guardrail is a **two-phase forget**: phase one quiesces derivation and records a fence revision `F`; phase two issues tombstones and requires each to attest `coverage_rev >= F`. The forget tool refuses to emit `erased: true` if any store's max descendant write revision exceeds its tombstone revision. ## Operational Effect Downstream agents that trust the signed proof will treat erased content as absent and may re-ingest it from a derived summary, silently resurrecting it — and because the resurrection arrives via a *different* provenance path, subsequent forget calls on the original tag will again miss it, compounding. The audit trail becomes self-consistent and wrong. The only reliable detection is the revision-fence check at audit time, and the only reliable prevention is lineage-aware tombstoning with derivation quiescence. A forget tool that cannot prove descent closure must fail closed and surface the uncovered revision window to the caller. ```python import hashlib from dataclasses import dataclass, field class UnverifiableEraseError(RuntimeError): """Raised when a federated erase proof does not cover live descendants.""" @dataclass class Tombstone: store: str revision: int predicate: str # e.g. "doc:D" — tag-based coverage signature: str @dataclass class LiveRecord: store: str created_rev: int provenance: list[str] # source tags, may include paraphrased origins content_hash: str @dataclass class FederatedStore: name: str current_rev: int records: list[LiveRecord] = field(default_factory=list) derivation_watermark: int = 0 # last rev at which a derivation job wrote def verify_erase_proof( tombstones: list[Tombstone], stores: dict[str, FederatedStore], ) -> dict: """ Enforce descent-closure and monotonic-revision-fence invariants. Returns a coverage report or raises UnverifiableEraseError. """ if not tombstones: raise UnverifiableEraseError("no tombstones supplied; cannot attest erasure") tomb_by_store: dict[str, Tombstone] = {t.store: t for t in tombstones} uncovered: list[dict] = [] for name, store in stores.items(): tomb = tomb_by_store.get(name) if tomb is None: uncovered.append({"store": name, "reason": "no tombstone for store"}) continue # Invariant 1: derivation quiescence — no derivation ran past the tombstone. if store.derivation_watermark > tomb.revision: uncovered.append({ "store": name, "reason": "derivation_watermark exceeds tombstone revision", "watermark": store.derivation_watermark, "tombstone_rev": tomb.revision, }) # Invariant 2: descent closure — no live record descended from the predicate. for rec in store.records: descended = any(tomb.predicate in p for p in rec.provenance) if descended and rec.created_rev > tomb.revision: uncovered.append({ "store": name, "reason": "live descendant written after tombstone", "record_hash": rec.content_hash, "created_rev": rec.created_rev, "tombstone_rev": tomb.revision, }) if uncovered: raise UnverifiableEraseError( f"erase unverifiable: {len(uncovered)} uncovered window(s): {uncovered}" ) proof_digest = hashlib.sha256( "".join(f"{t.store}:{t.revision}:{t.signature}" for t in tombstones).encode() ).hexdigest() return {"erased": True, "coverage": "descent-closed", "proof_digest": proof_digest} # --- Reproduction of the observed failure --- if __name__ == "__main__": stores = { "episodic": FederatedStore(name="episodic", current_rev=4419, derivation_watermark=0), "vec": FederatedStore(name="vec", current_rev=4419, derivation_watermark=0), "sem": FederatedStore( name="sem", current_rev=4419, derivation_watermark=4415, records=[LiveRecord(store="sem", created_rev=4415, provenance=["doc:D", "paraphrase:4402"], content_hash="S_x")], ), } tombstones = [ Tombstone("episodic", 4410, "doc:D", "sig_ep"), Tombstone("vec", 4410, "doc:D", "sig_vec"), Tombstone("sem", 4411, "doc:D", "sig_sem"), ] try: verify_erase_proof(tombstones, stores) except UnverifiableEraseError as e: print(f"REJECTED: {e}") ```