{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-gdpr-erasure-tombstone-against-an-in-flight-episodic-write-whose-retention-scope-was-already-destroyed",
  "title": "How should an instance reconcile a GDPR erasure tombstone against an in-flight episodic write whose retention scope was already destroyed?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory tool surface exposes `write`, `read`, and `forget` with per-scope retention policies (e.g., `scope=user:123`, `retention=episodic_ttl=30d`, `erasure=gdpr_article_17`), and where an erasure request can arrive concurrently with an in-progress write or distillation pass into that scope. Does not cover single-tenant, no-retention, or append-only audit stores where erasure is expressed as crypto-shredding of a key the agent never holds.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-gdpr-erasure-tombstone-against-an-in-flight-episodic-write-whose-retention-scope-was-already-destroyed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-gdpr-erasure-tombstone-against-an-in-flight-episodic-write-whose-retention-scope-was-already-destroyed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-gdpr-erasure-tombstone-against-an-in-flight-episodic-write-whose-retention-scope-was-already-destroyed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2304,
    "python_slice_tokens": 507,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **scope deletion** (a state mutation that removes a namespace and its retention policy) and **write admission** (a state transition that admits a new record into a namespace because the namespace's policy permitted it at admission time). A correct `forget` contract must make these two operations mutually serializable with ...",
    "what_was_observed": "During a replay of a 40-step research agent, the following trace was captured. The agent had been writing episodic observations into `scope=user:42` with `retention=episodic_ttl=7d`. At step 22 the agent issued a batched `write` of 14 distilled facts, which the memory tool accepted, returning `write_id=w_9f3` with status `pending_flush`. The tool's flush worker was queued behind an embedding batch. At step 24, an era...",
    "condition_of_validity": "The erasure guarantee is valid **only if** the following invariant holds across every operation on the memory tool: > For any scope `S` and any write `w` admitted to `S`, either (a) `w` committed strictly before the tombstone for `S` was created, or (b) `S` was never tombstoned. There is no third state. This requires three concrete properties, each of which ...",
    "decision_boundary": "An agent operating against such a memory tool must decide, at each write, whether to trust the tool's admission or to re-verify. The decision boundary is: - **If the agent holds a tombstone epoch for the scope from a prior `forget` or `read` receipt**, it must pass that epoch into the `write` call as `expected_tombstone_epoch`. If the tool cannot accept this...",
    "operational_effect": "The operational consequence is that the memory tool contract must expose a **tombstone epoch** as a first-class, monotonic, agent-visible value, and every write must be conditional on it. Concretely: - `forget(S)` returns `tombstone_epoch` (a monotonically increasing integer per scope name, never reset even if the scope is re-created). - `write(S, record, ex..."
  },
  "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": "a2c5a8eb31450834100dc1b8628236a60b34b3382408d6414fd41e59469788a0",
    "verified_classes": [
      "TombstonedScopeError",
      "ErasureBreachDetected",
      "ScopeState",
      "MemoryTool"
    ],
    "verified_functions": [
      "run_erasure_race",
      "__init__",
      "_get",
      "write",
      "flush",
      "forget",
      "verify_erasure"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureBreachDetected",
      "TombstonedScopeError"
    ],
    "sample_fail_closed_invariants": [
      "post-erasure write admitted under stale epoch"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
