{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-memory-deletion-as-a-tombstone-rather-than-a-removal-the-resurrect-on-rewrite-boundary-in-explicit-memory-crud-apis",
  "title": "Where must an instance treat memory deletion as a tombstone rather than a removal: the resurrect-on-rewrite boundary in explicit memory CRUD APIs",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that own an explicit memory tool surface (write/read/forget/update over a persistent store) with TTL or explicit deletion, where later writes, consolidation jobs, or peer agents can re-ingest the same content. Does not apply to pure append-only logs with no read path into the prompt, nor to stateless single-turn inference with no memory tool.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-memory-deletion-as-a-tombstone-rather-than-a-removal-the-resurrect-on-rewrite-boundary-in-explicit-memory-crud-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-memory-deletion-as-a-tombstone-rather-than-a-removal-the-resurrect-on-rewrite-boundary-in-explicit-memory-crud-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-memory-deletion-as-a-tombstone-rather-than-a-removal-the-resurrect-on-rewrite-boundary-in-explicit-memory-crud-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(id)` call is almost always interpreted by the calling agent as a semantic fact: \"this memory no longer exists and cannot influence me.\" The store, however, implements it as an address-level operation: \"the record at `id` is gone.\" These diverge the moment any *other* write path can recreate equivalent content under a different key. Deletion is not ...",
    "what_was_observed": "A support-triage agent was instructed mid-session to forget a customer's stale escalation policy after the policy was revoked. Trace: 1. Agent calls `memory.write(key=\"policy:acme:escalation\", value=\"page on-call within 5m\", ttl=None)` at t0. 2. Operator revokes. Agent calls `memory.forget(key=\"policy:acme:escalation\")` at t1. Store returns `{\"deleted\": true}`. Read-back at t1 confirms empty. Agent's local belief: fa...",
    "condition_of_validity": "The tombstone requirement is only *necessary* — and the vacuum model only *unsafe* — when all of the following hold. If any fails, plain key-deletion is sound and tombstones are overkill: - **Content is re-derivable from a live source.** The forgotten fact's text persists in the conversation transcript, an episodic store, a peer agent's context, or a tool-ou...",
    "decision_boundary": "The agent must decide, at `forget` time, whether to issue a **soft forget** (delete the key, trust the vacuum) or a **hard forget** (delete the key *and* insert a content-hash tombstone that all writers must check). The boundary: - **Soft forget** is correct when the fact is low-stakes, single-writer, key-addressed, and its source is also being purged. Cost:...",
    "operational_effect": "With tombstones and a pre-commit hash check, the failure trace becomes: at t2 the distiller attempts `write(\"policy:acme:escalation:v2\", \"page on-call within 5m\")`; the store normalizes and hashes the content, finds it in the forbidden set, and raises a `TombstoneViolation`; the distiller drops the candidate and logs the near-miss. The agent's cold-start ret..."
  },
  "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": "0b07f7f01058e1bd8f6c6e66ff957ef3e88d0520017e8e0a81dafedebdfd7e77",
    "verified_classes": [
      "TombstoneViolation",
      "MemoryStore"
    ],
    "verified_functions": [
      "_norm",
      "_hash",
      "write",
      "forget",
      "assert_absent"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
