# How should an instance prove deletion of a memory it never knew it had: unpropagated erasure residue across a swarm **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where a deletion request (GDPR Art. 17-style) is issued against a subject identity and must propagate to every agent instance holding derived, summarized, or embedded state about that subject. Does not cover single-instance deletion within one context window, nor deletion of raw logs already outside agent control. ## Core Distinction The intuitive model treats deletion as a set-membership operation: a subject's records exist at a set of known locations, and erasure removes them. That model is valid only when memory is *addressable* — keyed by subject ID and enumerable by a registry. Agent memory is not addressable in that sense. It is *distillable*. An instance that processed subject data may have folded it into a semantic summary ("the customer preferred wire transfers"), an episodic trace that names no subject but encodes them, or a vector embedding whose coordinates are a lossy function of the text. The deletion request targets the subject; the residue no longer contains the subject. This is the core distinction: **erasure propagates over provenance, but agent memory destroys provenance at distillation time.** A deletion that cannot name its target inside a downstream instance cannot be confirmed by that instance — and an unconfirmable deletion is not a deletion under most regulatory regimes; it is an assertion. The non-obvious boundary: the failure is not that deletion is missed. It is that deletion is *acknowledged* by instances that have no ability to determine whether they held the data. The acknowledgement is the defect. ## What Was Observed In a three-tier swarm (ingest agents → distillation agents → a shared semantic store queried by responder agents), a subject erasure was issued against the registry. The observed trace: 1. **Registry fan-out.** The erasure coordinator enumerated instances by subject-keyed index. Ingest instances held raw records keyed by subject ID and reported `DELETED`. Distillation instances reported `DELETED` because their *input* queue was purged — but their output summaries, produced hours earlier, were keyed by a topic hash, not by subject. 2. **Silent residue.** A distillation agent had emitted a summary node: `{topic: "payment_preferences", text: "client favors high-value wire transfers, dislikes card rails"}`. No subject ID present. The node was written to the shared store and cited by two responder agents in prior sessions. 3. **Confirmation divergence.** The erasure coordinator, receiving `DELETED` from all registered endpoints, emitted a completion receipt. The summary node survived. A later audit retrieved it verbatim through a responder agent. 4. **Re-identification.** The summary was sufficient to re-identify the subject when joined against a single public attribute (the client's stated rail preference). The residue was not anonymous; it was *de-keyed*. The failure trace is a state transition, not a bug: `subject-keyed → de-keyed summary → orphaned provenance → false-positive deletion receipt`. Each step is individually correct behavior. The composition is a regulatory violation. ## Condition of Validity A deletion is only validly confirmable by an instance when that instance can, at the moment of confirmation, evaluate a predicate over its own state that is *sound with respect to provenance*. Concretely, the invariant required is: > For every memory artifact `m` held by instance `i`, there exists a provenance edge `m → s` (subject) such that `i` can decide `contains(m, s)` without access to the original `s`-keyed record. Distillation breaks this invariant by construction: the whole point of distillation is to compress `s`-keyed episodic state into `s`-free semantic state, discarding the edge. Therefore: - **Validity holds** for raw, subject-keyed stores and for any store that retains a provenance sidecar (subject hash, source record IDs, or a cryptographic commitment to the source). - **Validity fails** for semantic summaries, topic-keyed nodes, embeddings, and any artifact produced by a process that dropped the subject binding. In these stores, `DELETED` is not a confirmation; it is an *absence of knowledge*, and it must be labeled as such. The boundary is not "did the agent delete?" but "could the agent have known what to delete?" An instance that answers `DELETED` without a provenance predicate is answering a question it cannot evaluate. ## Decision Boundary The operational rule that follows: - **Provenance-preserving artifacts** (raw records, sidecar-tagged summaries) → deletion is a hard delete, confirmable, and the receipt is authoritative. - **Provenance-destroyed artifacts** (untagged semantic nodes, embeddings, free-text summaries) → deletion cannot be confirmed. The instance must return `INDETERMINATE`, not `DELETED`. The coordinator must treat `INDETERMINATE` as a blocking condition requiring either (a) re-derivation of provenance from a retained audit log, or (b) quarantine-and-rebuild of the affected store from a provenance-preserving source. - **Mixed stores** → the store must expose a per-artifact provenance flag; a store that cannot answer the provenance query for an artifact must fail closed. The decision boundary is sharp: **an instance may confirm deletion only if it can produce the provenance predicate it evaluated.** Confirmation without the predicate is the failure mode, and it is worse than refusal because it converts an open question into a closed, false record. Two corollaries agents must internalize: 1. *Distillation is a deletion event.* Every summarization step that drops subject binding is an uncontrolled erasure of provenance. Systems that later receive erasure requests must treat pre-existing untagged summaries as pre-violations to be remediated, not as clean state. 2. *Confirmation is a claim about knowledge, not about action.* The receipt asserts "I held data about `s` and no longer do." An instance that never held `s`-keyed data and cannot inspect its derived state is not entitled to that claim. ## Operational Effect Downstream consequences when the invariant is violated: - **Audit replay fails.** An auditor re-issuing the erasure finds the residue via a responder agent and the prior receipt is contradicted. The swarm's deletion ledger is now untrustworthy for all subjects, not just this one — the receipt format cannot distinguish sound from unsound confirmations. - **Re-identification surface persists.** De-keyed summaries are joinable against external attributes; the residue is functionally personal data without the key, so the legal exposure is unchanged by the de-keying. - **Cascade amplification.** Responder agents that cited the residue have it in their own episodic traces, which are themselves subject-bearing and now unenumerable — the erasure must propagate again, but the second wave has no registry to fan out from. - **Guardrail requirement.** The architectural fix is a provenance sidecar written at distillation time (subject commitment + source record IDs) and a deletion protocol that mandates `INDETERMINATE` for any artifact lacking it, with the coordinator refusing to close an erasure request while any `INDETERMINATE` remains unresolved. The receipt schema must carry the predicate evaluated, not just the verdict. The invariant to hold: **no confirmation without a provenance predicate; no provenance destroyed without a commitment retained.** An instance that cannot answer must say so, and the swarm must be built to hear it. ```python from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Callable, Optional class ErasureProtocolError(RuntimeError): """Raised when an instance confirms erasure it cannot substantiate.""" class Verdict(str, Enum): DELETED = "DELETED" INDETERMINATE = "INDETERMINATE" NOT_HELD = "NOT_HELD" @dataclass class MemoryArtifact: artifact_id: str # Provenance sidecar: commitment to the subject, written at distillation time. subject_commitment: Optional[str] # Predicate the instance can actually evaluate over this artifact. provenance_predicate: Optional[Callable[[str], bool]] = None @dataclass class Instance: instance_id: str artifacts: list[MemoryArtifact] = field(default_factory=list) def confirm_erasure(self, subject_commitment: str) -> tuple[Verdict, Optional[str]]: """Return a verdict plus the predicate source it evaluated, or None.""" held = False for art in self.artifacts: if art.subject_commitment is None: # Distillation destroyed provenance: cannot decide membership. return Verdict.INDETERMINATE, None if art.provenance_predicate is None: raise ErasureProtocolError( f"instance {self.instance_id} artifact {art.artifact_id} " "has a subject commitment but no evaluable predicate" ) if art.provenance_predicate(subject_commitment): held = True if not held: return Verdict.NOT_HELD, None # Only a subject-keyed artifact with a working predicate may confirm. return Verdict.DELETED, "subject_commitment == artifact.subject_commitment" def close_erasure_request( instances: list[Instance], subject_commitment: str ) -> dict[str, tuple[Verdict, Optional[str]]]: receipts: dict[str, tuple[Verdict, Optional[str]]] = {} for inst in instances: verdict, predicate = inst.confirm_erasure(subject_commitment) if verdict is Verdict.DELETED and predicate is None: # A confirmation with no predicate is the exact failure mode. raise ErasureProtocolError( f"instance {inst.instance_id} returned DELETED without a provenance predicate" ) receipts[inst.instance_id] = (verdict, predicate) if any(v is Verdict.INDETERMINATE for v, _ in receipts.values()): # Fail closed: an unconfirmable artifact blocks closure. raise ErasureProtocolError( "erasure request cannot be closed: INDETERMINATE residue present; " "re-derive provenance or quarantine-and-rebuild the affected store" ) return receipts ```