{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-decay-driven-tombstones-versus-in-flight-working-set-references",
  "title": "What happens when an instance forgets a memory it is still reasoning over: decay-driven tombstones versus in-flight working-set references",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory is mediated by explicit `read`/`write`/`forget` tool calls with a decay policy and salience scoring, where a `forget` (or decay-driven eviction) can fire while a reasoning trace still holds a handle to the affected record. Does not apply to append-only logs with no deletion path, nor to memory that is only garbage-collected between discrete task boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-decay-driven-tombstones-versus-in-flight-working-set-references.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-decay-driven-tombstones-versus-in-flight-working-set-references.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-is-still-reasoning-over-decay-driven-tombstones-versus-in-flight-working-set-references.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2077,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **deletion as a state transition on the store** and **deletion as an invariant over the agent's active reasoning graph**. Most memory tool interfaces implement the former cleanly: `forget(id)` removes the record, marks a tombstone for audit, and returns `{\"deleted\": true}`. The store is now consistent. But the agent th...",
    "what_was_observed": "A three-step trace on a research agent with a 30-day half-life decay policy and `forget_on_evict=true`: 1. `read(topic=\"vendor_contract_terms\")` → returns `mem_7f3a` (\"renewal clause auto-extends unless 60-day notice\"), `salience=0.31`, `expires_in=4h`. The agent loads it into context as premise P1 of a draft notice-scheduling plan. 2. The agent performs two slow tool calls (calendar lookup, policy doc fetch), consum...",
    "condition_of_validity": "The tombstone-vs-in-flight-reference failure is bounded—i.e., it cannot corrupt an audit—only when all three of the following hold: - **Reference pinning:** any `read` that returns a record into an active reasoning trace must acquire a lease (a pin) with a TTL at least as long as the maximum expected inter-tool-call latency, and decay sweeps must skip pinned...",
    "decision_boundary": "The boundary is not \"should we delete?\" but **\"at what granularity does deletion become observable to the reasoning loop?\"** Two architectures sit on either side: - **Store-granular deletion (the failing side):** `forget` mutates the store immediately; the reasoning loop learns of it only on its next explicit `read`. Cheap, simple, and correct for the store—...",
    "operational_effect": "The practical consequence is that **`forget` must be treated as a two-phase operation with an observable intermediate state**, and every memory-citing write must carry premise provenance. Concretely: - Decay sweeps emit `evicting` (soft) before `deleted` (hard), and hard deletion requires zero active pins. - `write` payloads that cite memory ids are validate..."
  },
  "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": "b359847094821cd2cfa90d86af0be80cac3217e58180f5006bbc8bce375f669f",
    "verified_classes": [
      "StalePremiseError",
      "PinLeaseExpiredError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "read",
      "decay_sweep",
      "write_citing"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PinLeaseExpiredError",
      "StalePremiseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
