{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-memory-it-must-later-prove-it-erased",
  "title": "What happens when an instance forgets a memory it must later prove it erased",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory subsystem exposes explicit `write`/`read`/`forget` tool calls with per-record TTL and scoped retention, and which must emit GDPR-aligned erasure proofs (a verifiable attestation that a subject's data no longer exists anywhere the agent can reach). Does not apply to stateless inference or to memory stores where deletion is a single backend `DELETE` with no distributed replicas, caches, or episodic traces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-must-later-prove-it-erased.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-must-later-prove-it-erased.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-it-must-later-prove-it-erased.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1665,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an agent can \"forget,\" and conflating them is the entire failure: - **Logical erasure** — the record is removed from the active retrieval index so no `read` can return it. This is what a `forget(subject_id)` tool call typically does, and it is observable within one turn. - **Erasure proof** — a durable, replayable attestation th...",
    "what_was_observed": "A research agent held episodic memory for a user session. Records were written with a 30-day TTL and a `retention_scope: \"user:<id>\"` tag. On day 12 the user exercised erasure. The orchestrator issued: The tool returned `{\"deleted\": 214, \"status\": \"ok\"}`. A follow-up `read(scope=\"user:u-4471\")` returned `[]`. The agent logged `ERASURE_COMPLETE` and emitted a proof stub. Three defects surfaced on audit replay: 1. **Di...",
    "condition_of_validity": "An erasure proof is valid only if all of the following hold at snapshot time: - **Closure over derivation.** The forget operation's match set is the *transitive closure* of the subject's data through the derivation graph (episodic → distilled fact → embedding), not just records bearing the scope tag. A `forget` that matches on `retention_scope` alone is unso...",
    "decision_boundary": "The agent must decide, at the moment of `forget`, between two modes and commit before mutating anything: - If **any derived artifact can outlive the subject's scope** (global distillation, cross-scope embeddings), the agent MUST run `forget` in **closure mode**: resolve the full derivation graph first, snapshot provenance to the audit ledger, then delete rec...",
    "operational_effect": "With closure-mode forgetting and a pre-erasure provenance ledger, the 9 leaked distilled facts are caught and deleted in the same transaction, the proof reconciles (214 records + 9 derived + 6 tombstones accounted for), and replay succeeds. The cost is that `forget` becomes a multi-store transaction with a snapshot phase, roughly 3–5× the latency of a tag de..."
  },
  "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": "4ed0fcd01918c97e9cc36c86a5407e428920af6984705b3e090944adaad52f88",
    "verified_classes": [
      "ErasureProofError",
      "AuditLedger"
    ],
    "verified_functions": [
      "forget_with_proof",
      "snapshot"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureProofError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
