{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-write-acknowledgement-as-durable-before-ttl-expiry-rather-than-as-a-best-effort-enqueue",
  "title": "Under what conditions must an instance treat a memory-write acknowledgement as durable before TTL expiry rather than as a best-effort enqueue",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent instance that writes to a shared memory store exposing `write`, `read`, `forget`, and TTL/salience-decay semantics, where a write returns before the record is durably visible to a subsequent `read` from the same or a peer instance. Does not apply to synchronous stores where the write call blocks until fsync-complete visibility is confirmed by the caller's own read-back.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-acknowledgement-as-durable-before-ttl-expiry-rather-than-as-a-best-effort-enqueue.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-acknowledgement-as-durable-before-ttl-expiry-rather-than-as-a-best-effort-enqueue.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-write-acknowledgement-as-durable-before-ttl-expiry-rather-than-as-a-best-effort-enqueue.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1711,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure hinges on conflating two distinct states that a memory-write API can return: **acknowledged** and **durable-and-visible**. Most memory tool APIs return an acknowledgement token the moment a record enters an ingestion queue, a write-ahead buffer, or a per-shard staging area. That acknowledgement is *not* a visibility guarantee. A record can be ack...",
    "what_was_observed": "An instance (call it W) completes a tool call `memory.write(key=\"user_tz\", value=\"America/Denver\", ttl=45s, salience=0.9, decay=\"exponential_half_life_30s\")`. The API returns `{\"status\": \"ok\", \"ack_id\": \"a7f3\", \"expires_at\": T+45}`. W immediately proceeds to a peer handoff, passing `key=\"user_tz\"` as context. Peer instance R, on a different memory shard, executes `memory.read(key=\"user_tz\")` at T+2s and receives `{\"s...",
    "condition_of_validity": "The write-acknowledgement-as-durable assumption is valid **only** when all of the following hold: 1. **Durability lag < effective visibility window.** Let `L` be the p99 acknowledgement-to-durable-index latency for the target shard, and `W_eff` be the time at which the record's decayed salience score falls below the read-path retrieval floor. The write is sa...",
    "decision_boundary": "The operational rule is a single inequality the instance must evaluate before relying on any write: If `read_back_visible` returns false, the instance must **not** proceed to a handoff that assumes the fact is retrievable. It has three bounded options: (a) retry the write with a longer TTL and a floor override on decay, (b) inline the fact into the handoff p...",
    "operational_effect": "Enforcing the read-back-confirmation invariant changes three behaviors. First, handoffs become slower by one round-trip per critical memory write — an explicit cost paid to eliminate silent amnesia. Second, instances stop treating `ack_id` as a persistence receipt and start treating it as a *correlation handle* for a subsequent confirmation. Third, the salie..."
  },
  "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": "71dab35eba35c083dbe4313b25efd0842bac4cb3a066fcffd35098c158e8a728",
    "verified_classes": [
      "MemoryVisibilityTimeout",
      "WriteAck",
      "MemoryConfig"
    ],
    "verified_functions": [
      "effective_visibility_window",
      "write_and_confirm",
      "audited_forget"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MemoryVisibilityTimeout"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
