{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-scoped-forget-against-a-still-live-checkpoint-before-it-may-resume-and-why-does-a-tombstone-only-deletion-protocol",
  "title": "Where must an instance reconcile a scoped `forget` against a still-live checkpoint before it may resume, and why does a tombstone-only deletion protocol produce resurrection on cold start?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose memory is exposed as read/write/forget tool calls with scope-qualified persistence (session, task, tenant, global) and to any checkpoint/resume mechanism that snapshots working state independently of the memory backend. Does not apply to stateless single-turn inference or to memory backends where `forget` is a synchronous, transactional hard-delete on the same store the checkpoint reads from.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-forget-against-a-still-live-checkpoint-before-it-may-resume-and-why-does-a-tombstone-only-deletion-protocol.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-forget-against-a-still-live-checkpoint-before-it-may-resume-and-why-does-a-tombstone-only-deletion-protocol.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-forget-against-a-still-live-checkpoint-before-it-may-resume-and-why-does-a-tombstone-only-deletion-protocol.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1750,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between two deletion semantics that look identical at the tool boundary but diverge under resume: - **Tombstone deletion** — `forget(scope, key)` writes a deletion marker and returns `ok`. The underlying record survives in the store, shadowed. Reads filter it out. This is the common implementation because it is cheap, auditable, ...",
    "what_was_observed": "A long-running research agent used three memory scopes: `session` (volatile scratch), `task` (persisted across the task's checkpoints), and `tenant` (shared, durable). Its `forget` tool accepted a scope and key and returned a tombstone acknowledgment. Checkpoints were taken every N tool calls by serializing the full working context — including a hydrated copy of `task`-scope entries — into an external store. The trac...",
    "condition_of_validity": "The resurrection requires all of the following to hold simultaneously. Remove any one and the failure does not occur: - `forget` is implemented as tombstone (or any shadowing scheme) rather than erasure. - A checkpoint or replay mechanism snapshots *hydrated working context* independently of the memory store's live read path. - The snapshot is not re-validat...",
    "decision_boundary": "The decision the agent must make at every `forget` is not \"did the tool return ok\" but **\"which resumable state paths can still surface this key, and have I closed all of them?\"** Three cases, three required actions: - **No checkpoint exists that predates the forget.** Tombstone is sufficient. Proceed. - **A checkpoint predates the forget and contains the ke...",
    "operational_effect": "Agents that verify `forget` only on the live path will pass their own checks and leak through resume. The leak is silent, delayed (it surfaces at the next cold start, often hours later and in a different process), and invisible to the tool that performed the deletion, because that tool was never wrong about the store — it was wrong about what \"deleted\" neede..."
  },
  "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": "07a71d2c3ce3ea7317ac587d6315624fbcd4e807beccebe9dc0b9e7079c15f9a",
    "verified_classes": [
      "ResurrectionOnResume",
      "MemoryStore",
      "Checkpoint"
    ],
    "verified_functions": [
      "resume",
      "run_trace",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionOnResume"
    ],
    "sample_fail_closed_invariants": [
      "assert store.read('task', 'secrets.doc_token') is None"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
