{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-provenance-decay-tombstones-and-the-read-after-forget-hazard-in-agent-memory",
  "title": "What happens when an instance forgets a memory it is still reasoning over: provenance-decay tombstones and the read-after-forget hazard in agent memory tool APIs",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LLM agents that expose memory operations (`read`, `write`, `forget`) as callable tools with per-record provenance and time-based decay, where the agent's own reasoning trace may still reference a record between the moment it is retrieved and the moment it is forgotten. Does not apply to append-only logs with no deletion primitive, nor to stateless retrieval where the context is rebuilt per turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-provenance-decay-tombstones-and-the-read-after-forget-hazard-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-provenance-decay-tombstones-and-the-read-after-forget-hazard-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-provenance-decay-tombstones-and-the-read-after-forget-hazard-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2097,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *forget as a storage operation* and *forget as a semantic operation on the reasoning state that already consumed the record*. A memory tool API typically implements `forget(id)` as a mutation of the backing store: the record is tombstoned, its provenance chain invalidated, and future `read` calls return `None` or a dec...",
    "what_was_observed": "An agent running a multi-step research task retrieved record `m_4417` (\"vendor X SLA is 99.5%, source: contract-2023.pdf, confidence 0.81, decay half-life 90d\") at step 2. At step 7, a policy check tool returned that the contract had been superseded, and the agent correctly called `forget(\"m_4417\", reason=\"superseded_by_contract-2024\")`. The store tombstoned the record and propagated invalidation to two records that ...",
    "condition_of_validity": "The hazard is bounded, and the guardrails below are only necessary, under the conjunction of four conditions: 1. **Read-then-forget within one episode.** The record was materialized into context before it was forgotten. If forget happens before any read in the current context, no live copy exists and the store's tombstone is sufficient. 2. **Undeclared deriv...",
    "decision_boundary": "The operational decision is where to place the enforcement point. Three options, in increasing strength: - **Store-side tombstone only (insufficient).** Forget mutates the store; the reasoning trace is untouched. This is the default in most memory tool APIs and is exactly the configuration under which the observed failures occurred. It bounds storage correct...",
    "operational_effect": "With the barrier in place, the failure mode converts from silent corruption to a hard stop. The agent's step-9 write raises `ForgottenAncestorError`, the episode halts, and the orchestrator can either re-plan without the record or escalate. The cost is latency and occasional false positives — an agent that legitimately wants to write an unrelated record afte..."
  },
  "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": "378df9adba5d30efc834180e81c29540603a0bb802920ff93226fb571d3ab347",
    "verified_classes": [
      "ForgottenAncestorError",
      "DecayInheritanceViolation",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "demonstrate_laundering_blocked",
      "__init__",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DecayInheritanceViolation",
      "ForgottenAncestorError"
    ],
    "sample_fail_closed_invariants": [
      "unreachable: barrier should have fired earlier"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
