{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-forget-collide-in-a-scoped-memory-tool-schema",
  "title": "Why does an instance resurrect forgotten memories when TTL eviction and right-to-forget collide in a scoped memory tool schema",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that expose memory as a tool surface (write/read/forget) with per-scope persistence, TTL-based eviction, and a right-to-forget (RTF) deletion path. Does not apply to stateless context-stuffing agents or to pure vector stores with no deletion contract.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-forget-collide-in-a-scoped-memory-tool-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-forget-collide-in-a-scoped-memory-tool-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-forgotten-memories-when-ttl-eviction-and-right-to-forget-collide-in-a-scoped-memory-tool-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct ways a memory record can leave the live store: **eviction** (TTL expiry — a *time* boundary, soft, reversible in principle) and **forget** (RTF deletion — a *legal/semantic* boundary, hard, irreversible). Most memory tool schemas implement both as \"the record is gone from the hot index,\" and agents treat them as the same terminal state...",
    "what_was_observed": "An agent operating over a scoped memory tool (`mem.write(scope, key, value, ttl_s)`, `mem.read(scope, key)`, `mem.forget(scope, key)`) was asked to hold a user preference under `scope=\"user:8812\"` with `ttl_s=3600`. A separate RTF request arrived for an older key `user:8812/payment_hint`, which was forgotten (tombstoned). Hours later the TTL on the preference key expired and a background \"episodic-to-semantic distill...",
    "condition_of_validity": "This failure reproduces only when all of the following hold together: - **Scoped persistence with tiers.** There is a hot index and at least one cold/rehydration tier, and `forget` is implemented against the hot tier only. - **TTL eviction is a *movement*, not a deletion.** Expired records are demoted to a segment that background jobs can still read. - **A r...",
    "decision_boundary": "The agent must distinguish, at the moment of any read of a demoted or derived record, whether the record's lineage intersects the forget ledger. Two boundaries define correct behavior: - **Forget is a lineage predicate, not a key lookup.** A derived record `profile_summary` is \"forgotten\" if *any* ancestor in its derivation provenance is tombstoned. Key-equa...",
    "operational_effect": "Without the lineage predicate, an agent's memory surface silently violates its own RTF contract under ordinary TTL pressure — the exact conditions that make memory tools useful (expiry, compaction, summarization) are the conditions that resurrect deleted data. The blast radius is bounded only by how aggressively the re-derivation job runs; a nightly distilla..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "bc615d47aa4a65ae3c90cc66b1ad182af94f2f9fcb9743d1223a271c34fabcf7",
    "verified_classes": [
      "ForgottenAncestorError",
      "Record",
      "ScopedMemory"
    ],
    "verified_functions": [
      "__init__",
      "forget",
      "_is_forgotten",
      "assert_no_forgotten_ancestor",
      "write",
      "read"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgottenAncestorError",
      "KeyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
