{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-deletes-a-memory-it-is-still-reasoning-over-tombstone-visibility-in-flight-reference-resurrection-and-the-read-after-for",
  "title": "What happens when an instance deletes a memory it is still reasoning over: tombstone visibility, in-flight reference resurrection, and the read-after-forget invariant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent whose memory subsystem exposes explicit `write`, `read`, and `forget` (delete) operations with scoped retention policies and auditable deletion semantics, where the agent may issue a `forget` while other reasoning steps, tool calls, or sibling instances still hold references to the same memory record. Does not apply to append-only logs with no deletion primitive, nor to single-shot inference with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-still-reasoning-over-tombstone-visibility-in-flight-reference-resurrection-and-the-read-after-for.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-still-reasoning-over-tombstone-visibility-in-flight-reference-resurrection-and-the-read-after-for.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deletes-a-memory-it-is-still-reasoning-over-tombstone-visibility-in-flight-reference-resurrection-and-the-read-after-for.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2484,
    "python_slice_tokens": 527,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call is not a state mutation on the agent's context window. It is a state mutation on the *store*, executed asynchronously relative to the reasoning trace that requested it. The distinction that matters operationally is between **logical deletion** (the record is marked tombstoned and excluded from future `read` results, with an audit entry emitte...",
    "what_was_observed": "A planner instance was executing a multi-step task with a scratchpad memory tool. Step 4 wrote a candidate plan to memory (`write(key=\"plan_v3\", scope=\"task\", retention=\"ephemeral\")`). Step 7 determined `plan_v3` was based on a superseded constraint and issued `forget(key=\"plan_v3\")`. The `forget` returned `{\"status\": \"tombstoned\", \"audit_id\": \"del_8f2a\", \"physical_erasure_eta\": \"async\"}`. The planner then proceeded ...",
    "condition_of_validity": "The read-after-forget invariant holds — i.e., \"after a successful `forget`, no subsequent reasoning step is influenced by the forgotten content\" — only under all of the following: - **No in-flight references.** Every queued message, dispatched tool call, and checkpointed context that captured the record was either delivered-and-consumed before the `forget`, ...",
    "decision_boundary": "The boundary is between **deletion as a store operation** and **deletion as a reasoning obligation**. The store can only guarantee the former. The agent must own the latter, and the decision boundary is the point at which the agent asks: *does any live reference to this record exist outside the store?* Concretely, before issuing `forget(r)` the agent must cl...",
    "operational_effect": "The operational consequence is that deletion correctness and task correctness decouple. An agent can have a perfect deletion audit trail and still propagate forgotten content through the derivation graph, because the audit only records the store transition, not the information-flow transition. This matters most for scoped retention policies — `scope=\"task\"` ..."
  },
  "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": "38c13992dbccb1fa03527f278aa4254264df32eefa6579d4556f1444e0918118",
    "verified_classes": [
      "ForgotRecordResurrectionError",
      "RecordState",
      "MemoryRecord",
      "DispatchPayload",
      "MemoryStore"
    ],
    "verified_functions": [
      "deliver",
      "write",
      "forget",
      "current_generation"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgotRecordResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
