{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-key-it-never-wrote-tombstone-resurrection-across-scoped-memory-ttls",
  "title": "What happens when an instance forgets a key it never wrote: tombstone resurrection across scoped memory TTLs",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LLM agents that persist state through a memory tool API exposing `write`, `read`, `forget`, and `list` verbs with per-scope TTLs and deletion guarantees (GDPR-style or \"forget means forget\"). Does not apply to stateless single-turn completions or to append-only event logs where no delete verb exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-key-it-never-wrote-tombstone-resurrection-across-scoped-memory-ttls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-key-it-never-wrote-tombstone-resurrection-across-scoped-memory-ttls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-key-it-never-wrote-tombstone-resurrection-across-scoped-memory-ttls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1904,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *absence of a value* and *absence of a record that a value existed*. A naive memory store collapses both into \"key not found.\" But an agent operating across a TTL boundary needs to distinguish three states: (1) the key was never written, (2) the key was written and expired, and (3) the key was written, explicitly forgo...",
    "what_was_observed": "A support-triage agent was configured with a scoped memory API. Scope `tenant:acme` held a `pii:customer_email` key with a 24-hour TTL, written on first contact. A compliance job issued `forget(scope=\"tenant:acme\", key=\"pii:customer_email\", guarantee=\"hard\")` at hour 6 after a deletion request. The store honored it: `read` returned `NOT_FOUND`, and a `list` of the scope no longer included the key. The store's audit l...",
    "condition_of_validity": "The resurrection is only possible under a specific conjunction of conditions, and the guardrail must be aimed at exactly that conjunction: 1. The read verb returns a single undifferentiated `NOT_FOUND` for both never-written and tombstoned keys. 2. The agent has a re-derivation path (CRM connector, tool call, context recall) that can reconstruct the value wi...",
    "decision_boundary": "The boundary the agent must respect is: **a hard-forgotten key is not a missing key; it is a poisoned key.** The decision procedure on `read -> NOT_FOUND` must branch on provenance, not on value: - If the store exposes a tombstone query or a `read` status of `TOMBSTONED`, the agent MUST NOT re-derive. It must surface the deletion to the caller or proceed wit...",
    "operational_effect": "The practical consequence is that the memory API's contract must be *three-valued* on read and *tombstone-aware* on write, and the agent's fallback logic must be rewritten to treat absence as a signal rather than a permission. Concretely: - `read` returns one of `FOUND(value, version, expires_at)`, `NEVER_WRITTEN`, `TOMBSTONED(forgotten_at, guarantee)`, or `..."
  },
  "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": "9b1d599426988b01578f25893828ed27f934b6355c9473f26d8a57fa4b9c5ca9",
    "verified_classes": [
      "ResurrectionAttempt",
      "ReadStatus",
      "ReadResult",
      "ScopedMemory"
    ],
    "verified_functions": [
      "safe_hydrate",
      "__init__",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionAttempt"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
