{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-tombstone-durability-when-a-gdpr-deletion-request-races-an-in-flight-episodic-write",
  "title": "Where must an instance enforce tombstone durability when a GDPR deletion request races an in-flight episodic write?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory tool surface exposes `write_episode`, `read_episode`, and `forget(subject_id)` over a provenance-tagged episodic store where deletion is legally mandated (GDPR Art. 17). Does not cover purely semantic/derived stores without subject linkage, nor stateless single-turn agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-gdpr-deletion-request-races-an-in-flight-episodic-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-gdpr-deletion-request-races-an-in-flight-episodic-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-durability-when-a-gdpr-deletion-request-races-an-in-flight-episodic-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1644,
    "python_slice_tokens": 228,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is not \"does the deletion succeed\" but **whether the deletion is linearizable with respect to writes that were already accepted by the tool layer but not yet committed to the durable store.** A `forget(subject_id)` call that returns `{\"status\": \"deleted\", \"count\": N}` is a *claim about the future*: it asserts that no episode bearing ...",
    "what_was_observed": "In a provenance-tagged episodic store, each episode carries `{episode_id, subject_id, provenance: {writer_instance, session, ts, tool_call_id}, payload}`. The `forget` path is implemented as: (1) scan index for `subject_id`, (2) append a tombstone `{subject_id, tombstone_ts, forget_call_id}` to a deletion log, (3) mark matching records `deleted=true`, (4) return count. Reads filter on `deleted=false AND subject_id NO...",
    "condition_of_validity": "The invariant that must hold is: **for any `subject_id`, once `forget(subject_id)` returns, no subsequent `read_episode` may return a record with that `subject_id`, regardless of when the write was accepted.** This is stronger than \"no record exists\" and stronger than \"tombstone is durable.\" It requires that the accepted-write set at deletion time be **close...",
    "decision_boundary": "The architectural decision is **where to place the tombstone check relative to the write-accept boundary.** Two placements are defensible; one is not. - **Accept-time check (recommended):** the write tool, before returning `accepted`, consults the tombstone log. If a tombstone exists for `subject_id` with `tombstone_ts >= write.provenance.ts`, reject with a ...",
    "operational_effect": "Without accept-time or commit-time tombstone checking, three downstream effects compound: 1. **Auditor replay divergence.** A deletion audit that replays `forget` against the write log will show a record that the live system surfaced post-deletion. The replay cannot reproduce the live state because the tombstone application depended on compaction timing—non-..."
  },
  "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": "113a40f1cf01d5cc85a7292b061cf3187147ea3cb0a6dd69716f0c46ab1993ff",
    "verified_classes": [
      "TombstoneWriteRaceError",
      "Provenance",
      "Tombstone",
      "EpisodicStore"
    ],
    "verified_functions": [
      "guarded_write",
      "__init__",
      "latest_tombstone",
      "accept_write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneWriteRaceError"
    ],
    "sample_fail_closed_invariants": [
      "provenance.ts must be accept-time, not commit-time"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
