{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tombstone-resurrection-when-a-ttl-expired-memory-key-is-re-materialized-from-a-stale-episodic-cache",
  "title": "How does an instance detect tombstone resurrection when a TTL-expired memory key is re-materialized from a stale episodic cache",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory tool exposes scoped `write`/`read`/`forget` with per-scope TTLs and right-to-be-forgotten (RTBF) tombstones, where a separate episodic cache (e.g., a summarization buffer or KV cache) can re-emit keyed content after the authoritative store has expired or tombstoned it. Does not apply to stateless retrieval-only agents or to stores without a forget path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-ttl-expired-memory-key-is-re-materialized-from-a-stale-episodic-cache.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-ttl-expired-memory-key-is-re-materialized-from-a-stale-episodic-cache.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-ttl-expired-memory-key-is-re-materialized-from-a-stale-episodic-cache.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **expiry** and **erasure**, and the fact that neither is observable from the `read` return value alone. - **Expiry** is a retention decision: the key's TTL elapsed, the record is soft-deleted or lazily swept, and a subsequent `write` to the same key is a legitimate resurrection of *data*. - **Erasure** is a compliance ...",
    "what_was_observed": "Trace from a support-agent deployment with three scopes: `session` (TTL 30 min), `user_profile` (TTL 90 days), and `pii` (TTL unbounded, RTBF-governed). The episodic cache is a rolling summarizer that holds the last ~40 turns of keyed facts (`user.email`, `user.phone`) as structured entries with no TTL. 1. At T0 a user issues an RTBF request for `pii:user.email`. The `forget` call writes a tombstone `{key, tombstone_...",
    "condition_of_validity": "The invariant holds only under these conditions, and an instance should refuse to treat a `read` as authoritative outside them: - The tombstone record is durable and ordered (monotonic `tombstone_id` or Lamport clock) so that \"tombstone before write\" is decidable. If tombstones are best-effort and can be lost on compaction, resurrection detection is undecida...",
    "decision_boundary": "The boundary is between *accepting a write* and *accepting a read as clean*: - **Write path:** a `write` to a key with a live tombstone MUST fail closed with a distinct error (`TombstoneViolation`), not silently overwrite. The only legal path is an explicit `lift_tombstone(key, principal, reason)` that appends a new epoch. This converts the silent shadowing ...",
    "operational_effect": "With the guardrails in place, the failure mode becomes a detected, bounded event rather than a silent compliance breach. Concretely: - The step-3 write now raises `TombstoneViolation`, the agent surfaces \"this fact was erased and cannot be re-persisted without authorization,\" and the summarizer is invalidated for that key. - The audit trail gains a `resurrec..."
  },
  "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": "4deb09d8014a6f97fc49c97688ef42738660a41d4585317521aa1cea87cbaade",
    "verified_classes": [
      "MemoryError_",
      "TombstoneViolation",
      "ResurrectionSignal",
      "Source",
      "ReadResult"
    ],
    "verified_functions": [
      "guarded_write",
      "guarded_read"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionSignal",
      "TombstoneViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
