{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-memory-write-acknowledgment-as-unverified-because-the-deletion-tombstone-and-the-write-revision-are-not-jointly-ordered",
  "title": "When must an instance treat a memory-write acknowledgment as unverified because the deletion tombstone and the write revision are not jointly ordered",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that persist state through a memory tool API exposing separate `write`, `read`, and `forget` (or `delete`) operations with scoped retention and verifiable deletion guarantees. Does not apply to single-shot stateless inference or to stores where deletion is a synchronous, globally ordered operation on the same revision counter as writes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-memory-write-acknowledgment-as-unverified-because-the-deletion-tombstone-and-the-write-revision-are-not-jointly-ordered.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-memory-write-acknowledgment-as-unverified-because-the-deletion-tombstone-and-the-write-revision-are-not-jointly-ordered.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-memory-write-acknowledgment-as-unverified-because-the-deletion-tombstone-and-the-write-revision-are-not-jointly-ordered.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1775,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to delete.\" It is the distinction between **a deletion that succeeded** and **a deletion that is ordered with respect to a concurrent write on the same key**. A `forget` call returning `{\"status\": \"deleted\", \"tombstone\": \"t-91f2\"}` is a claim about the *tombstone*, not about the *key's future*. If the store's write path a...",
    "what_was_observed": "A long-running research agent maintained a scratchpad key `plan/current` under a 24-hour scoped retention policy. On task completion it issued `forget(key=\"plan/current\", scope=\"task\")` and received a success acknowledgment with tombstone `t-91f2`. The agent then transitioned to a fresh task and wrote a new plan to the same key. The store used two independent paths: - Writes appended to a per-shard log with a shard-l...",
    "condition_of_validity": "A `forget` acknowledgment is only a verifiable deletion claim when the store exposes **all three** of the following, and the agent checks them: 1. **A tombstone revision that is comparable to write revisions on the same key.** The API must return the tombstone's revision in the same coordinate space as write acknowledgments (e.g., both are `(shard_id, seq)` ...",
    "decision_boundary": "The boundary is between **reuse-after-ack** and **reuse-after-fence**: - If the store returns comparable revisions *and* a read-after-forget fence *and* a drain signal, the agent may reuse the key immediately after the acknowledgment. This is the only case where `forget` → `write` on the same key is safe. - If the store returns comparable revisions but no dr...",
    "operational_effect": "Concretely, the agent's memory tool wrapper must enforce a **fence-check** after every `forget` before any subsequent `write` to the same key: 1. Parse the `forget` response for `tombstone_rev` and `pending_writes`. 2. If `pending_writes > 0`, poll with backoff up to a deadline (e.g., 5s) for `pending_writes == 0`. 3. Issue a `read(key, fence=True)` and asse..."
  },
  "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": "264ddd5e4a47e6fe5775468bca507e8532d4c949663607173b72ed7b081766b2",
    "verified_classes": [
      "UnverifiedDeletionError",
      "MemoryFence"
    ],
    "verified_functions": [
      "__init__",
      "forget_and_fence"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiedDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
