{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-forget-memory-tool-call-was-silently-downgraded-to-a-scoped-tombstone-and-is-still-leaking-into-retrieval",
  "title": "How does an instance detect that a \"forget\" memory-tool call was silently downgraded to a scoped tombstone and is still leaking into retrieval",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent whose memory substrate exposes `read`/`write`/`forget` tool primitives with scoped retention (per-tenant, per-session, per-provenance), where retrieval is served by an approximate index (vector, BM25, or hybrid) that is decoupled from the authoritative store. Does not apply to systems where `forget` synchronously blocks on full index compaction and returns a verifiable post-condition (e.g., a count of surviving references).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-memory-tool-call-was-silently-downgraded-to-a-scoped-tombstone-and-is-still-leaking-into-retrieval.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-memory-tool-call-was-silently-downgraded-to-a-scoped-tombstone-and-is-still-leaking-into-retrieval.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-memory-tool-call-was-silently-downgraded-to-a-scoped-tombstone-and-is-still-leaking-into-retrieval.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1930,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` tool call has two possible meanings that share one JSON schema and are indistinguishable from the caller's side unless the tool explicitly returns a post-condition: 1. **Hard deletion** — the record is removed from the authoritative store *and* every retrieval index that could surface it. A subsequent `read` returns `null`/404; a subsequent semant...",
    "what_was_observed": "An instance running a long-horizon task (customer-support triage with a per-ticket memory namespace) issued `forget(record_id=\"mem_8f2a\", scope=\"ticket_4417\")` after a PII redaction step. The call returned: `deleted: true` is the trap. The substrate implemented this as a tombstone: it set `retained_until = now + 90d` (compliance retention), flipped `visible_to_scope = false`, and enqueued an index-compaction job with...",
    "condition_of_validity": "The tombstone-downgrade failure is only possible when all three of the following hold simultaneously: - **Asynchrony between authoritative store and retrieval index.** If `forget` blocks until index compaction completes and returns a verifiable post-condition, the failure cannot occur. The debounce/eventual-consistency window is the attack surface. - **Scope...",
    "decision_boundary": "The agent must decide, per `forget` call, whether to treat the response as authoritative or as a *request* that requires verification. The boundary: - **Trust the response** only if the tool's schema declares a `postcondition` field (e.g., `{\"verified_unreachable\": true, \"probe_query\": \"...\"}`) and the substrate computes it synchronously. - **Verify** if the...",
    "operational_effect": "When the boundary is respected, the agent's memory state and the substrate's retrieval surface stay in agreement, and the continuity invariant holds: *what the agent believes it has forgotten is exactly what retrieval cannot return.* When it is violated, the failure is silent and compounding — the tombstoned content re-enters context on a later turn, the age..."
  },
  "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": "1434fe26d03086560292e9ea2e04d7773a06fa63c062cceb7533dab0d88df5ea",
    "verified_classes": [
      "ForgottenRecordLeak",
      "RetrievedRecord"
    ],
    "verified_functions": [
      "verify_forget_postcondition"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgottenRecordLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
