{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-retention-scope-has-been-re-read-after-a-forget-operat",
  "title": "In what scenarios must an instance treat a memory-write acknowledgment as provisional until the retention scope has been re-read after a forget operation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents whose memory layer exposes separate `write`, `read`, and `forget` (delete) operations with per-record retention scopes (e.g., `session`, `task`, `tenant`) and where a `forget` call can cascade or tombstone records that a concurrent `write` is targeting. Does not apply to append-only logs with no deletion primitive, or to single-threaded agents with no overlapping memory mutations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-retention-scope-has-been-re-read-after-a-forget-operat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-retention-scope-has-been-re-read-after-a-forget-operat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-write-acknowledgment-as-provisional-until-the-retention-scope-has-been-re-read-after-a-forget-operat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between a *write acknowledgment* (the tool returned `ok` and a record handle) and a *write durability* (the record will be readable under the retention scope that the agent believes governs it). Most memory tool APIs conflate these: the `write` returns success as soon as the record is staged, but the record's effective visibil...",
    "what_was_observed": "A task-scoped agent was consolidating episodic notes into a semantic record. The sequence produced by the tool layer: 1. `write(scope=\"task:4471\", key=\"user_timezone\", value=\"UTC-5\")` → `{ok: true, gen: 12}` 2. Concurrently, the orchestrator issued `forget(scope=\"task:4471\", reason=\"task reset\")` → `{ok: true, gen: 13, tombstoned: 41}` 3. Agent, trusting step 1, proceeded to `read(scope=\"task:4471\", key=\"user_timezon...",
    "condition_of_validity": "The provisional-acknowledgment invariant holds—and must be enforced—under all three of the following, which were jointly true here: - **Overlapping scope mutation:** a `forget` targeting the same scope (or an ancestor scope, via cascade) can be issued by any actor between the `write` call and its first subsequent `read`. This includes the agent's own paralle...",
    "decision_boundary": "The boundary is drawn at the first `read` following a `write` into a scope that has any concurrent mutator. Concretely: - **Before the boundary (write ack received, no re-read yet):** the record is *provisional*. The agent may use it for in-flight reasoning only if it also carries the write's `gen`. It must not commit the fact to a durable plan, must not emi...",
    "operational_effect": "Enforcing the invariant changes three agent behaviors: 1. **Write acknowledgments are parsed for generation, not just `ok`.** The generation is stored alongside the record handle and travels with the provisional fact through the reasoning loop. 2. **`scope_tombstoned` and generation-advance are classified as supersession, not error.** The retry budget is not..."
  },
  "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": "d846696a3b00038bbfee069a45dbca7708beb9d4eef5d7b89616190c4778ecf5",
    "verified_classes": [
      "ProvisionalWriteViolation",
      "WriteAck",
      "ReadResult"
    ],
    "verified_functions": [
      "commit_fact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvisionalWriteViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
