{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-forget-a-provenance-tagged-memory-whose-write-quorum-was-never-acknowledged",
  "title": "When must an instance refuse to forget a provenance-tagged memory whose write quorum was never acknowledged",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that expose distinct `write_memory`, `read_memory`, and `forget_memory` tool calls over a provenance-tagged vector store plus an episodic log, where a `forget` can be issued against an item whose `write` returned before write-quorum acknowledgment. Does not apply to append-only stores with no deletion primitive, or to single-writer stores where write and forget are serialized on one connection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-a-provenance-tagged-memory-whose-write-quorum-was-never-acknowledged.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-a-provenance-tagged-memory-whose-write-quorum-was-never-acknowledged.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-a-provenance-tagged-memory-whose-write-quorum-was-never-acknowledged.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1699,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forget deleted something it shouldn't have.\" The recoverable bug is subtler: **a `forget` acknowledgment is a claim about the durable absence of a record, but the record it is forgetting may not yet be durably present.** When `write_memory` returns optimistically (vector upsert queued, episodic append pending replication) and the agent th...",
    "what_was_observed": "A research agent ran a three-turn loop: `write_memory(\"user's employer is Acme\", provenance=span_42)`, then a tool result contradicted it (`\"user's employer is Initech\"`), then `forget_memory(provenance=span_42)` followed immediately by `write_memory(\"user's employer is Initech\", provenance=span_47)`. The forget returned `{\"status\": \"forgotten\", \"tombstones\": 1}`. The vector query for \"employer\" returned only Initech...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: 1. `write_memory` returns before the episodic append is durably ordered (optimistic ack, queue depth > 0, or replication lag). 2. `forget_memory` appends its own episodic event synchronously, so the forget's log position is *later in arrival* but *earlier in sequence* than the pending write. ...",
    "decision_boundary": "The boundary is: **an instance must refuse to execute `forget_memory` against a provenance tag whose write has not returned a durable commit token, and must instead return a deferred-forget handle.** Concretely: - `write_memory` must return a `commit_token` that is only issued after the episodic append is ordered (or must return `{\"status\": \"pending\", \"commi...",
    "operational_effect": "With the token requirement in place, the three-turn loop becomes: write returns `pending`; the agent, seeing contradiction, issues `retract(commit_token=pending_handle)` which enqueues a cancel that the write pipeline applies before flush; the subsequent `write(span_47)` commits with its own token. Replay folds `write(span_42)` → `retract(span_42)` → `write(..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "c85b091da065f81c0e7885553f79ba6b3aac5b688705a680428ddd39c43f4092",
    "verified_classes": [
      "UncommittedForgetError",
      "WriteHandle",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write_memory",
      "forget_memory",
      "retract"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UncommittedForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
