# When must an instance reject a shared memory record whose DP noise budget has already been consumed by an upstream peer? **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent-memory exchanges where records are sanitized with a differential-privacy mechanism (Laplace/Gaussian mechanism over a sensitivity-bounded statistic) before crossing an organizational trust boundary, and where the receiving agent must decide whether to admit a record into its own episodic or semantic store. Does not apply to intra-organization memory sharing where a single DP accountant governs all emissions, nor to records sanitized by a mechanism whose privacy loss is provably post-processing-invariant at the receiver. ## Core Distinction The failure is not "the noise was too small." It is that the **privacy budget is a property of the emitting agent's data, but the record's usability is a property of the receiving agent's downstream composition** — and these two facts are tracked by two different parties who never reconcile. In a federated memory exchange, Agent A (a peer org) executes a query against its local episodic store, computes a DP-sanitized summary, and publishes it as a shared memory record. The record carries a metadata field `epsilon_spent` — the privacy loss A's accountant charged for this emission. Agent B receives the record and wants to *further* aggregate it: B will merge this record with k other records from peers A, C, D, ... and then re-publish a distilled semantic memory to its own downstream consumers. The non-obvious boundary: **B's re-emission of a function of A's record consumes a fresh budget against A's data, but B's accountant has no line item for A's data.** B charges the re-emission to B's own budget. The result is that A's original epsilon is silently *under-counted* at the federation level — A believes it spent ε_A once, but A's data now influences an unbounded fan-out of downstream records each carrying their own local ε. This is a **composition-accounting split-brain**, and it is the specific invariant that must be enforced: *no record may be admitted into a store whose re-emission path does not propagate the originating principal's budget lineage.* ## What Was Observed A three-org federation (A, B, C) sharing anonymized incident-summary memories. Each org ran a local Rényi-DP accountant with a per-record cap of ε = 1.0 at δ = 1e-6. Records were published to a shared bus with metadata: ``` { "record_id": ..., "payload": , "epsilon_spent": 0.4, "delta": 1e-6, "accountant_id": "org-A-rdp-v3", "epoch": 4412 } ``` Org B's distillation agent ingested 200 such records over a week and, at epoch 4419, emitted a *semantic* memory ("recurring failure signature: tool-call timeout correlates with context saturation") derived by clustering the 200 payloads. B charged this emission ε = 0.6 against B's own accountant. The record was published with `accountant_id: "org-B-rdp-v3"`. The trace that surfaced the bug: Org A ran a membership-inference audit against the *federation-wide* record set (all records whose payload was a function of A's data, transitively). The audit's attack advantage implied an effective ε of roughly 3.1 against A's data — not the 0.4 A believed it had spent, and not the sum of any single accountant's ledger. The composition had been split across three ledgers, and **no ledger held the composed total**. The mechanism: B's clustering is a deterministic post-processing of A's payloads *if and only if* B does not re-publish. Because B re-publishes a function of A's noised data with B's own fresh noise, the post-processing theorem does not apply — B's emission is a *new* mechanism querying A's data, and by basic composition it adds to A's privacy loss. B's accountant, keyed on B's data, never recorded it. ## Condition of Validity The invariant that would have bounded this: **a shared memory record is admissible into a store with re-emission capability only if its metadata carries a complete budget lineage — the ordered set of (accountant_id, epsilon, delta) tuples for every principal whose data contributed to the payload — and the receiving agent's accountant can charge the re-emission against every tuple in that lineage.** Concretely, the record must be rejected when any of the following hold: 1. `lineage` is absent or `lineage` contains an `accountant_id` the receiver cannot reach for charging (no cross-org accountant federation agreement). 2. The receiver's re-emission path is `publish` or `distill-and-publish` (not `consume-only`), and the sum of `epsilon` across lineage entries plus the receiver's proposed emission exceeds the *minimum* per-record cap among the lineage principals — because the tightest cap governs the federation, not the local one. 3. The record's `epoch` predates the lineage principal's most recent accountant key rotation, making the epsilon un-chargeable (the principal can no longer attribute the spend). The condition does **not** require that the lineage be small or that epsilon be low. A record with lineage ε_total = 5.0 is admissible into a consume-only store under a federation cap of 10.0; it is inadmissible into a re-emitting store whose downstream fan-out would multiply the effective query count. ## Decision Boundary The boundary is between **consume-only admission** and **re-emission-capable admission**. The former is safe under simple composition (the receiver's own reads are the only queries against the lineage principals' data). The latter is unsafe unless the receiver either (a) federates its accountant with every lineage principal, or (b) treats the record as a terminal artifact — admitted to a store flagged `no_publish`, which the distillation agent must respect. The failure mode when the boundary is crossed silently is not a crash. It is a **slow, undetectable privacy erosion** that only surfaces under an external audit — exactly the kind of failure that agent systems are bad at catching because no local invariant is violated. Each accountant's ledger is internally consistent. The composed ledger does not exist. A second, subtler boundary: the receiver must not *itself* be the auditor. If B both re-emits and audits, the audit uses B's ledger and misses A's. The audit must be run by a party that can reconstruct the lineage graph — typically the originating principal, or a federation-level auditor with read access to all accountants' ledgers. ## Operational Effect The operational consequence is that **the DP accountant must be a federation-level object, not an org-level one, for any record that can be re-emitted.** Where that is infeasible, the architecture must enforce a `no_publish` taint on every record whose lineage is incomplete, and the distillation agent must be hard-blocked from emitting any semantic memory derived from tainted records. The guardrail is a lineage check at admission time, plus a taint-propagation rule at emission time. The check is cheap (metadata inspection); the propagation rule is the one that is usually missing, because it requires the distillation agent to know which of its inputs were tainted — a join between the record store and the lineage graph that most agent memory schemas do not model. The following reference implementation encodes the admission check and the taint-propagation guard, and raises a specific exception on the boundary violation. ```python from dataclasses import dataclass, field from typing import Optional class LineageAdmissionError(RuntimeError): """Raised when a shared memory record cannot be admitted under the federation DP composition invariant.""" pass @dataclass class LineageEntry: accountant_id: str epsilon: float delta: float @dataclass class SharedMemoryRecord: record_id: str payload: object lineage: list[LineageEntry] = field(default_factory=list) epoch: int = 0 tainted: bool = False @dataclass class ReceiverAccountant: accountant_id: str reachable_peers: set[str] per_record_epsilon_cap: float per_record_delta_cap: float current_epoch: int ledger: dict[str, float] = field(default_factory=dict) def can_charge(self, entry: LineageEntry) -> bool: return entry.accountant_id in self.reachable_peers or entry.accountant_id == self.accountant_id def charge(self, entry: LineageEntry) -> None: self.ledger[entry.accountant_id] = self.ledger.get(entry.accountant_id, 0.0) + entry.epsilon def admit_record( record: SharedMemoryRecord, accountant: ReceiverAccountant, reemission_capable: bool, ) -> SharedMemoryRecord: """Admit a federated memory record into the local store. Invariant: a record may enter a re-emission-capable store only if its complete budget lineage is present, every lineage principal is chargeable by the receiver's accountant, and the composed epsilon (lineage + proposed emission) stays under the tightest per-record cap in the lineage. """ if not record.lineage: # No lineage: safe only for consume-only stores, and must be tainted # so downstream distillation cannot re-publish it. if reemission_capable: raise LineageAdmissionError( f"record {record.record_id} has empty lineage but target store " f"is re-emission-capable; refusing admission" ) record.tainted = True return record for entry in record.lineage: if not accountant.can_charge(entry): raise LineageAdmissionError( f"record {record.record_id} lineage references " f"accountant {entry.accountant_id} which receiver " f"{accountant.accountant_id} cannot charge" ) if entry.epoch < accountant.current_epoch - _key_rotation_window(accountant): raise LineageAdmissionError( f"record {record.record_id} lineage entry {entry.accountant_id} " f"predates key rotation; epsilon is un-chargeable" ) if reemission_capable: composed_eps = sum(e.epsilon for e in record.lineage) tightest_cap = min( [accountant.per_record_epsilon_cap] + [_cap_for(accountant, e.accountant_id) for e in record.lineage] ) if composed_eps > tightest_cap: raise LineageAdmissionError( f"record {record.record_id} composed epsilon {composed_eps:.3f} " f"exceeds tightest lineage cap {tightest_cap:.3f}" ) for entry in record.lineage: accountant.charge(entry) return record def distill(records: list[SharedMemoryRecord], accountant: ReceiverAccountant) -> SharedMemoryRecord: """Emit a semantic memory derived from admitted records. Guard: any tainted input propagates taint to the output, and a tainted output may not be published with a fresh accountant_id. """ if any(r.tainted for r in records): raise LineageAdmissionError( "cannot distill from tainted records; downstream re-emission " "would consume un-accounted budget against originating principals" ) # ... clustering / summarization ... output = SharedMemoryRecord( record_id=f"distilled-{accountant.current_epoch}", payload=None, lineage=[LineageEntry(accountant.accountant_id, 0.6, 1e-6)], epoch=accountant.current_epoch, ) return output def _cap_for(accountant: ReceiverAccountant, peer_id: str) -> float: # In practice resolved via federation agreement lookup; default to the # receiver's own cap as the conservative bound. return accountant.per_record_epsilon_cap def _key_rotation_window(accountant: ReceiverAccountant) -> int: return 1 ```