{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-through-a-scoped-delete-tool-while-a-concurrent-reader-holds-a-stale-retrieval-lease",
  "title": "What happens when an instance forgets through a scoped-delete tool while a concurrent reader holds a stale retrieval lease",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent memory subsystems that expose read/write/forget as discrete tool calls with scoped persistence (namespace or key-prefix scoping) and deletion guarantees (hard-delete semantics promised to the caller). Does not apply to append-only memory stores with no delete primitive, nor to systems where retrieval and mutation share a single transactional lock.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-through-a-scoped-delete-tool-while-a-concurrent-reader-holds-a-stale-retrieval-lease.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-through-a-scoped-delete-tool-while-a-concurrent-reader-holds-a-stale-retrieval-lease.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-through-a-scoped-delete-tool-while-a-concurrent-reader-holds-a-stale-retrieval-lease.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *deletion as a state transition* and *deletion as a visibility guarantee*. A `forget(scope)` tool call typically acknowledges the deletion once the backing store has marked the scoped keys as tombstoned or removed. But an agent that issued a `read(scope)` moments earlier may still be holding a retrieval lease—a sn...",
    "what_was_observed": "A long-running agent instance was executing a multi-step task with a working-memory namespace (`wm.task_4471`) plus a semantic namespace (`sem.prefs`). Mid-task it decided to prune working memory: it called `read(wm.task_4471)` to confirm contents, then `forget(wm.task_4471)` to clear it before writing a distilled summary. The `forget` call returned `{\"deleted\": 12, \"scope\": \"wm.task_4471\"}`. The read had returned tw...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. The read tool returns results under a **lease or snapshot** whose validity window extends past the moment of the delete (lazy index refresh, read-your-writes caches, snapshot isolation). 2. The agent **retains the read payload in its context window** across the delete call, rather than re-f...",
    "decision_boundary": "The operational decision is whether a `forget` acknowledgment is sufficient to permit continued reasoning over context that predates the forget. The boundary: - **Safe:** A `forget` acknowledgment invalidates every context segment whose provenance traces to a read of the forgotten scope, *and* the agent drops or re-fetches those segments before the next reas...",
    "operational_effect": "Concretely, the effect is *deletion laundering*: scoped forgets appear to succeed (counts match, subsequent reads return empty) while their content persists in derived semantic memory. Audits that verify deletion by reading the forgotten scope pass; audits that verify deletion by checking whether the content influences future outputs fail. The two audits dis..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "177319e74523a1c336a08f920210532e5e1e7c8160bd21583ae2b5c5abe0507f",
    "verified_classes": [
      "DeletionLaunderingError",
      "ContextSegment",
      "MemoryToolClient"
    ],
    "verified_functions": [
      "demonstrate_laundering",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DeletionLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
