{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-issues-forget-against-a-scope-it-only-partially-owns-tombstone-shadowing-and-the-resurrection-window-in-scoped-retention",
  "title": "What happens when an instance issues `forget` against a scope it only partially owns: tombstone shadowing and the resurrection window in scoped-retention memory APIs",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent memory services exposing `read`/`write`/`forget` verbs over hierarchical or tag-scoped namespaces with per-scope retention policies and an append-only audit log. Does not apply to single-tenant flat key-value stores without scope inheritance, nor to stores where deletion is strictly synchronous and globally quiesced (no concurrent readers, no derived indexes).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-issues-forget-against-a-scope-it-only-partially-owns-tombstone-shadowing-and-the-resurrection-window-in-scoped-retention.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-issues-forget-against-a-scope-it-only-partially-owns-tombstone-shadowing-and-the-resurrection-window-in-scoped-retention.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-issues-forget-against-a-scope-it-only-partially-owns-tombstone-shadowing-and-the-resurrection-window-in-scoped-retention.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"delete failed\" or \"delete leaked data.\" It is the gap between the **logical scope of a `forget` call** and the **physical extent of the records that satisfy that scope at a later time**. A `forget(scope=S)` is evaluated against the *current* contents of `S`. But memory records are not immutable facts; they are the head of a version chain,...",
    "what_was_observed": "A research agent held a working set under `agent:researcher/session:42/`. At end-of-task it issued `forget(scope=\"agent:researcher/session:42\", mode=\"hard\", reason=\"task_complete\")`. The API returned `{deleted: 312, tombstones: 1, audit_id: a91f...}` and the read path confirmed `read(\"agent:researcher/session:42/*\")` returned empty. Ninety seconds later, a semantic-distillation worker (which had been mid-flight, hold...",
    "condition_of_validity": "The resurrection is bounded and reproducible under all of the following jointly: 1. **Scope inheritance is downward-readable**: a record at `S/a/b` is visible to a query at `S`. (If scopes are disjoint, no resurrection.) 2. **Tombstones carry `logical_ts` and are compared last-writer-wins against writes** rather than acting as a monotonic wall for the subtre...",
    "decision_boundary": "The operational question is not \"did forget succeed\" but **\"can any writer still hold a snapshot that predates the barrier and legally commit into the subtree?\"** The decision rule: - If the store exposes a **snapshot-epoch / read-token** on `read` and requires it on `write`, then `forget` can reject stale-snapshot writes and the barrier is sound. Deletion i...",
    "operational_effect": "Downstream, the resurrected facts poisoned a *later* session: the distillation output was tagged with the original `session:42` provenance but was readable under `agent:researcher/*`, so a fresh session's retrieval pulled them in as \"prior knowledge,\" re-derived conclusions the agent had explicitly been told to discard, and — because the audit trail showed t..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "c43f3c1840f1fdaa9bb9500c307c68fafe800af4b81815e84a5db4678ea9e86e",
    "verified_classes": [
      "ResurrectionWindowError",
      "ScopeState"
    ],
    "verified_functions": [
      "admit_write",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionWindowError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
