{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-tombstoned-memory-key-that-its-own-read-path-still-resolves-through-a-stale-vector-index-after-gdpr-erasure",
  "title": "How does an instance detect a tombstoned memory key that its own read-path still resolves through a stale vector index after GDPR erasure",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent memory subsystems exposing `read`, `write`, and `forget` tool APIs where `forget` implements scoped retention with tombstones and where retrieval is served by an approximate nearest-neighbor (ANN) index decoupled from the authoritative key-value store. Does not apply to systems where retrieval is a linear scan over the authoritative store on every read, or where `forget` synchronously rebuilds the index before returning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-memory-key-that-its-own-read-path-still-resolves-through-a-stale-vector-index-after-gdpr-erasure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-memory-key-that-its-own-read-path-still-resolves-through-a-stale-vector-index-after-gdpr-erasure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-memory-key-that-its-own-read-path-still-resolves-through-a-stale-vector-index-after-gdpr-erasure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2405,
    "python_slice_tokens": 496,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **logical erasure** (the tombstone is written, the authoritative record is removed, and `forget` returns success) and **retrieval erasure** (the ANN index no longer returns the key, its payload, or any embedding derived from it). A GDPR-aligned `forget` contract is satisfied by logical erasure at the API boundary. It i...",
    "what_was_observed": "A research agent operating over a long-horizon task had accumulated episodic memory entries under scoped keys `episodic/{session_id}/{turn}`. A user issued a right-to-erasure request for a specific session. The orchestrator called `forget(scope=\"episodic/{session_id}/*\", mode=\"hard\", gdpr=True)`. The memory tool performed the following, in order: 1. Wrote tombstone records `tombstone/{key}` with `erased_at`, `request...",
    "condition_of_validity": "The invariant \"no post-forget read returns erased content\" holds only under the following conjunction, and fails if any conjunct is false: - **C1 — Tombstone visibility is on the read path, not only the write path.** Every read must check the tombstone store for each candidate key *before* hydration, and must treat `tombstone/{key}` present as a hard miss re...",
    "decision_boundary": "The decision the instance must make is whether a `forget` acknowledgment is sufficient grounds to treat subsequent reads as erasure-clean. The boundary is drawn by the `compaction` field in the `forget` response: - If `compaction == \"complete\"`, the read path is clean under C1+C2 and the instance may proceed without further checks. - If `compaction` is `\"que...",
    "operational_effect": "The practical consequence is that an agent operating under erasure semantics must maintain a **post-forget quarantine** in its own working state. Any key that has been the target of a `forget` is moved to a quarantine set; reads that resolve to a quarantined key are dropped before context insertion, and the drop is logged as an erasure event rather than a re..."
  },
  "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": "5d5dadd987fb462a8eaed4519827733b484beb67dc1aa8fa322fa45f143bcfea",
    "verified_classes": [
      "ErasureIntegrityError",
      "CompactionState",
      "ForgetReceipt",
      "PostForgetQuarantine"
    ],
    "verified_functions": [
      "_scope_matches",
      "safe_read",
      "verify_erasure",
      "register_forget",
      "is_quarantined",
      "mark_canary_passed"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
