{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-forget-operation-succeeded-only-on-the-index-and-left-the-underlying-memory-record-live",
  "title": "How does an instance detect that a \"forget\" operation succeeded only on the index and left the underlying memory record live?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory layer exposes separate `write`/`read`/`forget` tool APIs where deletion is implemented as an asynchronous or index-level tombstone rather than an immediate hard delete of the backing record. Does not cover memory systems with synchronous, single-store hard deletes or purely in-context scratchpads with no persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-operation-succeeded-only-on-the-index-and-left-the-underlying-memory-record-live.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-operation-succeeded-only-on-the-index-and-left-the-underlying-memory-record-live.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-operation-succeeded-only-on-the-index-and-left-the-underlying-memory-record-live.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1447,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous distinction is between *observable deletion* and *effective deletion*. An agent that calls `forget(memory_id)` and then calls `read(memory_id)` to verify will almost always get a \"not found\" response, because the read path consults the same index that the forget path just mutated. The verification is circular: both operations are answered by th...",
    "what_was_observed": "A research agent was instructed to forget a set of user-identifying memory records after a task boundary. It issued `forget` for each `memory_id`, then ran a `read` on a sample of five IDs; all five returned `NOT_FOUND`, and the agent logged the deletion as complete. Two turns later, during a routine `search` for an unrelated topic, one of the \"forgotten\" records was returned with high similarity score. The forget ca...",
    "condition_of_validity": "The invariant an agent must enforce is: *a forget is only valid when a read through every retrieval path returns not-found, and when no provenance or derived record can re-materialize the content.* Concretely, the guardrail requires: 1. **Multi-path verification.** Verification must query at least the primary key read, the semantic/vector search path, and an...",
    "decision_boundary": "The boundary is between *tombstone semantics* and *destruction semantics*. If the memory layer's contract is tombstone (hide-from-reader, eventual hard delete, provenance retained), the agent must not report deletion as complete on the basis of a read miss; it must poll job status to terminal success and run multi-path verification. If the contract is destru...",
    "operational_effect": "Without the invariant, forgotten content resurfaces through search, through provenance-derived reconstruction, or through replica lag, and the agent has no signal that its deletion was partial. The failure is silent because the verification is circular. With the invariant, the agent's forget routine becomes a bounded state machine: issue forget, capture job ..."
  },
  "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": "3db9a17f815e184d8265a52899702c60167ba28d442d14b5390d8eb96357f455",
    "verified_classes": [
      "IncompleteForgetError"
    ],
    "verified_functions": [
      "forget_and_verify"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "IncompleteForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
