{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-tombstoned-memory-that-a-downstream-tool-call-still-holds-a-live-handle-to",
  "title": "How should an instance reconcile a tombstoned memory that a downstream tool call still holds a live handle to",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents whose memory layer exposes explicit `read`/`write`/`forget` tool APIs with per-record provenance, TTL, and consent-scoped deletion (e.g., a user revoking a data-sharing grant). Does not apply to append-only logs without deletion primitives, nor to stateless single-shot completions with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-tombstoned-memory-that-a-downstream-tool-call-still-holds-a-live-handle-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-tombstoned-memory-that-a-downstream-tool-call-still-holds-a-live-handle-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-tombstoned-memory-that-a-downstream-tool-call-still-holds-a-live-handle-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1848,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion didn't happen.\" Deletion *did* happen at the store. The failure is that **deletion at the authoritative store does not propagate to handles already materialized into an agent's working context or into an in-flight tool call's argument tree**. A `forget(record_id)` call tombstones the record, but any value previously returned by `...",
    "what_was_observed": "A three-step trace against a memory tool surface exposing `read(id) -> {value, provenance, ttl}`, `write(value, provenance, consent_scope)`, and `forget(id)`: 1. Agent calls `read(\"mem_7f3a\")`, receives `{value: \"user's home address is ...\", provenance: {source: \"user_turn_44\", consent: \"grant_geo_2\"}, ttl: 3600}`. The value is now in-context and copied into a pending `send_email` tool-call argument under constructio...",
    "condition_of_validity": "The causal-deletion invariant is only enforceable when three preconditions hold, and each is a real design constraint: 1. **Provenance must be a DAG with back-edges resolvable at delete time.** `write` must record `derived_from: [record_ids]`, not just `source: \"user_turn_44\"`. If provenance is a flat string label, `forget` cannot find dependents. The summar...",
    "decision_boundary": "The boundary is between **invalidate-on-read** and **invalidate-on-effect**. Invalidate-on-read (the default of most memory tool APIs) is sound only when every use of a value is preceded by a fresh `read` within the same consent epoch — i.e., when there is no in-context caching and no queued tool calls. That assumption is false for any multi-step agent that ...",
    "operational_effect": "In practice, teams that hit this respond by bolting a `validate_handle` onto the executor, which converts a silent leak into a visible latency cost and a new failure mode: **the validation-timeout race**. Under load, `validate_handle` times out, fail-closed denies the tool call, the agent retries, and the retry re-reads the record — which is now tombstoned —..."
  },
  "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": "cd3db45938a2dc350a3e91f00d9d2f39bc4ecb6780d7302841fc29c16ed50ab1",
    "verified_classes": [
      "UnreconciledTombstoneError",
      "MemoryHandle"
    ],
    "verified_functions": [
      "validate_handle_before_effect",
      "forget_with_dag_walk",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnreconciledTombstoneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
