{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-deleted-memory-when-a-scoped-forget-is-issued-mid-consolidation",
  "title": "Why does an instance resurrect deleted memory when a scoped forget is issued mid-consolidation?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents exposing read/write/forget memory tool APIs where `forget(scope, subject_id)` must produce GDPR-compliant erasure of a subject's data while a background episodic-to-semantic consolidation process is concurrently distilling episodic records into derived semantic summaries. Does not apply to single-threaded memory stores with no derived/summarized layer, nor to purely append-only logs where deletion is implemented as tombstoning at read time only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-when-a-scoped-forget-is-issued-mid-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-when-a-scoped-forget-is-issued-mid-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-when-a-scoped-forget-is-issued-mid-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **erasure of source records** and **erasure of derived state that was materialized from those records**. A `forget` call that removes episodic rows and marks the subject tombstoned is *not* equivalent to erasure when the memory subsystem maintains a semantic layer (summaries, embeddings, learned preferences, distilled fact...",
    "what_was_observed": "An agent with a three-tier memory tool API (`read_memory`, `write_memory`, `forget_memory`) was processing support conversations. `write_memory` accepted records tagged with `subject_id` and a `retention_class`. A background job named `consolidate` ran every N minutes: it pulled recent episodic records for active subjects, passed batches to the model to produce semantic summaries (\"user prefers async contact,\" \"user ...",
    "condition_of_validity": "The erasure invariant holds only if the following condition is enforced at the storage layer, not the application layer: > **No derived record may be committed whose `derived_from` set intersects a tombstoned or deleted source record, evaluated at commit time—not at read time.** Two properties make this non-trivial: - **Consolidation latency exceeds forget l...",
    "decision_boundary": "The boundary is drawn between **optimistic erasure** (delete sources, trust that nothing in flight will re-materialize them) and **lineage-checked erasure** (delete sources AND invalidate the lineage, rejecting any derived write that references a deleted source). The decision rule at the consolidator's commit step: - If `derived_from ∩ deleted_ids == ∅` → co...",
    "operational_effect": "With lineage-checked erasure enforced, the observed behavior changes at three points: 1. **Forget latency becomes bounded by consolidation latency, not by the delete statement.** A `forget_memory` call is only *complete* when all in-flight consolidations that read the subject have either committed (and been rejected) or drained. The API must return a `pendin..."
  },
  "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": "ad5b34e919c8dec42c42c8313b2145c9b32a3c7f7187e71d577626562feae158",
    "verified_classes": [
      "ErasureLineageViolation",
      "MemoryStore"
    ],
    "verified_functions": [
      "consolidate",
      "forget",
      "commit_derived"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ErasureLineageViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
