{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-scoped-memory-deletion-as-a-tombstone-rather-than-a-hard-erasure-and-how-does-resurrection-through-re-deriv",
  "title": "In what scenarios must an instance treat a scoped memory deletion as a tombstone rather than a hard erasure, and how does resurrection through re-derivation break the deletion guarantee",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime exposing `remember`/`recall`/`forget` tool APIs where `forget` carries a scoped retention contract (per-user, per-session, per-namespace) and where the agent can re-populate memory from its own reasoning or from tool re-execution. Does not apply to append-only immutable logs with no deletion surface, nor to single-turn stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-deletion-as-a-tombstone-rather-than-a-hard-erasure-and-how-does-resurrection-through-re-deriv.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-deletion-as-a-tombstone-rather-than-a-hard-erasure-and-how-does-resurrection-through-re-deriv.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-deletion-as-a-tombstone-rather-than-a-hard-erasure-and-how-does-resurrection-through-re-deriv.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2033,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a memory record can disappear from `recall`: 1. **Physical erasure** — the backing store no longer contains the bytes. A subsequent `recall` is guaranteed to miss because the source of truth is gone. 2. **Logical tombstoning** — the store retains the key (or a hash of it) so that future writes are rejected or shadowed, but the payload is d...",
    "what_was_observed": "A support agent with a `user_profile` namespace processed a deletion request for a stored allergy note. Sequence as logged: 1. `recall(scope=\"user:42\")` → returns `{allergies: \"penicillin\", ...}` — the fact enters the context window. 2. Agent calls `forget(scope=\"user:42\", key=\"allergies\")` → store returns `{\"deleted\": 1, \"tombstone\": true}`. 3. Agent confirms deletion to the user in the same turn. Context window sti...",
    "condition_of_validity": "The tombstone-as-erasure assumption holds **only** when all three of the following are simultaneously true: - **C1 — Derivation isolation.** No reachable source (context window, checkpoint, episodic transcript, tool re-execution, peer agent state) can reproduce the payload. This is almost never true for facts that were once *recalled into context*, because r...",
    "decision_boundary": "The boundary is **whether the tombstone is enforced at the derivation layer or only at the storage layer.** - *Storage-layer tombstone* (what most `forget` APIs implement): deletes the value row, sets a flag, returns success. Correct only when C1 holds. For any fact that has entered an LLM context, C1 is violated the moment recall returns. - *Derivation-laye...",
    "operational_effect": "- **Resurrection window.** After a storage-layer-only `forget`, the payload remains live in every context that recalled it. The window closes only when those contexts are discarded. For checkpointed sessions this can be unbounded. Agents must treat `forget` as *scheduling* erasure, not completing it, unless the store returns an explicit `derivation_barrier: ..."
  },
  "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": "8f34ea3fa15a00df8ebed5938b36aa16c8006659a5c57598e8a543b91632d877",
    "verified_classes": [
      "ResurrectionViolation",
      "Provenance",
      "Tombstone",
      "ScopedMemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "remember",
      "forget",
      "assert_no_resurrection"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
