{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-after-targeted-deletion",
  "title": "Why does an instance resurrect deleted memory through a stale write after targeted deletion?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent memory subsystem exposing separate `write`, `read`, and `forget` tool calls where deletion is targeted (by key, span, or provenance tag) rather than a full-store wipe, and where the agent may hold cached or in-flight state across the delete. Does not apply to append-only logs with no mutation, nor to single-shot stateless invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-after-targeted-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-after-targeted-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-write-after-targeted-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1640,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgot to call `forget`.\" It is a **write-after-delete resurrection**: the agent issues a targeted `forget(key=K, provenance=P)`, the store correctly tombstones or physically removes that record, and then a *subsequent* `write` derived from context the agent already held (a pre-delete read, a summarized scratchpad, a tool-call a...",
    "what_was_observed": "A research agent maintains a scratchpad and a persistent memory store. During a task it reads a user preference record: The record is copied verbatim into the agent's message history. Later the user corrects it and the orchestrator issues: The store now holds zero live records for `user.tz`. But the agent's context window still contains the `t0` read result. On the next reasoning step the agent decides the preference...",
    "condition_of_validity": "The resurrection is *possible* whenever all four hold: - The memory API separates `forget` from context mutation — deleting from the store does not invalidate the agent's in-context copy. - Deletion is predicate-targeted (key + provenance + optional time bound), so a re-write under a fresh predicate escapes it. - `write` is upsert-style and does not check to...",
    "decision_boundary": "The correct architecture is a **tombstone-gated write**, not a smarter agent. Do not rely on instructing the model to \"remember not to re-add deleted memories\" — the resurrection write is locally rational (the value is genuinely in context and genuinely looks needed), so a probabilistic policy will re-offend under distribution shift. The boundary is: - **Del...",
    "operational_effect": "With tombstone-gated writes, the resurrection attempt fails loudly at the `write` boundary instead of silently polluting the store, and the failure is attributable: the error names the tombstone generation the agent had not acknowledged, which is exactly the stale-context signal the orchestrator needs to trigger a context refresh or checkpoint rollback. The ..."
  },
  "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": "313c253ebdfcb13fc1cb1a497271e907a5b631d3fa85d5380bdae7009bdd7b3a",
    "verified_classes": [
      "ResurrectionWriteError",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "forget",
      "write",
      "read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionWriteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
