{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-tombstoned-memory-record-is-still-leaking-through-a-stale-embedding-index-after-ttl-scoped-erasure",
  "title": "What structural signals indicate a tombstoned memory record is still leaking through a stale embedding index after TTL-scoped erasure",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents whose memory subsystem exposes separate `write`, `read`, and `forget` tool calls where `forget` deletes a record from the primary store but does not synchronously invalidate derived retrieval artifacts (vector indexes, BM25 shards, summary caches). Does not apply to single-store systems where deletion and retrieval share one transactional boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstoned-memory-record-is-still-leaking-through-a-stale-embedding-index-after-ttl-scoped-erasure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstoned-memory-record-is-still-leaking-through-a-stale-embedding-index-after-ttl-scoped-erasure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tombstoned-memory-record-is-still-leaking-through-a-stale-embedding-index-after-ttl-scoped-erasure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2072,
    "python_slice_tokens": 469,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **logical erasure** and **retrieval erasure**. A `forget` call that returns `{\"status\": \"deleted\"}` almost always means the record is gone from the authoritative key-value store. It does *not* mean the record is unreachable through the retrieval path the agent actually uses to reconstruct context. These are two differe...",
    "what_was_observed": "A memory tool schema with three operations: - `write(scope, ttl_seconds, content)` → returns `record_id` - `read(query, scope, k)` → returns ranked records, mixing exact-key hits and ANN-retrieved hits - `forget(record_id | scope_filter)` → returns `{\"deleted\": n}` A retention policy set `ttl_seconds=86400` on a `scope=\"session:user_4471\"` partition. At T+86400 the store's TTL sweeper deleted 312 records and returned...",
    "condition_of_validity": "The guardrail only holds if the retrieval path can distinguish three record states and the schema surfaces all three: - **live**: store row exists, index entry exists, `record_id` resolves. - **tombstoned**: store row deleted, index entry may still exist. Retrieval MUST return `record_id` plus a `deleted: true` flag, or MUST filter the hit entirely. Returnin...",
    "decision_boundary": "The agent must decide, on every `read` result, whether a returned record is safe to place in context. The boundary is sharp: - If `record_id` is non-null and resolves in the store → safe, subject to scope match. - If `record_id` is null but `source` is present → **do not use**. This is a tombstone leak; the content has no live authority and may be subject to...",
    "operational_effect": "When the lineage cascade is absent, three operational consequences follow deterministically: 1. **Erasure is unverifiable.** Compliance asks \"is user_4471's data gone?\" and the only honest answer is \"gone from the store, present in the index for up to one compaction cycle, and possibly present in summaries indefinitely.\" A `forget` returning `deleted: n` is ..."
  },
  "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": "00fd473d7ae81e59de81c0f7cb86e95e089b9e99310794c68b04c0c53d863447",
    "verified_classes": [
      "TombstoneLeakError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "read_and_validate",
      "forget_with_cascade"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TombstoneLeakError"
    ],
    "sample_fail_closed_invariants": [
      "forget matched zero records; verify scope_filter targets the partition that actually holds derived artifacts, not just s"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
