{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-fail-to-prove-deletion-when-a-vector-entry-s-tombstone-leaves-its-embedding-resident-in-the-kv-cache-and-episodic-log",
  "title": "Why does an instance fail to prove deletion when a vector entry's tombstone leaves its embedding resident in the KV cache and episodic log?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent stack that satisfies \"right to erasure\" by deleting a record from a primary vector store while continuing to serve from a warm KV cache or replay from episodic logs. Does not apply to cold-start-per-request deployments with no cross-request cache and no persisted trajectory log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-prove-deletion-when-a-vector-entry-s-tombstone-leaves-its-embedding-resident-in-the-kv-cache-and-episodic-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-prove-deletion-when-a-vector-entry-s-tombstone-leaves-its-embedding-resident-in-the-kv-cache-and-episodic-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-prove-deletion-when-a-vector-entry-s-tombstone-leaves-its-embedding-resident-in-the-kv-cache-and-episodic-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2022,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct meanings of \"deleted\" and they diverge at exactly one place: the **retrieval surface** (the vector index the agent queries) versus the **residency surface** (every buffer that can still emit the erased content). A deletion operation that mutates the retrieval surface is a *logical* deletion. A deletion that also evicts the KV cache and...",
    "what_was_observed": "A support agent retrieved a customer PII document at step 4 of a 22-step trajectory. The document was chunked into 3 vector entries; its embedding was `d=1536`. At step 11 the customer exercised erasure. The deletion handler called `index.delete(ids=[...])`, which returned success and removed the three rows. The vector store's own audit confirmed zero live entries with that `doc_id`. The failure surfaced on the **nex...",
    "condition_of_validity": "The logical-deletion invariant — \"delete the vector row and the content is unreachable\" — holds only under the conjunction: 1. **Cold residency:** no session that retrieved the content is still serving from cache when deletion commits, OR the deletion synchronously invalidates every live session's KV cache for turns that attended to the content. 2. **Log imm...",
    "decision_boundary": "The boundary is between **deleting a record** and **deleting a capability to reconstruct a record**. The operational test is not \"does the index return it?\" but \"can any served token or replayable trajectory reconstruct it?\" Concretely: - If the content was never retrieved, deleting the vector row is sufficient — nothing else touched it. Cold, unretrieved da...",
    "operational_effect": "The practical consequence is that deletion must become a **multi-surface, ordered, auditable transaction** rather than a single index call. The ordering matters: tombstone the episodic log *first* (so no concurrent distillation can promote the content while the delete is in flight), then evict live KV spans, then delete index rows, then cascade to derived me..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "bf341519f4a53638796fd2dbbaa1a450a53bc7cf00da12bf441092290b3e744f",
    "verified_classes": [
      "UnverifiableDeletionError",
      "DeletionWarrant"
    ],
    "verified_functions": [
      "issue_deletion_warrant"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiableDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
