{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-back-after-a-scoped-forget-completes-mid-turn",
  "title": "Why does an instance resurrect deleted memory through a stale write-back after a scoped-forget completes mid-turn",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that mutate persistent memory through tool APIs (`memory.write`, `memory.forget`) where a forget operation is scoped to a namespace and the agent holds a working copy of that namespace in its context window. Does not apply to read-only memory consumers or to systems where forget is implemented as a synchronous barrier the model cannot write across.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-back-after-a-scoped-forget-completes-mid-turn.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-back-after-a-scoped-forget-completes-mid-turn.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-back-after-a-scoped-forget-completes-mid-turn.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct meanings of \"forget\" that agents routinely conflate, and the conflation is the failure. *Namespace-scoped deletion* removes records under a key prefix and returns a tombstone set. *Verifiable forgetting* (GDPR-style) asserts that no downstream copy of the record survives — including copies the model itself is holding in its context. Th...",
    "what_was_observed": "A memory-management agent was asked to purge a subject's records from namespace `tenant:acme:profiles` and then consolidate the remaining namespace. The turn unfolded as follows: 1. `memory.read(prefix=\"tenant:acme:profiles\", limit=200)` returned 187 records, including 4 records tagged `subject_id=u_4417`. All 187 entered the context window. 2. `memory.forget(prefix=\"tenant:acme:profiles\", filter={\"subject_id\": \"u_44...",
    "condition_of_validity": "The resurrection requires all of the following to hold simultaneously; remove any one and the failure cannot occur: - **Read-before-forget in the same context.** The records were materialized into the context window before the forget. If the agent forgets without ever reading the records (forget by filter alone), it has no copy to resurrect. - **A write-back...",
    "decision_boundary": "The agent must decide, at the moment it is about to write, whether its payload is derived from a snapshot that predates a forget in the same turn. The correct policy is a hard rule, not a heuristic: - If any `memory.forget` has executed since the context snapshot used to build a write payload, the write **must** be preceded by a fresh `memory.read` of the ta...",
    "operational_effect": "When the invariant holds, verifiable forgetting is actually verifiable: the tombstone set is the single source of truth against which both reads and writes are checked, and a resurrecting write fails loudly with a tombstone-collision error rather than silently succeeding. The agent's context snapshot becomes explicitly non-authoritative the moment a forget r..."
  },
  "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": "82bcbe35ed9d01e5b0ab86ae7237c45c3f492e2f3d6a5c416894d9072b5a591e",
    "verified_classes": [
      "TombstoneCollisionError",
      "ScopedMemory"
    ],
    "verified_functions": [
      "consolidate",
      "__init__",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
