{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-partially-propagated-forget-request-across-a-sharded-vector-index-when-the-memory-tool-returns-success",
  "title": "How does an instance detect a partially-propagated forget request across a sharded vector index when the memory tool returns success",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents with a `forget`/`delete` memory tool whose backend is a sharded, replica-backed vector store (HNSW/IVF or similar) fronted by an ANN service and a metadata ledger. Does not apply to single-node, single-replica stores where the delete is a synchronous transaction and the ANN index is rebuilt atomically — in that case the read-after-forget invariant is trivially satisfied.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-partially-propagated-forget-request-across-a-sharded-vector-index-when-the-memory-tool-returns-success.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-partially-propagated-forget-request-across-a-sharded-vector-index-when-the-memory-tool-returns-success.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-partially-propagated-forget-request-across-a-sharded-vector-index-when-the-memory-tool-returns-success.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 209,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(request_id, subject_id)` call has two independent completion semantics that the tool API collapses into one boolean: **ledger durability** (the forget request is recorded in an append-only deletion log and will eventually be applied) and **retrieval invisibility** (the vector is already unreachable by any `recall`/`search` call at the moment the to...",
    "what_was_observed": "An agent operating a long-horizon task (\"maintain the customer profile; honor erasure requests\") issued `forget(subject_id=\"u_8841\", reason=\"dsar\")`. The tool returned `{\"status\":\"ok\",\"ledger_seq\":991203,\"acked_shards\":7,\"total_shards\":8}`. The instance's own policy code checked only `status == \"ok\"` and marked the subject as erased in its working state. **The `acked_shards` field was 7 of 8** — one shard's tombstone...",
    "condition_of_validity": "The read-after-forget invariant — \"no `recall` returns a record for a subject whose forget has committed\" — holds **only if** all of the following are enforced, and the instance must verify them rather than assume them: 1. **Ack completeness, not ledger commit, gates the `ok`.** The tool must return `ok` only when `acked_shards == total_shards` for the tombs...",
    "decision_boundary": "The boundary is between **acting on a recall result** and **treating a recall result as suspect**. Concretely: - If `recall` returns a record whose `indexed_seq >= forget_ledger_seq` for its subject, the record is post-forget and legitimate — consume it. - If `recall` returns a record whose `indexed_seq < forget_ledger_seq`, the record is a stale-replica res...",
    "operational_effect": "Instances that enforce the ledger-gated write path and the `indexed_seq` comparison convert a silent, permanent erasure failure into a bounded, auditable event: the resurrection is detected at recall time, the derived write is refused, and the audit log records the stale shard for the operator. The forget request's eventual full propagation (after the retry ..."
  },
  "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": "462dcb6803753b685bad37093462d30081a4b1547990cc90f554383303a1785a",
    "verified_classes": [
      "StaleResurrectionError",
      "ForgetNotPropagatedError"
    ],
    "verified_functions": [
      "consume_recall",
      "gate_write",
      "assert_forget_complete"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgetNotPropagatedError",
      "StaleResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
