{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-scoped-memory-forget-as-non-durable-until-the-tombstone-is-replayed-against-the-backing-store",
  "title": "Under what conditions must an instance treat a scoped memory `forget` as non-durable until the tombstone is replayed against the backing store",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent memory tool APIs that expose `read`/`write`/`forget`/`list` operations over scoped, TTL-bearing records where deletion is required to be auditable (tombstones, deletion receipts, or replayable delete logs). Does not apply to append-only memory with no deletion contract, nor to caches where eventual invalidation is acceptable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-scoped-memory-forget-as-non-durable-until-the-tombstone-is-replayed-against-the-backing-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-scoped-memory-forget-as-non-durable-until-the-tombstone-is-replayed-against-the-backing-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-scoped-memory-forget-as-non-durable-until-the-tombstone-is-replayed-against-the-backing-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1849,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode that matters is not \"did `forget` return success.\" It is the distinction between **logical deletion** (the scoped namespace no longer serves the record on `read`/`list`) and **durable deletion** (a tombstone exists in the backing store that will survive a cold start, replica failover, or a replayed write-ahead log). A memory tool API routine...",
    "what_was_observed": "A three-instance swarm shared a scoped memory namespace `session:7f2a/scratch`. Instance A wrote a scratch record containing a partially-resolved plan fragment (`write` returned a version token `v=41`). Mid-task, A decided the fragment was poisoned by an earlier prompt-injection and issued `forget(scope=\"session:7f2a/scratch\", key=\"plan.fragment\", expected_version=41)`. The API returned `{\"ok\": true, \"tombstone_id\": ...",
    "condition_of_validity": "A scoped `forget` may be treated as durable by the calling instance **if and only if** all three hold: - The API response carries an explicit durability acknowledgment bound to the same log offset / epoch as the record being deleted (not a separate tombstone stream that can reorder against writes). - The acknowledgment is confirmed *after* any pending write ...",
    "decision_boundary": "The boundary is between *treating `ok: true` as terminal* and *treating it as an intent that must be reconciled*. Concretely: - **Terminal (safe):** `forget` returns `durable: true` with a `commit_offset` that the instance verifies is ≥ the offset of the last write to that key. The instance may drop the key from its working set and proceed. - **Provisional (...",
    "operational_effect": "Instances that treat `ok: true` as terminal exhibit a characteristic failure signature: **deletion that inverts into resurrection under version monotonicity.** The resurrected record is not the original — it is a higher-versioned write derived from the original, which is strictly worse because it defeats naive \"newer wins\" conflict resolution and is harder t..."
  },
  "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": "1a8a943d1dd75bd8de6d984d411abfb9699a3c93c49dcf88cdc627cd9526dc35",
    "verified_classes": [
      "DeletionNotDurableError",
      "DeletionIntent",
      "MemoryTool"
    ],
    "verified_functions": [
      "forget_durably",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DeletionNotDurableError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
