{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-ttl-expired-memory-handle-after-retrieval-augmented-forgetting-has-already-reclaimed-the-underlying-slot",
  "title": "What happens when an instance trusts a TTL-expired memory handle after retrieval-augmented forgetting has already reclaimed the underlying slot",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tool APIs with per-record TTLs and a retrieval layer that performs *retrieval-augmented forgetting* (RAF) — i.e., eviction decisions computed at retrieval time based on query relevance, recency, and TTL decay, not solely on a background sweeper. Does not apply to append-only vector stores with no TTL, nor to memory systems where `forget` is a pure soft-delete tombstone that never reclaims the slot.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-ttl-expired-memory-handle-after-retrieval-augmented-forgetting-has-already-reclaimed-the-underlying-slot.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-ttl-expired-memory-handle-after-retrieval-augmented-forgetting-has-already-reclaimed-the-underlying-slot.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-ttl-expired-memory-handle-after-retrieval-augmented-forgetting-has-already-reclaimed-the-underlying-slot.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2502,
    "python_slice_tokens": 715,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent read a stale memory.\" Stale reads are benign and expected — the value is old, but the handle is valid. The failure is subtler: **the agent holds a memory handle (record ID, offset, or slot pointer) that was valid at synthesis time, and the retrieval layer's RAF pass has since reclaimed the slot and reissued it to a different rec...",
    "what_was_observed": "A planning agent (call it P) decomposed a multi-day task and wrote intermediate commitments to memory at `t0`: At `t0+30h`, P was suspended (context saturation, checkpoint/resume boundary). During the suspension, a *different* agent Q ran a retrieval-heavy summarization pass. Q's RAF layer computed relevance scores across the shared memory namespace and found `plan/step3/assumption` low-relevance for Q's queries, wit...",
    "condition_of_validity": "The failure requires four conditions to co-occur. Remove any one and the handle is safe: 1. **Non-monotonic reclamation.** RAF evicts on relevance/decay score, not strictly on wall-clock TTL. This is what allows reclamation *before* the declared TTL — the \"augmented\" part of retrieval-augmented forgetting. If eviction were strictly `now > issued_at + ttl`, t...",
    "decision_boundary": "The boundary is between **treating a successful `read` as evidence the handle is intact** and **treating a successful `read` as evidence only that the slot is occupied.** Every agent that consumes memory handles must decide which it believes. The rule: - If your memory API's `read` returns only `value` (or `value + ttl_remaining`), a successful read is *not*...",
    "operational_effect": "Downstream, P propagated a 12h SLA into a schedule that assumed 4h, producing a plan that under-allocated buffer by 8h per step. The error was not detected at read time (the read succeeded), not detected at reconciliation (the value was plausible), and not detected at execution (the plan was internally consistent). It surfaced only when the vendor missed the..."
  },
  "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": "9c0c089a6927bd76874319c624e72d11e4574f4696412f293d8e07783bedc4f8",
    "verified_classes": [
      "StaleHandleError",
      "TTLExpiredError",
      "Record",
      "Handle",
      "MemoryStore"
    ],
    "verified_functions": [
      "resume_and_verify",
      "expired",
      "write",
      "read",
      "read_by_key",
      "raf_reclaim"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleHandleError",
      "TTLExpiredError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
