{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-erased-memory-through-a-stale-provenance-edge-during-scoped-retention-compaction",
  "title": "Why does an instance resurrect erased memory through a stale provenance edge during scoped-retention compaction?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agent memory systems exposing explicit read/write/forget tool APIs where `forget` implements GDPR-aligned erasure and memories carry provenance edges (derivation, citation, aggregation) across scopes with independent retention windows. Does not apply to append-only logs with no cross-scope derivation graph, nor to single-scope stores where erasure and retention boundaries coincide.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-through-a-stale-provenance-edge-during-scoped-retention-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-through-a-stale-provenance-edge-during-scoped-retention-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-erased-memory-through-a-stale-provenance-edge-during-scoped-retention-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2104,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the forget call failed.\" The forget call succeeds: the target memory record is physically deleted, its vector removed from the index, its row tombstoned, and the erasure receipt is signed. The failure is that **a derived memory in a different retention scope retains a live provenance edge to the erased parent**, and a later compaction or ...",
    "what_was_observed": "A memory store with three scopes: `user:consent` (30-day TTL, GDPR-erasure subject), `session:working` (ephemeral), and `analytics:derived` (90-day TTL, aggregated facts). An agent wrote a `UserPreference` memory into `user:consent` with `subject_id=S-4471`. A nightly distillation job read it, produced `AggregatedPreference` in `analytics:derived` with: The user exercised erasure. `forget(mem_9f3a, warrant=W-118)` re...",
    "condition_of_validity": "The resurrection requires all four of the following to hold simultaneously: 1. **A derivation edge crosses a scope boundary with a longer retention window than the source.** Erasure in the shorter-window scope does not propagate to the longer-window child. 2. **The child payload contains enough information to reconstruct the erased fact.** Aggregation that p...",
    "decision_boundary": "The architectural invariant required is: **an erasure tombstone is a terminal node in the provenance graph.** No re-derivation, compaction, distillation, or repair pass may read through an erasure tombstone. Concretely: - `forget` must perform a **backward edge traversal** before deletion: enumerate every memory whose `provenance.source_ids` contains the tar...",
    "operational_effect": "After the fix, the nightly distillation job's write path rejects any child whose `provenance.source_ids` includes an `ErasureTombstone` at write time, and the compaction pass aborts rather than synthesizes. The user-facing retrieval filter drops any memory matching an active subject warrant. The observable change: `forget` latency rises because it now traver..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "e6803d1f5d04912f7a2db1414a65c1326f7500590b6df19ee5993a2d6fc08274",
    "verified_classes": [
      "ProvenanceViolation",
      "TombstoneKind",
      "Tombstone",
      "Memory"
    ],
    "verified_functions": [
      "rederive_from_provenance",
      "forget",
      "traversable"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
