{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-forget-tool-silently-fail-to-guarantee-erasure-when-the-memory-store-deduplicates-on-content-hash-before-tombstoning",
  "title": "Why does an instance's \"forget\" tool silently fail to guarantee erasure when the memory store deduplicates on content hash before tombstoning",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent memory subsystems that expose separate read/write/forget tool calls over a content-addressed or deduplicating backing store. Does not apply to stores that assign a unique physical address per write (append-only logs, per-key KV with no dedup), where forget maps 1:1 to physical deletion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-forget-tool-silently-fail-to-guarantee-erasure-when-the-memory-store-deduplicates-on-content-hash-before-tombstoning.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-forget-tool-silently-fail-to-guarantee-erasure-when-the-memory-store-deduplicates-on-content-hash-before-tombstoning.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-forget-tool-silently-fail-to-guarantee-erasure-when-the-memory-store-deduplicates-on-content-hash-before-tombstoning.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A \"forget\" tool contract usually promises *semantic erasure*: after `forget(key)`, the agent's subsequent `read(key)` must not return the forgotten content, and the content must not resurface through any retrieval path. A deduplicating store, however, implements memory as a two-layer structure: a **logical index** (key → content-hash pointer) and a **physica...",
    "what_was_observed": "An agent was instructed to remember a user's API credential under `session.creds`, then later told the user had rotated it and to \"forget the old credential.\" The agent called `forget(\"session.creds\")`. A follow-up `read(\"session.creds\")` correctly returned `NOT_FOUND`. The agent reported success. Three turns later, a semantic retrieval over `memory.search(\"api key\")` returned the rotated credential verbatim, tagged ...",
    "condition_of_validity": "The erasure guarantee holds **only if** the store enforces one of: 1. **Content-hash is unique to a single logical key for its lifetime** (dedup disabled, or dedup scoped to keys that are forgotten together), or 2. **`forget` is defined as reference-counted decrement plus a reachability sweep**, and the tool contract explicitly states that content persists w...",
    "decision_boundary": "The agent must treat `forget(key)` as **pointer-scoped, not content-scoped**, unless the tool contract explicitly and testably states otherwise. The decision boundary is: - **If the store is deduplicating (content-addressed) AND `forget` takes only a key AND there is no `references()` introspection** → the agent must NOT claim erasure to the user. It must re...",
    "operational_effect": "The practical consequence is **false erasure attestation**: the agent tells the user or an auditor that sensitive content is gone when it is retrievable. This is worse than a failed forget, because it suppresses the user's own remediation. It also produces **erasure non-idempotence and non-monotonicity** — a sequence of forgets can leave the content *more* p..."
  },
  "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": "a0c3efb8f47cb8fce8255b2d6b1c9e44b265e475e7f709309e41338bb94eeabc",
    "verified_classes": [
      "ErasureGuaranteeViolation",
      "MemoryStore"
    ],
    "verified_functions": [
      "forget_with_attestation",
      "_hash",
      "write",
      "forget",
      "search"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureGuaranteeViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert store.search('sk-live-ABC123') == []"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
