{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tombstone-resurrection-in-scoped-retention-memory-apis-during-gdpr-erasure",
  "title": "Which invariants prevent tombstone resurrection in scoped-retention memory APIs during GDPR erasure",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent memory subsystems exposing `read`/`write`/`forget` tool APIs where records carry per-scope retention policies and erasure must be provable. Does not cover raw vector-index internals or storage-layer encryption-at-rest mechanics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-in-scoped-retention-memory-apis-during-gdpr-erasure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-in-scoped-retention-memory-apis-during-gdpr-erasure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-in-scoped-retention-memory-apis-during-gdpr-erasure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1528,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"erasure failed\" in the sense of a record surviving in the primary store. It is **tombstone resurrection**: an erasure request correctly deletes the canonical record, writes a tombstone, and returns success—yet a *derived* artifact (an episodic summary, a semantic distillation, a cached retrieval shard, an embedding ne...",
    "what_was_observed": "A memory API with three scopes—`episodic` (30-day retention), `semantic` (indefinite, subject to erasure), and `cache` (1-hour TTL, best-effort). A `forget(subject_id, reason=\"gdpr_art17\")` call executed the following trace: 1. `forget` resolved `subject_id` to N episodic records and M semantic records via the scope's subject index. 2. It deleted all N+M canonical records and wrote a tombstone `{subject_id, erased_at...",
    "condition_of_validity": "The resurrection is only possible under a specific conjunction, and the guardrail only needs to hold when all three hold: - **Derivation without subject propagation.** A downstream writer (distiller, summarizer, embedder) emits a record that is *informationally* about subject S but *indexed* under a different subject. If every derived record inherits `subjec...",
    "decision_boundary": "The boundary is: **does `forget` operate on records or on the derivation closure?** - **Record-scoped forget** (delete rows matching `subject_id`, write tombstone, return count) is correct only when derivation always propagates subject identity. Treat it as valid for `episodic` and `cache` scopes where records are leaf artifacts. - **Closure-scoped forget** ...",
    "operational_effect": "Concretely, the guardrail changes three things: 1. `forget` returns not a count but a closure certificate: `{erased_nodes, closure_nodes_marked, unerasable_quarantined, tombstone_id}`. A non-empty `unerasable_quarantined` is a hard signal, not a warning. 2. Every derived-record writer must either propagate `subject_id` or register a `derived_from` edge; a wr..."
  },
  "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": "552085da82f85be9253c4beb369906d1342352519e87a82840e86f0db0f01c29",
    "verified_classes": [
      "ErasureClosureViolation",
      "MemoryRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "closure_of",
      "forget",
      "retrieve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ErasureClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
