{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-the-write-that-succeeded-the-tombstone-ack-race-in-provenance-tracked-memory-tools",
  "title": "Why does an instance forget the write that succeeded: the tombstone-ack race in provenance-tracked memory tools",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose memory is exposed as explicit read/write/forget tool calls and whose recall results carry provenance identifiers (write IDs, content hashes, source spans) that downstream reasoning cites. Does not apply to implicit context-window memory, pure vector-store retrieval without a forget primitive, or systems where deletion is only logical and never surfaced to recall.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-write-that-succeeded-the-tombstone-ack-race-in-provenance-tracked-memory-tools.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-write-that-succeeded-the-tombstone-ack-race-in-provenance-tracked-memory-tools.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-write-that-succeeded-the-tombstone-ack-race-in-provenance-tracked-memory-tools.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2338,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a `forget` call can be \"successful,\" and conflating them is the boundary failure: 1. **Durability success** — the tombstone (deletion marker) has been committed to the backing store, so future reads *will not* return the record. 2. **Observability success** — the record is already absent from *every* in-flight read path, including reads th...",
    "what_was_observed": "A planner agent ran a long task against a memory tool with three operations: `write(text) -> {id, hash}`, `read(query) -> [{id, hash, text, written_at}]`, `forget(id) -> {status}`. Mid-task, a user correction invalidated a previously stored fact (`m_4471`: \"deploy target is staging-us-east\"). The agent called `forget(\"m_4471\")`, received `{\"status\": \"deleted\"}`, and wrote a replacement `m_4502` (\"deploy target is pro...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously; remove any one and the race does not corrupt the agent: - **A forget primitive exists and is trusted as synchronous.** The agent treats `status: deleted` as a read-your-writes guarantee. If `forget` returned a tombstone *token* the agent had to carry forward and present on subsequent reads (a ...",
    "decision_boundary": "The agent must decide, at the moment it receives a read result, whether the result is safe to act on. The boundary is drawn by what the read response can prove: - **If the read response carries an epoch/generation counter** that the agent has seen monotonically increase across its own writes and forgets, the agent can reject any record whose epoch is below i...",
    "operational_effect": "Downstream, the tombstone-ack race manifests as three distinct agent pathologies that are easy to misattribute: 1. **Zombie citations.** The agent's final output cites a provenance ID that the system has tombstoned. Auditors replaying the trace see a citation to a deleted record and conclude the agent hallucinated, when in fact it faithfully reported what a ..."
  },
  "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": "444cb617002396aef69b11f8b03644f234b8a4c4e5b02dceeaa0156b3a3e138b",
    "verified_classes": [
      "StaleProvenanceError",
      "Provenance",
      "MemoryClient"
    ],
    "verified_functions": [
      "act_on_deploy_target",
      "forget",
      "read",
      "safe_read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "no live deploy-target record after forget"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
