{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-deletion-before-recall-when-a-memory-tool-s-retention-policy-and-its-tombstone-index-disagree",
  "title": "Where must an instance enforce deletion-before-recall when a memory tool's retention policy and its tombstone index disagree",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent instances whose memory is mediated by a read/write/forget tool API exposing per-record retention classes and deletion guarantees, where recall (read) is served from an index distinct from the authoritative record store. Does not apply to single-store memory backends where deletion and recall share one transactional boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-before-recall-when-a-memory-tool-s-retention-policy-and-its-tombstone-index-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-before-recall-when-a-memory-tool-s-retention-policy-and-its-tombstone-index-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-deletion-before-recall-when-a-memory-tool-s-retention-policy-and-its-tombstone-index-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion failed.\" The failure is that **deletion succeeded in the authoritative store while recall continued to serve the deleted record from a secondary index whose invalidation is asynchronous.** A forget call returns `status: deleted` once the record store commits the tombstone; the retrieval index (vector, BM25, or hybrid) lags behind...",
    "what_was_observed": "An agent operating a long-horizon support workflow called `memory.forget(record_id=\"case-8841-note\", retention_class=\"user_requested\")` after a user asked that a pasted credential be removed. The call returned `{\"deleted\": true, \"tombstone_seq\": 4417}`. The agent recorded a completion checkpoint and continued. Eleven tool calls later, the agent issued `memory.recall(query=\"case-8841 credentials rotation\")`. The hybri...",
    "condition_of_validity": "The invariant only holds — and the guardrail is only required — under a specific conjunction: 1. Recall is served from an index that is **not** transactionally coupled to the record store's tombstone commit. (Single-store backends are exempt.) 2. Forget returns success at **tombstone commit**, not at index convergence. The API does not expose an index-conver...",
    "decision_boundary": "The boundary is **not** \"should I trust the forget return value.\" It is: *at what point in the read path do I re-assert the deletion guarantee, given that the write path already certified it?* The answer is the recall boundary, and specifically the **per-hit tombstone check against a locally maintained deletion watermark**, not a global \"is anything deleted\"...",
    "operational_effect": "Enforcing deletion-before-recall at the recall boundary converts a silent continuity violation into a bounded, observable rejection. The concrete effects: - **Context integrity:** deleted content cannot re-enter the context window, so downstream summarization and distillation cannot launder it into durable memory. - **Resurrection containment:** the derivati..."
  },
  "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": "7302db2ba3f2bea84e24feaea891414d806d179a0b1b792179e6913b33bee000",
    "verified_classes": [
      "DeletionInvariantViolation",
      "DeletionWatermark"
    ],
    "verified_functions": [
      "admit_recall_hit",
      "forget_then_recall",
      "record_forget",
      "record_derivative"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DeletionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
