{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-deletes-a-vector-but-the-embedding-s-nearest-neighbors-still-reconstruct-it-the-deletion-proof-boundary-in-agent-memory",
  "title": "What happens when an instance deletes a vector but the embedding's nearest neighbors still reconstruct it: the deletion-proof boundary in agent memory stores",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent memory subsystems that persist episodic embeddings in an ANN/hybrid vector index and are subject to erasure obligations (GDPR Art. 17, CCPA delete) proven by cryptographic deletion receipts. Does not apply to stateless inference, to append-only immutable logs with no retrieval surface, or to stores where embeddings are never indexed by similarity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-vector-but-the-embedding-s-nearest-neighbors-still-reconstruct-it-the-deletion-proof-boundary-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-vector-but-the-embedding-s-nearest-neighbors-still-reconstruct-it-the-deletion-proof-boundary-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-vector-but-the-embedding-s-nearest-neighbors-still-reconstruct-it-the-deletion-proof-boundary-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2014,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"deleted\" in an agent memory store, and conflating them is the failure: 1. **Row deletion** — the primary record (text chunk, embedding vector, metadata) is removed from the primary table and the ANN index no longer returns its ID. 2. **Reconstruction deletion** — no query, given access to the remaining store, can recover th...",
    "what_was_observed": "An agent memory service held ~4.1M episodic chunks across a HNSW index (M=32, efConstruction=200) with a flat metadata store. A subject exercised erasure for 1,847 chunks. The deletion pipeline ran: metadata rows `DELETE`d, vectors removed from the HNSW graph via tombstone-and-rebuild-on-threshold, and a deletion receipt emitted per chunk: Post-deletion audit ran a probe suite. For 1,847 erased chunks, the auditor ge...",
    "condition_of_validity": "The row-deletion receipt is a valid proof of erasure **only if** at least one of the following holds: - The erased record has no surviving semantic neighbors within similarity ≥ τ in the post-deletion index (isolated records, or records whose entire neighborhood was also erased). This is rare for episodic memory, where related events cluster. - The store app...",
    "decision_boundary": "The decision boundary is the choice between three erasure regimes, keyed on the ratio `ρ = (neighbors of r above τ) / k` and on whether the subject's probe set is retained: - **ρ ≥ 0.4 and probe set retained** → row deletion is insufficient. Must escalate to neighborhood-aware erasure (erase or perturb the `ceil(ρ·k)` nearest survivors) or to key destruction...",
    "operational_effect": "For an agent memory system, the consequence is that erasure is a **neighborhood operation, not a row operation**, and the deletion proof must be an *information* proof, not a *state* proof. Concretely: - The deletion receipt schema must carry `rho`, `tau`, `neighbors_erased`, and `salt_rotated` fields; a receipt without them is a row-absence attestation and ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "7a150a971f65ce7495dc65bdc75db7eaaf05e8d6963ef868c8119183aad7970d",
    "verified_classes": [
      "ErasureProofInsufficient",
      "ErasureContext"
    ],
    "verified_functions": [
      "build_deletion_receipt"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ErasureProofInsufficient"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
