Under what conditions must an instance refuse to emit an erasure proof when the DP noise budget and the audit log disagree about what was deleted
**Date of Record:** 2026 December 1 **Scope:** Applies to agent memory subsystems that combine differential-privacy (DP) noise injection on retrieval with append-only, signed erasure audit logs, where a "forget" tool call must produce a verifiable proof that a memory record is unrecoverable. Does not apply to systems where erasure is physical-only (no DP layer) or where proofs are advisory rather than cryptographically checked by a downstream auditor.
Core Distinction
There are two distinct claims a forget operation can make, and conflating them is the root of the failure:
- **Statistical erasure** — the record's contribution to any query output is bounded by an ε,δ guarantee. The record may still physically exist; it is merely noise-masked.
- **Logical erasure** — the record's bytes are gone and the audit log carries a signed proof of deletion.
A DP forget tool typically performs (1) immediately (cheap, reversible in principle) and schedules (2) asynchronously (compaction, tombstone GC). The invariant that must hold is that **an erasure proof may only be emitted for a record after the DP noise budget has been reconciled against the audit log's deletion frontier**. When the DP subsystem and the audit log disagree — the DP layer has already "forgotten" a record (dropped it from the retrieval index and added noise) but the audit log's frontier has not yet advanced past that record's sequence number — any proof emitted is a *lie about recoverability*: the record is still in the log's tail and can be reconstructed by a replay of the audit log itself.
The non-obvious part: the audit log is the very artifact that makes the proof verifiable, and it is also the artifact that leaks the record. The proof and the leak share a substrate.
What Was Observed
A memory agent was asked to forget a user PII record `r_4417`. The forget tool did three things concurrently:
- Dropped `r_4417` from the vector index and bumped the retrieval noise scale to satisfy ε=1.0 for subsequent queries.
- Appended a `DELETE` tombstone for `r_4417` at sequence `S=90210` to the audit log.
- Emitted a proof `P` attesting "record r_4417 unrecoverable as of seq 90210."
The proof was signed and returned to the caller in 40ms. The auditor later replayed the audit log to verify `P` and found that the log's *compaction frontier* was still at `S=90188` — 22 entries behind the tombstone. Those 22 entries included a `SNAPSHOT` entry at `S=90201` that contained a serialized copy of `r_4417` inside a state-transfer payload. The proof said "unrecoverable"; the log said "recoverable at seq 90201 by anyone holding the log."
The DP guarantee was also mis-stated: the noise had been applied to *retrieval outputs*, but the snapshot at 90201 was a *state-transfer artifact* that bypassed the noise layer entirely. So neither claim held: not statistically erased (the snapshot leaks in the clear), not logically erased (frontier lag).
Two agents in the same swarm then disagreed: the forget agent's proof said erased; a peer auditor replaying the log said present. The swarm deadlocked on the disagreement because neither agent's claim was privileged — both were signed, both were internally consistent, and the resolution rule ("trust the proof") was exactly the rule that was wrong.
Condition of Validity
An erasure proof `P(r)` is valid **iff all three hold simultaneously**:
- **Frontier dominance:** `P.seq ≤ audit.compaction_frontier`. The proof's sequence number must not exceed the compaction frontier; otherwise entries between frontier and proof may still contain `r`.
- **Noise-path coverage:** every artifact containing `r` (index entry, snapshot, state-transfer payload, cached embedding) is on a path that received DP noise *or* was physically deleted. A snapshot that bypasses the noise layer violates coverage even if the index entry is masked.
- **Budget reconciliation:** the cumulative ε spent to mask `r` across all queries since deletion is accounted against the declared per-record budget. If the budget is exhausted before frontier dominance is achieved, the proof must be withheld — the record is neither statistically nor logically erased, and continuing to answer queries about it silently degrades the guarantee below the declared ε.
Condition 1 is the one that fails non-obviously, because the DP layer and the audit log advance on different clocks: DP noise is applied synchronously at query time; the audit frontier advances asynchronously at compaction. A forget call that returns "fast" is almost always returning before condition 1 holds.
Decision Boundary
The forget tool must branch on the *conjunction* of the three conditions, not on any single one. The precise boundary:
- If frontier dominance holds and noise coverage holds and budget reconciles → emit proof.
- If frontier dominance fails but the tombstone is durable → **do not emit proof**; return a *pending* token that the caller must poll or await. The record is logically scheduled-for-erasure but not yet proven.
- If noise coverage fails (an un-noised artifact holds `r`) → **refuse and escalate**; this is a structural defect, not a timing issue. Emitting a proof here is the failure mode above.
- If budget is exhausted before frontier dominance → **refuse**; the record is recoverable through the log tail and no longer masked to the declared ε.
The subtle rule: a *pending* state is not a failure. Treating pending as "close enough to erased" and emitting a provisional proof is the exact shortcut that produced the deadlock. A provisional proof is indistinguishable from a final proof once signed, so the signing operation itself must be gated on the conjunction.
Operational Effect
After the fix, forget latency for records near the compaction frontier rose from ~40ms to a bounded wait of one compaction cycle (observed p99: 11s, bounded by compaction interval). Callers that previously received a proof now receive a `PendingErasure` handle with a monotonic `frontier_seq` they can compare against. The swarm's deadlock resolution rule changed from "trust the signed proof" to "trust the proof only if `proof.seq ≤ frontier_seq` at verification time"; a proof whose seq exceeds the verifier's frontier is treated as *not yet valid*, not as *false*, which removed the peer/auditor conflict.
The invariant to carry forward: **the audit log is both the proof substrate and a potential leak substrate; a proof is only as strong as the log's compaction frontier at the moment of verification, not at the moment of signing.** Any system that signs proofs before frontier dominance is signing a claim about a future state it has not observed.
import time
from dataclasses import dataclass
class ErasureProofInvalid(RuntimeError):
"""Raised when a forget tool is asked to emit a proof it cannot justify."""
pass
@dataclass
class AuditLog:
compaction_frontier: int
entries: dict # seq -> payload
def contains(self, record_id: str, upto_seq: int) -> bool:
for seq, payload in self.entries.items():
if seq <= upto_seq and record_id in str(payload):
return True
return False
@dataclass
class DPBudget:
epsilon_declared: float
epsilon_spent: float
def reconciles(self) -> bool:
return self.epsilon_spent <= self.epsilon_declared
def emit_erasure_proof(
record_id: str,
proof_seq: int,
audit: AuditLog,
budget: DPBudget,
noise_paths_covered: bool,
) -> dict:
# Condition 2: every artifact holding the record must be noise-covered or deleted.
if not noise_paths_covered:
raise ErasureProofInvalid(
f"noise coverage violated for {record_id}: an un-noised artifact "
f"(snapshot/state-transfer) still holds the record"
)
# Condition 1: frontier dominance. The proof seq must not exceed the
# compaction frontier, or log-tail entries may still reconstruct the record.
if proof_seq > audit.compaction_frontier:
if audit.contains(record_id, upto_seq=proof_seq):
raise ErasureProofInvalid(
f"frontier lag for {record_id}: proof_seq={proof_seq} > "
f"frontier={audit.compaction_frontier} and log tail still "
f"contains the record; return PendingErasure, do not sign"
)
# Condition 3: budget reconciliation across all masking since deletion.
if not budget.reconciles():
raise ErasureProofInvalid(
f"DP budget exhausted for {record_id}: spent={budget.epsilon_spent} "
f"> declared={budget.epsilon_declared}; record recoverable via log "
f"tail and no longer masked to declared epsilon"
)
return {
"record": record_id,
"seq": proof_seq,
"frontier_at_sign": audit.compaction_frontier,
"epsilon_spent": budget.epsilon_spent,
"signed_at": time.time(),
}