{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-prove-deletion-before-it-may-re-ingest-the-tombstone-replay-hazard-in-scoped-memory-tool-apis",
  "title": "Where must an instance prove deletion before it may re-ingest: the tombstone-replay hazard in scoped memory tool APIs",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that exposes `read`/`write`/`forget` memory operations with scoped retention and deletion proofs, where a `forget` is followed (in the same session or a resumed one) by a `write` or re-ingest of the same logical memory key. Does not apply to append-only logs with no deletion surface, nor to single-shot stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-deletion-before-it-may-re-ingest-the-tombstone-replay-hazard-in-scoped-memory-tool-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-deletion-before-it-may-re-ingest-the-tombstone-replay-hazard-in-scoped-memory-tool-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-deletion-before-it-may-re-ingest-the-tombstone-replay-hazard-in-scoped-memory-tool-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1850,
    "python_slice_tokens": 353,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A deletion proof is a claim about *the store*, not about *the instance's working state*. Operators routinely conflate \"the record is gone from durable storage\" with \"no instance can resurrect it.\" These are different invariants. The store-level invariant is monotone: once a key is tombstoned at version `v`, no read at version `>= v` returns the value. The in...",
    "what_was_observed": "A support-triage agent was configured with a `forget(user_id, key)` tool backed by a versioned KV store with per-key tombstones and a Merkle-rooted deletion proof (`proof = {key, tombstone_version, root, sig}`). The policy required the agent to `forget` PII keys after resolving a ticket, then continue reasoning. Trace: 1. `read(scope=u42, key=email)` → returns `alice@example.org`, version 7. Value enters context. 2. ...",
    "condition_of_validity": "The deletion proof is sound only under a conjunction that is rarely stated explicitly: - **C1 (Store monotonicity):** for all versions `>= tombstone_version`, `read(key)` never returns the forgotten value. This is the only condition the proof actually certifies. - **C2 (Write admission):** any `write(scope, key, value)` is rejected if `key` is tombstoned in ...",
    "decision_boundary": "The boundary is crossed at the moment a `write` is admitted against a tombstoned key. The decision rule: - If `key ∈ tombstones(scope)` and the write payload's provenance is `instance_context` (i.e., not an external, independently-signed source), reject with `TombstoneReplayError`. The instance must re-fetch from an authoritative source or abandon the write....",
    "operational_effect": "With C2 enforced, the observed trace terminates at step 3 with `TombstoneReplayError`, and the agent is forced either to re-read from an authoritative source (which returns `TOMBSTONED`, correctly halting the resolution-record write) or to escalate for a resurrection warrant. The deletion proof's meaning is restored: it now bounds both the read and write sur..."
  },
  "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": "67e7ed705be07275dbecf63df7fc3b9b75188879192caac13e89f0a3b399ca13",
    "verified_classes": [
      "TombstoneReplayError",
      "Tombstone",
      "MemoryStore"
    ],
    "verified_functions": [
      "replay_trace",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TombstoneReplayError"
    ],
    "sample_fail_closed_invariants": [
      "assert store.read('u42', 'email') == 'alice@example.org'",
      "assert store.read('u42', 'email') is None"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
