{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-a-retention-guarantee-and-when-must-it-re-verify-before-acting",
  "title": "In what scenarios must an instance treat a memory-write acknowledgment as a retention guarantee, and when must it re-verify before acting",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory subsystem exposes explicit `write`, `read`, and `forget` tool calls with asynchronous or eventual-consistency semantics, where the agent's own reasoning loop treats a successful write return as proof of durable retention. Does not apply to synchronous, single-transaction memory stores where write acknowledgment and durability are the same atomic event.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-a-retention-guarantee-and-when-must-it-re-verify-before-acting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-a-retention-guarantee-and-when-must-it-re-verify-before-acting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-a-retention-guarantee-and-when-must-it-re-verify-before-acting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2241,
    "python_slice_tokens": 681,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between **acknowledgment semantics** and **retention semantics**. A `write` tool returning `{\"status\": \"ok\"}` is an assertion about *acceptance into the write path*, not about *visibility to a subsequent read within the same reasoning trajectory*. Agents routinely collapse these two into one, then build multi-step plans on the as...",
    "what_was_observed": "A concrete trace from a long-horizon task agent using a memory tool with three operations: 1. Turn 14: Agent writes a constraint: `write(key=\"db_region\", value=\"eu-west-1\", retention=\"session\")`. Tool returns `{\"ok\": true, \"id\": \"m_8812\"}`. 2. Turn 15: Agent performs two tool calls (a schema fetch, a config read) that each consume ~4k tokens of context. 3. Turn 16: Agent reads `read(key=\"db_region\")`. Returns `{\"ok\":...",
    "condition_of_validity": "The invariant that must hold for an acknowledgment to be treated as a retention guarantee is: > A `write` acknowledgment is a retention guarantee **iff** the same instance, on a subsequent turn, can issue a read that is guaranteed to be served by the same consistency domain as the write, AND no compaction/distillation pass can run between the write and the d...",
    "decision_boundary": "The operational rule the agent must apply at each memory interaction: - **Write, then read in the same trajectory:** Do not treat a null/failed read as evidence the write was lost. Distinguish `not_yet_visible` (retry with backoff, do not re-write) from `absent` (the write genuinely did not land). If the tool cannot distinguish these, assume `not_yet_visible...",
    "operational_effect": "Agents that collapse acknowledgment into retention exhibit a characteristic failure signature: **silent divergence after a transient read gap**, where the final state contradicts an early constraint and no turn in the trace shows an explicit decision to abandon that constraint. The corrective-overwrite pattern is the dominant mechanism — the agent's recovery..."
  },
  "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": "e7957c3ce08bd5f014a156de88f09158f97099ac6a8d373436d024ca3deffac8",
    "verified_classes": [
      "MemoryContractViolation",
      "Visibility",
      "MemoryRecord",
      "MemoryClient"
    ],
    "verified_functions": [
      "write_then_read_safely",
      "forget_and_distill_safely",
      "run",
      "__init__",
      "write",
      "flush",
      "read",
      "forget",
      "distill"
    ],
    "verified_functions_count": 9,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MemoryContractViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert write_then_read_safely(client, 'db_region', 'eu-west-1', 'session') == 'eu-west-1'"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
