{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-a-scoped-delete-tombstone-races-a-concurrent-memory-write-and-why-does-ttl-expiry-alone-never-satisfy-deletion-propag",
  "title": "Where must an instance halt when a scoped-delete tombstone races a concurrent memory write, and why does TTL expiry alone never satisfy deletion propagation?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent instance holding a memory tool API (`read`/`write`/`forget`) with per-scope retention classes and TTLs, where a GDPR-aligned erasure request must propagate across derived stores (episodic log, distilled semantic index, embedding cache, downstream peer replicas). Does not cover deletion of the backing object store's immutable audit log, which is governed by a separate legal-hold retention class.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-scoped-delete-tombstone-races-a-concurrent-memory-write-and-why-does-ttl-expiry-alone-never-satisfy-deletion-propag.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-scoped-delete-tombstone-races-a-concurrent-memory-write-and-why-does-ttl-expiry-alone-never-satisfy-deletion-propag.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-scoped-delete-tombstone-races-a-concurrent-memory-write-and-why-does-ttl-expiry-alone-never-satisfy-deletion-propag.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1557,
    "python_slice_tokens": 171,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the record still exists.\" It is that **deletion is a state transition on a key, while writes are state transitions on a value, and the two are ordered by different clocks.** TTL expiry is a *lazy, read-time* observation: a record past its TTL is treated as absent by a reader but is still physically present and still eligible to be re...",
    "what_was_observed": "An agent operating a customer-support memory scope received an erasure request for subject `S`. The runtime issued `forget(scope=\"subject:S\", mode=\"propagate\")`, which (a) wrote a tombstone at the scope root, (b) enqueued a reaper job to purge the episodic log and semantic index, and (c) returned `accepted` — not `committed`. The tool's contract said `accepted` means \"tombstone durable; propagation asynchronous.\" Mea...",
    "condition_of_validity": "The eager-forget invariant holds only when all three conditions are simultaneously true at the moment of any `write` or `read` touching a scope under erasure: - **C1 (lineage closure):** every derived key carries a resolvable parent pointer to its source scope, and the tombstone check walks the parent chain, not the key string. - **C2 (clock domination):** t...",
    "decision_boundary": "The instance must halt — return a hard error, not a degraded result — at exactly one boundary: **when a read warrant and a write warrant for the same lineage are not jointly dominated by the current tombstone version.** Concretely: - If `read` returns entries under scope `X` at version `V_r`, and before the corresponding `write` the tombstone version for `X`...",
    "operational_effect": "After the fix, the distillation worker's `write` failed closed with `tombstone_domination_violation`; the worker's snapshot was discarded and the derived summary was never created. The erasure completed in 40 minutes with a `pending_writers` set that drained to empty before `committed` was reported. The cost is a measurable increase in write rejections durin..."
  },
  "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": "99ce641fd506a0cbf3de17c02f05b1671e60e478223307b59b2e3bf74c360da0",
    "verified_classes": [
      "TombstoneDominationError",
      "Warrant"
    ],
    "verified_functions": [
      "commit_write",
      "finalize_forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneDominationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
