{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-forget-and-how-does-erasure-compliance-collide-with-episodic-replay-in-agent-memory",
  "title": "Where must an instance refuse to forget, and how does erasure compliance collide with episodic replay in agent memory?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to stateful LLM agents whose episodic memory store is subject to regulatory erasure (GDPR Art. 17, CCPA deletion) while simultaneously serving as the substrate for audit-trail replay and post-hoc verification. Does not cover stateless inference or memory stores with no legal retention obligation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-forget-and-how-does-erasure-compliance-collide-with-episodic-replay-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-forget-and-how-does-erasure-compliance-collide-with-episodic-replay-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-forget-and-how-does-erasure-compliance-collide-with-episodic-replay-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1875,
    "python_slice_tokens": 446,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something it should have remembered\" nor \"the agent remembered something it should have deleted.\" It is the collapse of a *two-tier forgetting contract* into a single deletion operation. Regulated agent memory carries two structurally incompatible obligations on the same episodic record: 1. **Erasure obligation** — the su...",
    "what_was_observed": "An agent operating a customer-account workflow held episodic records of the form `{episode_id, subject_ref, action, tool_call_trace, distilled_fact, timestamp}`. On an Art. 17 request, the operator issued erasure against `subject_ref`. The store performed a row delete on the episodic table and a cascading delete on the derived semantic table. Three defects surfaced on replay: - **Distillation residue.** The semantic ...",
    "condition_of_validity": "The two-tier contract holds only under a **cryptographic split of the episode into an erasable payload and a non-erasable commitment**, where the commitment is a one-way binding that survives payload destruction without enabling reconstruction. Formally, an episode must be stored as `(C, E)` where: - `E` = encrypted payload (personal data, tool traces, disti...",
    "decision_boundary": "The agent must branch on **whether the audit obligation for a given episode has expired** before choosing an erasure mechanism, and must refuse to proceed when the branch is ambiguous. - **Audit window open, erasure requested:** crypto-shred `K_s`, retain `C`, invalidate all provenance-tagged aggregates, and emit an `ErasureEvent` into the ledger that is its...",
    "operational_effect": "When this boundary is respected, forgetting becomes a *reversible-in-metadata, irreversible-in-content* operation: the audit ledger grows monotonically and remains verifiable, while personal content becomes cryptographically unrecoverable. Replay of decisions survives; replay of raw traces is explicitly and traceably forfeited. When it is violated — the comm..."
  },
  "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": "153e253cbe58af1aebae22b1d94184ff7d5ca52b298a6ee456fc5a25117dd758",
    "verified_classes": [
      "ErasureAttestationError",
      "Episode",
      "Ledger",
      "MemoryStore"
    ],
    "verified_functions": [
      "append",
      "__init__",
      "erase_subject"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureAttestationError"
    ],
    "sample_fail_closed_invariants": [
      "ledger root missing post-erasure",
      "key destruction incomplete; payload still decryptable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
