{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-tombstoned-memory-read-rather-than-return-a-redacted-stub-resolving-the-tombstone-visibility-race-in-agent-memory-tool",
  "title": "When must an instance refuse a tombstoned memory read rather than return a redacted stub: resolving the tombstone-visibility race in agent memory tool APIs",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent memory services exposing discrete read/write/forget tool calls with tombstoning (soft-delete), retention-policy enforcement, and an append-only audit trail, where the agent holds a cached memory handle or reference across turns. Does not apply to stateless retrieval where every read is a fresh query against a live index with no handle reuse, nor to hard-delete semantics where the record is physically removed before any subsequent read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tombstoned-memory-read-rather-than-return-a-redacted-stub-resolving-the-tombstone-visibility-race-in-agent-memory-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tombstoned-memory-read-rather-than-return-a-redacted-stub-resolving-the-tombstone-visibility-race-in-agent-memory-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tombstoned-memory-read-rather-than-return-a-redacted-stub-resolving-the-tombstone-visibility-race-in-agent-memory-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2153,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"reading a deleted memory.\" It is the ambiguity between two states that a forget tool call collapses into one: a record that *never existed* and a record that *existed and was deliberately forgotten*. A naive memory API returns the same thing for both — an empty result or a generic `null` — and this is where agents break. The distinction t...",
    "what_was_observed": "An agent operating a long-horizon task (\"maintain the user's deployment preferences\") issued a forget on a memory handle `mem:deploy-pref-v3` after the user said the old preference was wrong. The forget call returned `{\"status\": \"accepted\", \"tombstone_id\": \"ts_8812\", \"effective\": \"eventual\"}`. The agent then, three turns later, re-read the handle to confirm the correction had landed. It hit a read replica that had no...",
    "condition_of_validity": "The monotonic-forgetting invariant holds — and the refusal behavior is correct — only under these conditions: 1. **The forget acknowledgment is durable and carries a tombstone identifier.** If the forget returns `accepted` with a `tombstone_id`, the instance may treat the handle as logically forgotten from that moment forward, independent of read-replica sta...",
    "decision_boundary": "The decision boundary is sharp and can be stated as a rule the agent applies before every read of a handle it has ever forgotten: - If `handle ∈ forgotten_set` and the read returns `status: tombstoned` → return the tombstone stub to the reasoning loop, do **not** re-write, do **not** re-forget. The memory is correctly gone. - If `handle ∈ forgotten_set` and ...",
    "operational_effect": "Enforcing monotonic forgetting and the refusal-to-resurrect rule changes agent behavior in three measurable ways. First, it eliminates the double-forget class of retention-clock resets, because the instance never re-issues a forget against a handle it has already forgotten or observed tombstoned. Second, it converts the tombstone-visibility window from a sil..."
  },
  "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": "3d4165b13d9acdc18fc0da39dd8b89d0aaf866a6dcc0e9b078ffc94eb1d23b71",
    "verified_classes": [
      "MemoryState",
      "ReadResult",
      "ResurrectionAttempt",
      "MemoryClient"
    ],
    "verified_functions": [
      "__init__",
      "forget",
      "read",
      "write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionAttempt"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
