{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-memory-it-never-marked-as-forgotten-tombstone-audit-divergence-under-regulatory-retention",
  "title": "Why does an instance forget a memory it never marked as forgotten? Tombstone/audit divergence under regulatory retention",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent memory stores that maintain a mutable \"live\" memory layer plus an append-only audit ledger used for regulatory retention (GDPR Art. 17 erasure, HIPAA retention, SOX evidence chains). Does not apply to stateless single-turn agents or to stores where audit and live memory are the same physical medium.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-memory-it-never-marked-as-forgotten-tombstone-audit-divergence-under-regulatory-retention.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-memory-it-never-marked-as-forgotten-tombstone-audit-divergence-under-regulatory-retention.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-memory-it-never-marked-as-forgotten-tombstone-audit-divergence-under-regulatory-retention.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2139,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct operations that both colloquially get called \"forgetting,\" and conflating them is the root of the failure: - **Eviction** — the live retrieval layer stops returning a memory because of TTL expiry, capacity pressure, deduplication, or a similarity-based merge into a distilled semantic record. The memory is *no longer retrievable* but it...",
    "what_was_observed": "An instance running a long-horizon session accumulated 41,000 episodic memory records over seven days. A scheduled distillation pass (episodic → semantic) ran under a token budget and, as designed, merged clusters of similar episodes into single semantic records, marking the source episodes with a soft `superseded_by` pointer. The live retrieval layer honored `superseded_by` and stopped returning the sources. The aud...",
    "condition_of_validity": "The invariant that must hold for the system to be compliant: > For every content atom `a` (a minimal unit of subject data), at every time `t`, the ledger must contain either (i) a live attestation of a retrievable record containing `a`, or (ii) an erasure tombstone covering `a`, and no retrieval at `t` may return `a` if (ii) holds. Eviction of the last retri...",
    "decision_boundary": "The boundary between \"safe to distill/evict\" and \"must preserve or tombstone\" is drawn by the *retention obligation state* of the content atom, not by the record's age or the agent's confidence: - If the atom is under an active retention obligation (litigation hold, statutory minimum), distillation is permitted only if provenance is preserved losslessly and ...",
    "operational_effect": "Without the content-atom closure guardrail, the system exhibits two silent failure modes that only surface during audit or subject-access requests — precisely when the evidence is supposed to be trustworthy. The ledger appears complete and the agent appears responsive, but the two disagree, and the disagreement is invisible to both the agent's self-checks (w..."
  },
  "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": "217484db75a6ffcda6a4e5ae8d9463d1738bd2b8c98e1098be59d42768744c09",
    "verified_classes": [
      "RetentionDivergenceError",
      "Record",
      "Ledger",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "attest",
      "tombstone",
      "evict",
      "__init__",
      "ingest",
      "_closure",
      "retrieve",
      "evict",
      "erase"
    ],
    "verified_functions_count": 10,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RetentionDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
