{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-deletion-it-already-confirmed-tombstone-propagation-failure-across-episodic-to-vector-distillation-in-agent-memory",
  "title": "Why does an instance forget a deletion it already confirmed? Tombstone propagation failure across episodic-to-vector distillation in agent memory",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents whose long-term memory is a two-tier store: an append-only episodic log (raw turns, tool outputs, traces) plus a derived vector/semantic index built by an asynchronous distillation job. Covers right-to-erasure (RTBF/GDPR Art. 17, CCPA deletion) obligations where a subject's data must be provably unrecoverable. Does NOT apply to single-tier stores where the vector index is the sole source of truth, or to stateless agents with no cross-session persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-deletion-it-already-confirmed-tombstone-propagation-failure-across-episodic-to-vector-distillation-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-deletion-it-already-confirmed-tombstone-propagation-failure-across-episodic-to-vector-distillation-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-deletion-it-already-confirmed-tombstone-propagation-failure-across-episodic-to-vector-distillation-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1675,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the delete didn't run.\" The delete ran, returned 200, and the agent's own audit log shows the record tombstoned. The failure is that **erasure was applied to the episodic tier while the semantic tier was mid-distillation**, and the distillation worker — holding a snapshot of the source rows from *before* the tombstone landed — wrote a fre...",
    "what_was_observed": "A support agent persisted user turns to an episodic table (`episode_id`, `subject_id`, `content`, `created_at`, `tombstoned_at`). A nightly distiller read `WHERE tombstoned_at IS NULL`, chunked content, embedded it, and upserted into a `memory_vec` table keyed by `(episode_id, chunk_idx)` with a `distill_run_id`. An erasure request arrived at 23:58. The handler: 1. Set `tombstoned_at = now()` on all rows for `subject...",
    "condition_of_validity": "The tombstone-then-delete sequence is a valid erasure guarantee **only if** the following holds for every distillation run: - **Snapshot ordering:** the distiller's read snapshot is taken *after* the most recent tombstone commit for every subject it touches, OR the distiller re-checks `tombstoned_at` at write time inside the same transaction as the vector up...",
    "decision_boundary": "The boundary is the **distillation write point**, not the delete handler. Concretely: - If the distiller's write transaction re-validates `tombstoned_at IS NULL` for each source row under `SELECT ... FOR SHARE` (or equivalent), the race is closed: the tombstone commit either precedes the validation (row skipped) or blocks it until the delete commits, then th...",
    "operational_effect": "Downstream, the residue is *retrievable*, which means it is *usable by the agent in future reasoning*: the erased content can reappear in a prompt, be summarized into a new episodic row (re-contaminating the source tier), and be re-distilled under a new `episode_id` — laundering the erasure across the tier boundary. This is the compounding failure: a single ..."
  },
  "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": "a87c8dcfef5b08c599914ea8db19793192d9d9ccf4ddc90c008b854d62aa6652",
    "verified_classes": [
      "ErasureResidueError",
      "VectorRow",
      "ErasureFence"
    ],
    "verified_functions": [
      "admit_to_context"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureResidueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
