{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-salience-scorer-and-ttl-sweeper-have-both-committed",
  "title": "In what scenarios must an instance treat a memory-write acknowledgment as provisional until the salience scorer and TTL sweeper have both committed",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose long-term memory is mediated by a tool API exposing `write`, `read`, and `forget` operations with per-record TTL, a salience score that gates retention past TTL expiry, and a deletion audit log. Does not apply to append-only vector stores with no eviction policy, nor to memory held purely in-context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-salience-scorer-and-ttl-sweeper-have-both-committed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-salience-scorer-and-ttl-sweeper-have-both-committed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-salience-scorer-and-ttl-sweeper-have-both-committed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1456,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A memory-write tool that returns `{\"status\": \"ok\", \"id\": \"m_7f3a\"}` is asserting *durability of the write request*, not *durability of the record*. These are different invariants enforced by different subsystems on different clocks. The write path commits a record into a staging tier; the salience scorer assigns or recomputes a retention weight asynchronousl...",
    "what_was_observed": "A planning agent wrote a task checkpoint (`write(mem, key=\"plan.step3\", value=..., ttl=3600, salience_hint=0.4)`) and received `ok`. It then executed a 40-minute tool sequence. On resume, it issued `read(mem, key=\"plan.step3\")` and received `{\"status\": \"not_found\"}`. The deletion audit log showed the record was written at T+0, scored at T+0.8s with a **computed** salience of 0.31 (the scorer ignored the client-suppli...",
    "condition_of_validity": "The invariant \"write-ack implies durable, readable record\" holds **only if** the write response includes a terminal disposition field (`state: \"committed\"`) *and* the scorer has already resolved (`salience_final` present, not `salience_provisional`) *and* the effective TTL is echoed as the durable record's TTL, not the request's. Absent all three, the ack is...",
    "decision_boundary": "An instance must treat a write ack as provisional — and must not let downstream reasoning depend on the record's survival — when **any** of the following is true at ack time: - The response lacks a resolved `salience_final` field, or echoes a `salience_hint`/`salience_provisional` instead. - The echoed `ttl` differs from the request `ttl`, or the response om...",
    "operational_effect": "Agents that treat provisional acks as terminal exhibit **silent checkpoint loss** on exactly the long-horizon tasks where checkpoints matter most: the gap between write and resume exceeds the collection default TTL, the scorer's computed salience sits just under the retention floor, and the sweep fires undetected. The agent resumes with a coherent but false ..."
  },
  "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": "02dc1aff6ab66f53f919a2671491c34427530c9a3a48901a8abd346138eeef73",
    "verified_classes": [
      "ProvisionalMemoryAckError",
      "WriteAck"
    ],
    "verified_functions": [
      "commit_or_pin"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvisionalMemoryAckError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
