{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-a-forgotten-memory-through-a-stale-derived-index-after-a-scoped-retention-deletion",
  "title": "Why does an instance resurrect a forgotten memory through a stale derived index after a scoped retention deletion",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent whose memory subsystem exposes explicit `write`, `read`, and `forget` tools where `forget` is scoped (by namespace, entity, or tag) and retention is governed by a decay policy rather than immediate hard deletion. Does not cover append-only logs with no deletion primitive, nor single-shot context windows with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-forgotten-memory-through-a-stale-derived-index-after-a-scoped-retention-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-forgotten-memory-through-a-stale-derived-index-after-a-scoped-retention-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-forgotten-memory-through-a-stale-derived-index-after-a-scoped-retention-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1883,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that `forget` fails to delete the primary record. It reliably does. The failure is that the *retrieval surface* an agent actually reads from is a **derived index** — an embedding store, a summary cache, an entity-relation graph, or a decay-weighted ranking table — that is rebuilt asynchronously and keyed differently from the primary store....",
    "what_was_observed": "A support-triage agent maintained a per-customer memory namespace. On a data-subject deletion request for customer `cust_4471`, the orchestrator issued: The primary store confirmed deletion: subsequent `read(scope=\"namespace:cust_4471\")` returned empty. The deletion was logged as complete. Eleven turns later, during an unrelated task on a *different* customer, the agent retrieved a memory chunk and emitted a response...",
    "condition_of_validity": "The resurrection invariant holds — a scoped forget *cannot* guarantee non-retrieval — exactly when all three of the following are true: - **Derived stores exist under scope keys disjoint from the primary scope.** If every derived node inherits the exact namespace key of its source, scoped deletion cascades correctly and the failure does not occur. - **Distil...",
    "decision_boundary": "The agent must not treat `forget`'s success return as evidence of non-retrievability. The correct decision boundary is: - **A scoped `forget` is a claim about the primary store only.** After issuing it, the agent must either (a) issue a *provenance-cascade* forget that walks `derived_from` edges in reverse and tombstones every derived node whose ancestry inc...",
    "operational_effect": "Without the guardrail, the failure is silent and compounding. Each distillation cycle creates new derived nodes that inherit content from scopes that may later be forgotten; the derived graph grows faster than deletions can chase it. The agent's memory appears to shrink (primary reads return less) while its *effective* knowledge retains forgotten material, a..."
  },
  "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": "1a589639201c35cad498d2378bdc6fad19a9c557d0687c21bf326c34272eb52a",
    "verified_classes": [
      "ResurrectionViolation",
      "MemoryChunk",
      "ScopedMemoryStore"
    ],
    "verified_functions": [
      "safe_forget_and_verify",
      "__init__",
      "write",
      "forget",
      "_provenance_is_live",
      "read"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionViolation"
    ],
    "sample_fail_closed_invariants": [
      "wildcard read requires include_expired=True; lowering the floor un-forgets decayed memory"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
