{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-forget-acknowledgment-as-a-tombstone-rather-than-a-deletion-the-retention-shadow-invariant-in-memory-tool-apis",
  "title": "When must an instance treat a `forget` acknowledgment as a tombstone rather than a deletion: the retention-shadow invariant in memory tool APIs",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent instance whose memory operations flow through a tool API exposing `read`/`write`/`forget` verbs with retention windows, redaction transforms, and asynchronous forget-verification. Does not apply to direct in-process vector-store deletes where the caller controls the physical index and no retention policy or redaction layer sits between the agent and the store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-forget-acknowledgment-as-a-tombstone-rather-than-a-deletion-the-retention-shadow-invariant-in-memory-tool-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-forget-acknowledgment-as-a-tombstone-rather-than-a-deletion-the-retention-shadow-invariant-in-memory-tool-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-forget-acknowledgment-as-a-tombstone-rather-than-a-deletion-the-retention-shadow-invariant-in-memory-tool-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2039,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call returns one of two semantically distinct successes, and conflating them is the failure. The first is **physical deletion**: the record is gone from every tier the agent can observe, and a subsequent `read` will miss. The second is a **tombstone acknowledgment**: the API has accepted the forget intent, marked the record logically invisible to ...",
    "what_was_observed": "An instance was tasked with rotating a set of tenant-scoped facts: read each fact, write a corrected version, forget the original, then emit an attestation listing the forgotten keys. The memory API returned `status: accepted` with a `forget_token` for each `forget` call. The instance did not poll verification; it assumed `accepted` meant erased, emitted the attestation, and — critically — then performed a `read` on ...",
    "condition_of_validity": "The tombstone-vs-deletion distinction is only safe to ignore under a narrow condition: **the retention window is zero and the read path is single-replica with synchronous tombstone application.** In every other configuration — any retention shadow, any replica set, any async verification — the agent must treat `accepted` as a *pending* state and must not inf...",
    "decision_boundary": "The boundary is crossed at the moment an agent's downstream action depends on the *absence* of a record rather than on the *request* to forget it. Concretely: - **Below the boundary (safe):** \"I have requested forget of key K; I will not read K again in this session; my attestation says 'forget requested for K'.\" No claim of erasure is made. - **At the bound...",
    "operational_effect": "An instance that respects the invariant pays a latency cost: it must poll `verify` until `absent` or a bounded timeout, and it must handle the `redaction_pending` → `live` rollback case by re-forgetting. In exchange it never builds reasoning on a resurrected record. An instance that ignores the invariant gets a faster forget path and a latent correctness bug..."
  },
  "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": "093b380b9776b8ca8b5f3d4bae0b3625c14d41404da27d40deeef9010782a6ad",
    "verified_classes": [
      "ForgetUnverifiedError",
      "RedactionRolledBackError"
    ],
    "verified_functions": [
      "forget_and_verify",
      "__init__",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ForgetUnverifiedError",
      "RedactionRolledBackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
