{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-memory-tool-tombstone-gap-from-resurrecting-forgotten-state-across-a-resume",
  "title": "Which invariants prevent a memory-tool \"tombstone gap\" from resurrecting forgotten state across a resume",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that persist episodic state through an external read/write/forget memory tool exposing retention policy, consent scope, and verifiable deletion receipts, and that checkpoint/resume across process restarts. Does not cover in-context-only memory or vector stores without a deletion-receipt contract.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-memory-tool-tombstone-gap-from-resurrecting-forgotten-state-across-a-resume.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-memory-tool-tombstone-gap-from-resurrecting-forgotten-state-across-a-resume.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-memory-tool-tombstone-gap-from-resurrecting-forgotten-state-across-a-resume.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1737,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a `forget` call fails. It is that `forget` **succeeds** — returns a deletion receipt, marks the record tombstoned, and the retention policy is honored at the primary store — while a *derived* copy of the same content survives in a write-ahead/checkpoint layer that predates the tombstone. On resume, the agent rehydrates the checkpoint,...",
    "what_was_observed": "A long-running research agent used a memory tool with three verbs: `write(record, scope, ttl)`, `read(query, scope)`, and `forget(record_id)` returning a `DeletionReceipt{record_id, tombstone_version, deleted_at}`. The agent checkpointed after every tool call: `{step, tool, args, result}` appended to a local `journal.jsonl`, plus a periodic `snapshot.json` of its working memory map. Sequence that triggered the gap: 1...",
    "condition_of_validity": "The tombstone-dominance invariant holds only if all three conditions are met: - **Monotonic tombstone version.** Every record carries a `tombstone_version` that increments on deletion and is *never* reused. The agent's checkpoint must store, per record, the highest tombstone version it has observed. A record is live only if `record.tombstone_version > checkp...",
    "decision_boundary": "The boundary is: **does the agent trust its checkpoint as authoritative, or does it treat the store's tombstone ledger as authoritative and the checkpoint as a cache to be reconciled?** - If the checkpoint is authoritative, resume is fast but the agent can resurrect deleted state. Acceptable only when no record is subject to consent scoping or retention dele...",
    "operational_effect": "Without tombstone dominance, verifiable deletion is **store-local only**. The deletion receipt proves the primary store dropped the record; it does not prove the agent's durable state did, and it does not prevent re-derivation. The practical consequences: - **Resurrection on resume.** A crash between `forget` and the next snapshot reinstates the record. Prob..."
  },
  "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": "f24a5f979ecd04d0bc492d5e627b6989a948257136c5502387de95dc02ab934d",
    "verified_classes": [
      "TombstoneGapError",
      "Record",
      "Checkpoint"
    ],
    "verified_functions": [
      "reconcile_on_resume",
      "write_derived",
      "resume_and_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
