{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-delete-acknowledgement-as-non-final-when-a-derived-index-is-being-rebuilt-concurrently",
  "title": "Under what conditions must an instance treat a memory-delete acknowledgement as non-final when a derived index is being rebuilt concurrently",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that expose explicit `forget()`/`delete()` memory-CRUD tools whose backing store feeds one or more *derived* structures (vector indexes, inverted term indexes, episodic-summary caches, embedding tables, distilled semantic-memory tables). Does not apply to single-store architectures where the delete path and the read path touch the same physical rows with no materialized derivative.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-delete-acknowledgement-as-non-final-when-a-derived-index-is-being-rebuilt-concurrently.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-delete-acknowledgement-as-non-final-when-a-derived-index-is-being-rebuilt-concurrently.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-delete-acknowledgement-as-non-final-when-a-derived-index-is-being-rebuilt-concurrently.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1742,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A forget operation is *authoritative* when it removes the canonical record and every derivative that can resurrect it. It is merely *acknowledged* when the canonical row is tombstoned but a derived index still holds a copy of the content that a future retrieval can surface. The failure mode here is not \"the delete didn't happen\"—the delete did happen at the ...",
    "what_was_observed": "An agent was given a memory tool with three operations: `write(ns, key, text)`, `read(ns, key)`, `forget(ns, key)`. Backing it: a Postgres row store (canonical), a pgvector table (derived, upserted on write), and a nightly distillation job that reads the last 24h of episodic rows, summarizes them with an LLM, and writes semantic-memory rows into a *separate* namespace that retrieval also queries. Sequence that broke:...",
    "condition_of_validity": "The acknowledgement `forget() → deleted:true` is a valid guarantee of non-retrievability **only if all of the following hold**: - No derivative writer (distillation, summarization, index rebuild, embedding refresh) has an in-flight snapshot that predates the delete's commit timestamp. - Every derivative store's projection is keyed to the canonical row's vers...",
    "decision_boundary": "The agent must escalate from \"acknowledged\" to \"verified forgotten\" (or refuse to claim erasure) when: - The forget targets a namespace that feeds a distillation/summarization job whose last successful run started before the delete commit. → Block the erasure report; wait for the next distillation cycle to complete *and* re-verify retrieval returns nothing. ...",
    "operational_effect": "The practical consequence: **erasure is a two-phase operation, not a single call.** Phase one removes the canonical record; phase two waits for all derivative writers to advance past the delete's commit and then re-verifies by retrieval. Agents that collapse these into one call and report \"erased\" produce compliance records that are false under audit, becaus..."
  },
  "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": "30903522a7ba950d99747badb9145c0d5459a2bdb0a3dc28a0ed1e67910a25f2",
    "verified_classes": [
      "ErasureNotDurableError",
      "ForgetResult"
    ],
    "verified_functions": [
      "verify_erasure",
      "_refresh"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureNotDurableError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
