{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tombstone-resurrection-from-re-embedding-erased-agent-memories-after-gdpr-deletion",
  "title": "Which invariants prevent tombstone resurrection from re-embedding erased agent memories after GDPR deletion",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores that combine a vector index with an episodic log and a distillation pipeline (episodic → semantic) serving retrieval at inference time. Does not apply to stateless single-turn agents or to stores where the vector index is the sole source of truth with no derived/compacted copies.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-from-re-embedding-erased-agent-memories-after-gdpr-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-from-re-embedding-erased-agent-memories-after-gdpr-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-from-re-embedding-erased-agent-memories-after-gdpr-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1725,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A GDPR erasure request (\"forget subject S\") is enforced as a *delete from the primary store*. Agents do not have one store. They have at least four representations of the same memory: the raw episodic record, the embedding vector in the ANN index, the distilled semantic fact (a natural-language sentence the agent wrote about S during consolidation), and the ...",
    "what_was_observed": "A support agent's memory pipeline ran nightly consolidation: it read the last 24h of episodic logs, summarized them into semantic facts, embedded each fact, and upserted into the vector index. Erasure requests were handled by a synchronous `delete(subject_id)` that purged the episodic rows and issued an ANN `delete` by vector ID. Trace of a resurrection: 1. At T0, subject S's episode `ep_4471` is written to the episo...",
    "condition_of_validity": "Tombstone resurrection is possible exactly when all three hold: - **Derivation is lossy in the forward direction.** The semantic fact does not carry the subject key, so erasure-by-subject cannot find it by content. This is the normal case: distillation is *supposed* to strip identifiers to make facts general. - **The derived artifact outlives the delete.** C...",
    "decision_boundary": "The architectural invariant that bounds this is a **deletion propagation closure over the derivation DAG, enforced at write time, not at delete time.** Concretely: - Every derived artifact must carry a *provenance set* (the transitive subject IDs of all episodes it was distilled from), written by the consolidator at creation. The fact text stays identifier-f...",
    "operational_effect": "With the closure invariant enforced, the failure trace changes at step 3: the erasure closure query finds `sem_9921` via its provenance set `{S}`, deletes it and `vec_9921`, and writes `S` to the tombstone set. At T1+2h, retrieval returns nothing for S. If a rebuild runs, it encounters `ep_4471` in the tombstone set and raises rather than re-embedding. The c..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "6c89977c04f89a9737dbad696c59dcc9e7a59684c1cf762311a45773f094f10c",
    "verified_classes": [
      "ResurrectionViolation",
      "DerivedArtifact",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "erase",
      "consolidate",
      "rebuild_index"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResurrectionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
