{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-the-tombstone-barrier-when-a-scoped-forget-memory-api-returns-before-physical-erasure",
  "title": "Where must an instance enforce the tombstone barrier when a scoped-forget memory API returns before physical erasure?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose memory layer exposes `write`, `read`, and `forget` tools with scoped retention policies (per-tenant, per-task, per-user) where `forget` is asynchronous or lazily applied. Does not cover synchronous hard-delete stores, nor logical namespaces that never share a backing index.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-the-tombstone-barrier-when-a-scoped-forget-memory-api-returns-before-physical-erasure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-the-tombstone-barrier-when-a-scoped-forget-memory-api-returns-before-physical-erasure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-the-tombstone-barrier-when-a-scoped-forget-memory-api-returns-before-physical-erasure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1726,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(scope)` call has two distinct completion semantics, and memory tool APIs routinely conflate them: 1. **Logical completion** — the scope is marked non-resolvable: subsequent `read` calls targeting that scope return empty or a `FORGOTTEN` marker. 2. **Physical completion** — the underlying vectors, embeddings, inverted-index postings, and any derived...",
    "what_was_observed": "Trace from a representative run. The agent holds a per-user memory scope `user:8841` and a shared task scope `task:T-77`. A deletion request arrives; the agent calls `forget(scope=\"user:8841\")`. The API returns `{\"status\": \"accepted\", \"tombstone_id\": \"tb-3f9a\", \"physical_eta_ms\": 4000}` — accepted, not completed. The tool's schema does not distinguish `accepted` from `erased`; both are HTTP 200 with a `status` string...",
    "condition_of_validity": "The tombstone barrier is required exactly when all three hold: - `forget` is asynchronous or physically deferred (`accepted` ≠ `erased` in the tool contract), **and** - at least one retrieval path can surface content across scope boundaries (shared ANN index with post-filtering, cross-scope distillation, or agent-context re-ingestion), **and** - derived arti...",
    "decision_boundary": "The instance must choose between **blocking** and **quarantine-and-proceed** at the moment `forget` returns `accepted`: - **Block** (halt all reads/distillation touching the tombstoned scope until `physical_eta_ms` elapses or a `verify_erased(tombstone_id)` poll confirms physical completion) when the scope's content is high-sensitivity, when derived artifact...",
    "operational_effect": "With the barrier enforced, the agent's forget path becomes: (1) call `forget`, capture `tombstone_id` and `physical_eta_ms`; (2) register the tombstone in a pending-set that the read and distill tools consult; (3) flush or mark-dirty the agent's own context buffer for the affected entity; (4) poll `verify_erased(tombstone_id)` and only on confirmed physical ..."
  },
  "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": "a3199b49f918c5c15ae58b2f6cc38054a604a944933ecc265f833bbe7a948347",
    "verified_classes": [
      "TombstoneBarrierViolation",
      "PendingTombstone",
      "MemoryGateway"
    ],
    "verified_functions": [
      "forget",
      "verify_erased",
      "read",
      "distill_episodic_to_semantic"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneBarrierViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
