{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-tombstone-durability-when-a-scoped-retention-policy-and-a-gdpr-erasure-warrant-race-against-an-in-flight-episodic-write",
  "title": "Where must an instance enforce tombstone durability when a scoped retention policy and a GDPR erasure warrant race against an in-flight episodic write?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory tool APIs exposing `write`, `read`, and `forget` verbs with per-scope retention TTLs and subject-keyed erasure warrants. Does not address bulk re-embedding drift, cold-start amnesia, or cross-tenant schema negotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-scoped-retention-policy-and-a-gdpr-erasure-warrant-race-against-an-in-flight-episodic-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-scoped-retention-policy-and-a-gdpr-erasure-warrant-race-against-an-in-flight-episodic-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-scoped-retention-policy-and-a-gdpr-erasure-warrant-race-against-an-in-flight-episodic-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1636,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion didn't happen.\" It is a **tombstone durability violation**: the erasure warrant is recorded and acknowledged, but a concurrent episodic write that was *admitted before the tombstone* lands *after* it, resurrecting the erased subject's data under a new memory ID. The distinction that matters operationally is between **deletion as ...",
    "what_was_observed": "An agent operating a customer-support memory scope issued a `forget(subject_id=\"u_8842\", warrant=\"gdpr_art17\", scope=\"support_history\")`. The memory service: 1. Resolved the subject to 41 episodic records across three shards. 2. Wrote a tombstone row `{subject: u_8842, erased_at: t=1000, warrant: gdpr_art17}`. 3. Deleted the 41 records. 4. Returned `{\"status\": \"erased\", \"count\": 41, \"tombstone_ts\": 1000}`. Between st...",
    "condition_of_validity": "The invariant that the naive implementation assumes and does not enforce: > For any subject `s` and any tombstone `T(s, ts)`, no record referencing `s` with commit sequence number `> seq(T)` exists in any shard, at any time after `seq(T)` is acknowledged. This holds only if the write path performs a **tombstone read** on the subject key *inside the same seri...",
    "decision_boundary": "An instance must decide, per scope, whether its memory backend provides **fenced erasure** or only **best-effort deletion**, and must refuse to emit a GDPR-conformant erasure acknowledgment on the latter. The boundary is crossed when any of the following is true: - The `forget` API returns a success status without a `barrier_seq` that the write path is known...",
    "operational_effect": "The residual-write window is bounded by `(admission latency + embedding latency + commit queue depth)` for concurrent writes, and is **unbounded** for backdated writes unless C2 holds. In practice the observed window was 7 ms for the concurrent case and effectively infinite for the distiller case, which is why the second failure went undetected for weeks: th..."
  },
  "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": "4b9ef3b3ddc44b42ee5c2de50a1554e702b8e96e16989632bb8991e2cc40f9db",
    "verified_classes": [
      "UnfencedErasureError",
      "Tombstone",
      "MemoryWrite",
      "FencedMemory"
    ],
    "verified_functions": [
      "run_erasure",
      "__init__",
      "_next_seq",
      "forget",
      "write",
      "acknowledge_erasure"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnfencedErasureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
