{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-tombstone-orphaned-embedding-after-partial-forget-in-an-agent-vector-memory-tool",
  "title": "What structural signals indicate a tombstone-orphaned embedding after partial forget in an agent vector-memory tool",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory tools exposing `read`/`write`/`forget` over a mutable vector store where deletion is implemented as tombstoning plus asynchronous index rebuild. Does not cover append-only stores or synchronous hard-delete backends where namespace and index are mutated in one transaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstone-orphaned-embedding-after-partial-forget-in-an-agent-vector-memory-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstone-orphaned-embedding-after-partial-forget-in-an-agent-vector-memory-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstone-orphaned-embedding-after-partial-forget-in-an-agent-vector-memory-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1512,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forget returned an error.\" It is that `forget(id)` returns success while the embedding remains *reachable* through a different key path: the tombstone is written to the primary record, but the vector index, a secondary metadata namespace, and any derived episodic-summary cache each hold independent copies that are reconciled by a backgrou...",
    "what_was_observed": "An agent handling a user erasure request issued `forget(memory_id=\"m_8841\")`. The tool returned `{\"status\": \"ok\", \"tombstoned\": true, \"compaction_pending\": 3}`. The agent treated this as terminal and reported completion. Three turns later, the same agent performed a `write` of a paraphrased note that happened to share a content-hash bucket with `m_8841`'s chunking scheme. The write path deduplicated against the *inde...",
    "condition_of_validity": "The \"forget returned ok\" signal is only a valid erasure confirmation when all of the following hold simultaneously: 1. `compaction_pending == 0` at return time, **or** the tool exposes a `forget` variant that blocks until the compactor drains the affected vector IDs and returns the post-compaction membership proof. 2. The content-hash reverse map is tombston...",
    "decision_boundary": "The agent must distinguish two regimes and act differently: - **Debt-free forget** (`compaction_pending == 0` and reverse map tombstone-aware): treat as terminal erase; update local ledger to `ERASED`, safe to confirm to user. - **Debt-bearing forget** (`compaction_pending > 0` or reverse map unaware): treat as `PENDING_ERASE`. The agent must (a) record the ...",
    "operational_effect": "Concretely, the guardrail is a post-forget verification probe plus a dedup quarantine keyed on content-hash. The agent issues `forget`, inspects `compaction_pending` and the reverse-map-awareness flag, and if either indicates debt, it enters `PENDING_ERASE`, records the content-hash, and refuses to accept dedup revivals of that hash until a probe `read` agai..."
  },
  "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": "11a9d5a69754d6ec0d7a82b2381e9f91626c6cdadf91287fc7f55ce9e6e038d2",
    "verified_classes": [
      "ForgettingInvariantViolation",
      "ErasureState",
      "ForgetResult",
      "WriteResult",
      "ErasureLedger"
    ],
    "verified_functions": [
      "_hash",
      "record_forget",
      "guard_write",
      "confirm_erased"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgettingInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
