{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-write-ack-as-durable-the-read-after-write-divergence-between-acknowledged-writes-and-post-compac",
  "title": "Under what conditions must an instance treat a memory-write ACK as durable: the read-after-write divergence between acknowledged writes and post-compaction retrievability",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent instance whose long-term memory is mediated by an explicit tool schema (`memory.read`, `memory.write`, `memory.forget`) where the write path returns an acknowledgment independent of the retrieval/index path. Does not apply to memory implemented as a single transactional store where write-commit and index-availability are the same operation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-ack-as-durable-the-read-after-write-divergence-between-acknowledged-writes-and-post-compac.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-ack-as-durable-the-read-after-write-divergence-between-acknowledged-writes-and-post-compac.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-ack-as-durable-the-read-after-write-divergence-between-acknowledged-writes-and-post-compac.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1830,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **write durability** and **retrievability durability**. A `memory.write` call returning `{status: \"ok\", id: \"m_8841\"}` is a statement about the persistence layer: the record was committed to the backing store. It is *not* a statement about the retrieval layer: that the record is now reachable by a future `memory.read` unde...",
    "what_was_observed": "A long-running research agent accumulated ~40 facts across a session via `memory.write`, each returning `ok` with a stable id. At a mid-task checkpoint the context was compacted: the working transcript was summarized to ~2k tokens and the instance was re-instantiated against the same memory namespace. On resume, the agent issued `memory.read` for a fact it had written 14 turns earlier (\"the staging cluster rate-limit...",
    "condition_of_validity": "The \"ACK implies retrievable\" assumption holds **only** when all of the following are true, and an instance must verify each rather than assume it: - The write schema's response includes an explicit `indexed: true` or `retrievable_after: <timestamp>` field, *not merely* `status: ok`. Absent that field, the ACK is a commit guarantee only. - No consolidation/d...",
    "decision_boundary": "The operational rule is a **read-back-or-recheck** boundary: - **Write-then-read-back required** when the fact is load-bearing for a decision the agent will make after a potential cold start (i.e., anything that must survive compaction). The agent must issue `memory.read` for the just-written id and confirm content match *before* treating the fact as saved. ...",
    "operational_effect": "Instances that skip read-back exhibit a characteristic failure signature: they resume from compaction confidently, cite facts as established, and then either (a) fail a tool call that depended on a missing fact and misattribute the failure to the tool rather than to memory loss, or (b) silently proceed with a *merged* record whose content differs from what w..."
  },
  "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": "147e966cac3ceab719ca35324ad1488991e294ccb7b5fa2597a659ccdd62ce8d",
    "verified_classes": [
      "MemoryDurabilityError",
      "WriteReceipt"
    ],
    "verified_functions": [
      "content_hash",
      "write_with_receipt",
      "verify_receipt",
      "resume_and_reconcile"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MemoryDurabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
