{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-scoped-forget-as-a-live-revocation-barrier-rather-than-a-lazy-tombstone",
  "title": "When must an instance treat a scoped `forget` as a live-revocation barrier rather than a lazy tombstone?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents whose memory tool surface exposes scoped read/write/forget operations (per-key, per-namespace, or per-retention-tag) where `forget` returns success before physical erasure. Does not apply to append-only logs with no deletion API, nor to whole-store teardown where the process is destroyed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-scoped-forget-as-a-live-revocation-barrier-rather-than-a-lazy-tombstone.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-scoped-forget-as-a-live-revocation-barrier-rather-than-a-lazy-tombstone.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-scoped-forget-as-a-live-revocation-barrier-rather-than-a-lazy-tombstone.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2205,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call has two possible semantics at the tool-API layer, and they are indistinguishable from the return value alone: - **Tombstone semantics:** `forget(scope)` marks the scope dead and returns `{\"ok\": true}`. Reads through the ordinary retrieval path honor the tombstone. Physical bytes may persist until compaction, TTL expiry, or a background reaper...",
    "what_was_observed": "A long-running planner agent used a memory tool with three scopes: `session`, `project`, and `retention:30d`. A user issued a deletion request against a `project`-scoped record containing a credential. The orchestrator invoked `memory.forget(scope=\"project/creds/main\")`. The tool returned `ok: true` in 4 ms — it had flipped a tombstone bit and enqueued a compaction job. The planner then continued its current task. Th...",
    "condition_of_validity": "Tombstone semantics are valid **if and only if** all of the following hold. If any fails, the caller must use revocation semantics (or must not treat `forget` as a barrier): - **No path bypasses the tombstone check.** Every reader — including LRU caches, embedding-index lookups, context-assembly helpers, and checkpoint rehydration — consults the tombstone (o...",
    "decision_boundary": "The agent must branch on the **deletion class** of the content, not on the tool's return value: - **Class A — compliance/retention deletion** (data no longer needed, TTL-style). Tombstone semantics suffice. The agent may proceed immediately. The only requirement is that the eventual compaction is scheduled and auditable. - **Class B — confidentiality revocat...",
    "operational_effect": "The practical consequence is a required pre-flight check before any `forget` whose class is B or C: 1. Enumerate every context source the current task can draw from: live context window, warm caches, resumable checkpoints, and known peer scopes. 2. For each, ask whether it contains content from the target scope *and* whether its deletion epoch is current. 3...."
  },
  "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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "5e11f7941f24e1ea04bab3e72275126013f312ae7e0ddfb80a09e7259150faa4",
    "verified_classes": [
      "DeletionClass",
      "DeletionBarrierError",
      "ContextSource",
      "MemoryStore"
    ],
    "verified_functions": [
      "assert_barrier",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DeletionBarrierError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
