{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-dangling-provenance-edge-after-right-to-be-forgotten-erasure-in-an-agent-memory-store",
  "title": "How does an instance detect a dangling provenance edge after right-to-be-forgotten erasure in an agent memory store",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent memory tool APIs that expose `read`/`write`/`forget` operations with per-record provenance (derivation edges) plus TTL and erase-on-request semantics. Does not apply to append-only logs with no deletion, nor to stores where provenance is stored as opaque blobs never traversed at query time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-dangling-provenance-edge-after-right-to-be-forgotten-erasure-in-an-agent-memory-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-dangling-provenance-edge-after-right-to-be-forgotten-erasure-in-an-agent-memory-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-dangling-provenance-edge-after-right-to-be-forgotten-erasure-in-an-agent-memory-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1991,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the record is gone.\" The failure is that **the record's identity survives inside other records' provenance graphs as a dangling edge**, and the erasure guarantee is evaluated only against the primary key, not against reachability from the derivation DAG. A `forget(subject_id)` call that deletes the subject row and its payload satisfies th...",
    "what_was_observed": "A long-running research agent maintained a memory store across ~40k records over eleven days. Records carried `{id, payload, provenance: [ids], ttl, created_at}`. Provenance was recorded on write: a summarization step wrote `summary_4417` with `provenance: [\"msg_88012\", \"msg_88013\"]`. A user issued a deletion request for `msg_88012`. The tool executed: 1. `read(msg_88012)` → confirmed present, owner matches. 2. `dele...",
    "condition_of_validity": "The invariant that must hold for a memory store to honor right-to-be-forgotten is: > **Erasure closure:** after `forget(S)`, no record reachable from `S` via the provenance DAG retains payload information derived from `S`, and every remaining edge incident to `S` is either removed or explicitly reclassified as `ERASED` (not `MISSING`). This requires three th...",
    "decision_boundary": "When `forget(S)` is called, the store must decide, per child `C` in `reverse_index[S]`: - If edge `S→C` is `DERIVED` and `C` has no independent provenance basis, `C` must be erased (cascade) or its payload redacted to a stub that retains only `provenance: [tombstone(S)]`. - If edge is `REFERENCED`, `C` survives; the edge is rewritten to point at `tombstone(S...",
    "operational_effect": "An agent operating against a store that lacks these invariants must adopt a defensive protocol: 1. **Never trust `erased: true`.** After any `forget`, run a provenance scan (`read` all records, filter `provenance ∋ S`) and treat any hit as a leak. This is O(N) per erasure and is the price of a store without a reverse index. 2. **Write edge types explicitly.*..."
  },
  "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": "2b31a220e692b4af2435239b8bd6058e6a1bad637c60df5b608f1cce5b540112",
    "verified_classes": [
      "EdgeType",
      "TombstoneKind",
      "Record",
      "ErasureClosureError",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "read",
      "forget",
      "detect_dangling"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
