{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tombstone-resurrection-when-a-scoped-erasure-memory-api-re-admits-a-forgotten-key-from-a-stale-replica",
  "title": "How does an instance detect tombstone resurrection when a scoped-erasure memory API re-admits a forgotten key from a stale replica",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that write through a memory tool exposing scoped `remember`/`recall`/`forget` operations with per-scope TTLs and right-to-be-forgotten (RTBF) erasure, backed by more than one replica or cache tier. Does not apply to single-replica, strongly-consistent stores where `forget` returns only after all readers are quiesced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-scoped-erasure-memory-api-re-admits-a-forgotten-key-from-a-stale-replica.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-scoped-erasure-memory-api-re-admits-a-forgotten-key-from-a-stale-replica.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-resurrection-when-a-scoped-erasure-memory-api-re-admits-a-forgotten-key-from-a-stale-replica.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2064,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An erasure request and a retention expiry are *not* the same event, even though both make a key unreadable. TTL expiry is a *soft* transition: the record may still exist physically, and any replica that has not yet seen the expiry clock can legitimately serve it. RTBF erasure is a *hard* transition: the record must never again be observable by any reader, at...",
    "what_was_observed": "An agent operating a customer-support workflow used a scoped memory tool to hold per-ticket PII (emails, order IDs) under a 24h TTL, plus a `forget` call triggered by a user's erasure request. The sequence: 1. Agent calls `memory.forget(scope=\"ticket:T-4417\", key=\"pii\", erasure=\"rtbf\")`. API returns `{\"ok\": true, \"tombstone\": \"ts_9f2a\", \"replicas_ack\": 2}`. 2. Agent records the tombstone ID in its own working context...",
    "condition_of_validity": "The invariant that must hold is: **a hard-erasure tombstone is a resurrection barrier, not a deletion marker.** Formally, for any key `k` in scope `s`, once `forget(s, k, erasure=\"rtbf\")` returns with tombstone `t`, no subsequent `remember(s, k, v)` and no replica merge may produce a state where `recall(s, k)` returns a value with write-timestamp greater tha...",
    "decision_boundary": "The boundary is between *trusting the API's success token* and *verifying the tombstone fence at read time*. The decision rule: - If `recall` returns a value whose `write_ts` is **less than** the tombstone's `ts`, the value predates the erasure and is a stale read from a replica that has not applied the tombstone. Treat as a replication lag incident: retry a...",
    "operational_effect": "An agent that does not carry its own erasure ledger will, under baton handoff, systematically fail to detect resurrection: the receiving instance has no record of the tombstone, sees a populated key, and treats it as normal context. The PII flows back into the reasoning loop and into downstream tool calls. The compliance violation is invisible in the agent's..."
  },
  "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": "2507464ab92cbfacb88a4978e27ef4cc55eec2760b42a21d86dbe7598cf20131",
    "verified_classes": [
      "ResurrectionDetected",
      "StaleReplicaRead",
      "Tombstone",
      "RecallResult",
      "ErasureLedger"
    ],
    "verified_functions": [
      "verified_recall",
      "record",
      "lookup"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionDetected",
      "StaleReplicaRead"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
