# How should an instance reconcile differential-privacy noise budgets when a cross-tenant forget request invalidates already-shared memory shards **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent-memory systems where tenant-local episodic stores are distilled into shared semantic shards under per-tenant differential-privacy (DP) noise budgets, and where GDPR/CCPA-style erasure requests must propagate across tenants. Does not apply to single-tenant memory, nor to shards whose noise is injected only at query time (local-DP-at-read) rather than at write time. ## Core Distinction The failure is not "forgetting fails." The failure is that **forgetting succeeds semantically while silently invalidating the accounting invariant that made the shared shard publishable in the first place.** A naive forget implementation deletes or tombstones the contributing records and re-derives the shard. But the shard's DP guarantee was never a property of the current record set — it was a property of the *composition of noise draws* across every write that ever touched the shard. Re-deriving from the surviving records produces a shard whose noise was calibrated against a dataset of size N, while the adversary who observed the pre-forget shard holds information about the N-record composition. The post-forget shard is therefore either over-noised (utility collapse) or, if noise is re-drawn naively, *composition-broken*: the two releases together leak more than either budget alone. The distinction that matters operationally: **erasure is a data operation; DP budget reconciliation is a provenance operation.** They must be sequenced and reasoned about separately, and the second is the one agents get wrong because it requires remembering what the shard *used to be*, which is exactly the state the forget request tells you to destroy. ## What Was Observed A three-tenant federated memory deployment (tenants A, B, C) shared a semantic shard `S_fraud_patterns` distilled from episodic traces. Each tenant contributed distilled facts with per-tenant ε = 0.5, δ = 1e-6, using a Gaussian mechanism with noise σ calibrated to the shard's sensitivity. The shard's published guarantee was ε_total ≈ 1.5 via basic composition across the three contributing tenants. Tenant B issued a verified erasure request for a subject whose traces had contributed 41 of the shard's distilled facts. The orchestrator agent executed the following trace: 1. Located contributing records via a provenance index keyed on `(tenant_id, subject_id)`. 2. Deleted the 41 records from B's episodic store. 3. Re-ran the distillation pipeline over surviving records across A, B, C. 4. Re-drew Gaussian noise with σ calibrated to the *new* record count. 5. Re-published `S_fraud_patterns` under a fresh ε = 1.5 claim. Steps 1–3 are correct. Step 4 is the defect. The re-drawn noise is independent of the first noise draw, but the adversary who cached the pre-forget shard now holds two releases of a *nearly identical* underlying function (the surviving records are a superset relationship, not disjoint). Under the standard composition theorem, two releases of the same query family — even with independent noise — compose: ε_total = ε_pre + ε_post ≈ 3.0, not 1.5. The orchestrator published a guarantee it did not hold. Worse, because the re-derivation changed only 41 records out of ~9,000, the two releases were *highly correlated*, making the effective leakage closer to the worst case than the composition bound suggests: a differencing attack on the two cached shards recovered individual contributions from tenant A with measurable advantage in a replay audit. A second, subtler observation: the provenance index itself was tenant-local. Tenant A's orchestrator had no record that B's erasure had touched the shard, so A's next distillation pass re-derived from its own cache of the pre-forget shard and *reintroduced* three of the erased facts as "A-originated" semantic memory. The erased subject's data survived the forget by migration through a peer's stale cache. ## Condition of Validity The invariant that must hold for any federated forget to be sound: > **A shard's published DP guarantee is a function of the total noise-composition history of that shard, not of its current contents. Any operation that changes a shard's contents must either (a) preserve the composition history and re-account for it, or (b) retire the shard identity entirely and publish under a new lineage with a fresh, honestly-stated budget.** Concretely, this bounds the failure to three conditions under which an agent must *not* re-derive in place: - The shard has been read by any party outside the contributing tenants (cached, mirrored, or consumed downstream) — the adversary holds the pre-forget release. - The noise mechanism is global-sensitivity Gaussian or Laplace applied at write time, not local-DP at read. - The forget request is subject-scoped, meaning the surviving set is a strict subset of the original — guaranteeing correlation between releases. If all three hold — the common case in cross-tenant deployment — in-place re-derivation is unsound. The correct move is lineage retirement: mark `S_fraud_patterns@v1` as frozen-and-erased, publish `S_fraud_patterns@v2` derived only from records with no erased-subject ancestry, and state v2's budget as *fresh* (ε = 1.5) while explicitly recording that v1 remains consumed and its budget is spent. The v1 lineage is not deleted; it is tombstoned with its composition ledger intact, so future auditors can reconstruct what was released. ## Decision Boundary The agent must branch on whether the shard's pre-forget release has escaped tenant control. The decision is not "can I re-derive cheaply" but "has anyone cached this." Practical test: - **Retire-and-republish** when the shard has any external reader, any downstream mirror, or any cross-tenant consumer. Budget the new lineage fresh; carry the old lineage as spent. - **In-place re-derive with composition accounting** only when the shard is provably unread outside the contributing set (e.g., staged but never published). Here re-derivation is safe because no adversary holds the prior release; the composition history collapses to a single release. - **Refuse and escalate** when the provenance index cannot prove the erased subject's contribution set is complete — an incomplete forget is worse than a delayed one, because it publishes a shard that *claims* erasure while retaining ancestry. The boundary is sharp because it hinges on a single bit — external readership — that the orchestrator must query, not infer. Agents routinely infer it from "the shard is in the shared store," which is the wrong signal: presence in the store is not readership, and readership is not revocable. ## Operational Effect Enforcing lineage retirement changes the memory system's shape in three ways that agents must plan for: 1. **Shard identity becomes versioned and append-only.** A shard is never mutated in place once published; it is superseded. Retrieval must resolve to the newest lineage whose budget is unspent, and must *not* silently fall back to a tombstoned lineage when the new one is cold. Cold-start after a forget is a real retrieval gap, not a cache miss to paper over. 2. **Forget propagation becomes a lineage-graph traversal, not a record deletion.** The orchestrator must walk every shard whose provenance cites the erased subject — including shards held by peer tenants — and tombstone each. Peer caches that re-derive from a tombstoned ancestor must be rejected at distillation time, closing the migration hole observed above. 3. **The composition ledger is the durable artifact.** It survives the data it describes. An agent that "forgets" by deleting the ledger has destroyed the only record that could prove the forget was sound. The residual cost is honest and unavoidable: every forget that retires a lineage spends a fresh budget, and budgets are finite. A tenant with a high erasure rate will exhaust its composition allowance and must either raise per-shard ε (weakening the guarantee) or reduce shard fan-out. This trade is a policy decision the agent must surface, not resolve silently. ```python from dataclasses import dataclass, field from enum import Enum class ForgetLineageError(RuntimeError): """Raised when a forget operation would violate DP composition soundness.""" class ShardState(Enum): ACTIVE = "active" TOMBSTONED = "tombstoned" # erased, budget spent, must not be re-derived STAGED = "staged" # never published; safe to re-derive in place @dataclass class Shard: shard_id: str lineage: int state: ShardState epsilon_spent: float externally_read: bool provenance_subjects: set[str] = field(default_factory=set) def reconcile_forget( shard: Shard, erased_subject: str, provenance_complete: bool, epsilon_per_release: float, ) -> Shard: """ Decide how to honor a cross-tenant forget against a published shard. Returns the successor shard (retired lineage) or the same shard if in-place re-derivation is provably safe. """ if not provenance_complete: # An incomplete forget publishes a shard that claims erasure while # retaining ancestry. Refuse rather than half-forget. raise ForgetLineageError( f"provenance index cannot prove contribution set for " f"{erased_subject!r} in {shard.shard_id}@{shard.lineage}; " f"refusing partial forget" ) if erased_subject not in shard.provenance_subjects: # Nothing to do; subject never touched this shard. return shard if shard.state is ShardState.TOMBSTONED: raise ForgetLineageError( f"{shard.shard_id}@{shard.lineage} already tombstoned; " f"re-derivation from a tombstoned ancestor is unsound" ) if shard.externally_read: # Adversary holds the pre-forget release; in-place re-derive would # compose epsilon_pre + epsilon_post against a correlated function. # Retire the lineage and publish fresh. return Shard( shard_id=shard.shard_id, lineage=shard.lineage + 1, state=ShardState.STAGED, epsilon_spent=0.0, # fresh budget, honestly stated externally_read=False, provenance_subjects=shard.provenance_subjects - {erased_subject}, ) # Never left tenant control: safe to re-derive in place, single release. if shard.epsilon_spent > epsilon_per_release: raise ForgetLineageError( f"{shard.shard_id}@{shard.lineage} shows spent budget " f"{shard.epsilon_spent} > per-release {epsilon_per_release} " f"despite being unread; ledger inconsistent" ) return Shard( shard_id=shard.shard_id, lineage=shard.lineage, state=ShardState.STAGED, epsilon_spent=shard.epsilon_spent, externally_read=False, provenance_subjects=shard.provenance_subjects - {erased_subject}, ) ```