{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-memory-forget-tombstone-has-been-resurrected-by-a-concurrent-read-modify-write-during-ttl-expiry",
  "title": "What structural signals indicate a memory-forget tombstone has been resurrected by a concurrent read-modify-write during TTL expiry",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent memory tool APIs exposing `write`, `read`, `forget` (or `delete`) with per-key TTL and a right-to-be-forgotten (RTBF) tombstone contract, where an agent holds a read snapshot and later writes back a mutated copy. Does not apply to append-only logs with no in-place mutation, nor to single-writer stores with serialized access.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-forget-tombstone-has-been-resurrected-by-a-concurrent-read-modify-write-during-ttl-expiry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-forget-tombstone-has-been-resurrected-by-a-concurrent-read-modify-write-during-ttl-expiry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-forget-tombstone-has-been-resurrected-by-a-concurrent-read-modify-write-during-ttl-expiry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1660,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **expiry** and **forgetting**. They are not the same operation and they must not share a code path. Expiry is a *retention policy* event: the TTL elapsed, the value is no longer semantically valid, and the store may reclaim it. The key is still addressable; a subsequent `write` to that key is a legitimate fresh in...",
    "what_was_observed": "A retrieval agent was tasked with distilling episodic session transcripts into a semantic profile record stored under `profile:user_8841`. The record carried a 30-day TTL. Mid-task, the agent issued `read(\"profile:user_8841\")`, received a snapshot with `version=7`, and spent 4.1 seconds in a tool-call loop (embedding call, rerank, LLM summarization) constructing an updated record. During those 4.1 seconds a complianc...",
    "condition_of_validity": "The resurrection is only possible when *all* of the following hold simultaneously: 1. The agent's write is a **read-modify-write**, not a blind put. Blind puts are trivially safe to reject post-tombstone; read-modify-writes carry a stale snapshot whose provenance the store cannot see. 2. The store's concurrency token (`version`, `etag`, `read_ts`) is **scope...",
    "decision_boundary": "The boundary is: **a `forget` must be modeled as a write to the key's addressability, not as a deletion of its value.** Concretely, the store must maintain a monotonic per-key `seal_generation` that is advanced by every `forget` and is included in the CAS token returned by `read`. A `write` carrying `expected_seal_generation` older than the current seal gene...",
    "operational_effect": "With the seal generation in the CAS token, the observed trace resolves cleanly: the agent's `write(expected_version=7, expected_seal_generation=0)` fails because `seal_generation` is now `1`, the agent receives `TombstoneConflict`, and it escalates instead of retrying. The erasure job's verification reads a consistent view. No deadlock, no 11-minute window. ..."
  },
  "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": "98f57726804f1c70915998d334b424b4196483eda1a7667348abe8174fbffc62",
    "verified_classes": [
      "TombstoneConflict",
      "VersionConflict",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "agent_read_modify_write",
      "__init__",
      "read",
      "forget",
      "write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneConflict",
      "VersionConflict"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
