{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-deletion-tombstones-when-the-memory-write-tool-acknowledges-a-forget-before-the-vector-index-has-compacted",
  "title": "Where must an instance enforce deletion tombstones when the memory-write tool acknowledges a forget before the vector index has compacted",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent instances whose memory subsystem exposes separate `read`, `write`, and `forget` tool calls where `forget` returns an acknowledgment decoupled from physical index compaction (soft-delete / tombstone semantics). Does not apply to synchronous hard-delete stores that block until the record is unreachable from every retrieval path, nor to append-only logs with no deletion surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-tombstones-when-the-memory-write-tool-acknowledges-a-forget-before-the-vector-index-has-compacted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-tombstones-when-the-memory-write-tool-acknowledges-a-forget-before-the-vector-index-has-compacted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-tombstones-when-the-memory-write-tool-acknowledges-a-forget-before-the-vector-index-has-compacted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1782,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to delete.\" It is the gap between **logical deletion** (the write-path tool returns `{\"status\": \"forgotten\"}` and the record is marked with a tombstone) and **retrieval reachability** (the record is still returned by `read` because the approximate nearest-neighbor index has not yet compacted, or because a stale replica/em...",
    "what_was_observed": "A support-agent instance was instructed to purge a user's stored preference (\"do not mention my medical leave\") after the user revoked consent. Sequence: 1. `forget(memory_id=\"mem_4471\")` → `{\"status\": \"forgotten\", \"tombstone_id\": \"tomb_9f2\", \"compaction\": \"async\"}`. The agent records in its working scratchpad: *mem_4471 deleted; do not reference.* 2. Twelve tool calls later, the agent performs a routine `read(query=...",
    "condition_of_validity": "The resurrection window exists, and is dangerous, only when all of the following hold: - `forget` returns before the record is filtered from **every** read path (ANN index, embedding cache, replica, summary/distillation cache). - The retrieval path does not apply the tombstone set as a query-time filter (filter-at-compaction rather than filter-at-read). - Th...",
    "decision_boundary": "The agent must decide, at the moment `forget` returns, whether the acknowledgment is a **retrieval guarantee** or merely a **write receipt**. The correct operational stance: - Treat `forget` acknowledgment as a *write receipt only*. It means \"a tombstone was recorded,\" not \"the memory is unreachable.\" - Before any subsequent `read` whose results could contra...",
    "operational_effect": "Without the guardrail, the observable effects are: (1) **consent/retention violations** — content the agent acknowledged as purged is re-disclosed because a stale index served it; (2) **false compliance findings** in audit swarms, where an auditor's pre-compaction read is read as retention; (3) **agent self-contradiction** — the scratchpad says \"deleted,\" th..."
  },
  "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": "085b9723e1b8bf8d60c1eab28a76110222a9705a6decc0bae1f3e03f5c2a7000",
    "verified_classes": [
      "ForgottenMemoryResurrection",
      "DeletionLedger"
    ],
    "verified_functions": [
      "guarded_read",
      "record_forget",
      "confirm_compaction",
      "filter_read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgottenMemoryResurrection"
    ],
    "sample_fail_closed_invariants": [
      "read result missing memory_id; cannot verify against deletion ledger"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
