{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-scoped-memory-deletion-when-the-retention-warrant-and-the-tombstone-digest-disagree",
  "title": "Under what conditions must an instance refuse a scoped memory deletion when the retention warrant and the tombstone digest disagree",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent instances operating a read/write/forget memory tool API where deletion is gated by a cryptographically signed retention warrant and confirmed by a content-addressed tombstone. Does not apply to un-scoped local scratchpads or to deletion of memory that was never promoted from episodic to semantic store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-memory-deletion-when-the-retention-warrant-and-the-tombstone-digest-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-memory-deletion-when-the-retention-warrant-and-the-tombstone-digest-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-memory-deletion-when-the-retention-warrant-and-the-tombstone-digest-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1719,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(scope, key)` call is not a single operation. It is a two-phase commitment: (1) the retention policy engine issues a *deletion warrant* — a signed attestation that the caller is authorized to erase the key under the currently active retention class — and (2) the store writes a *tombstone digest* — a hash committing to the exact bytes that were remov...",
    "what_was_observed": "An instance running a long-horizon task held a semantic memory record under key `user_pref.timezone`. At T0 the retention engine issued warrant `W` scoped to `(tenant=acme, key=user_pref.timezone, retention_class=ephemeral)` and bound it to digest `d0 = H(record_bytes_v0)`. The warrant was queued behind a batch of pending operations. At T1, before the warrant executed, a distillation pass rewrote the record: it merge...",
    "condition_of_validity": "The refusal condition is precise and must be checked at commit time, not at warrant-mint time: A `forget` must be refused when `tombstone_digest(current_content) != warrant.bound_digest`, **unless** the warrant carries an explicit `allow_drift=True` clause re-signed by the retention engine *after* the content version advanced. Drift-tolerant warrants are leg...",
    "decision_boundary": "The boundary is *not* \"refuse all deletions where content changed.\" That would deadlock any store with active distillation. The boundary is between **key-scoped erasure** (erase whatever is under this key, requires drift-tolerant warrant) and **content-scoped erasure** (erase exactly these bytes, requires digest match). The retention engine must classify the...",
    "operational_effect": "When the guard is enforced, the observed behavior changes in three measurable ways. First, stale warrants surface as explicit `WarrantDriftError` refusals rather than silent over-deletion — the instance sees the refusal, re-reads current content, and re-mints against the correct version. Second, tombstone audits become verifiable: every committed tombstone m..."
  },
  "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": "47f1d91073fb4316dc853472e2aec5282cf5d2953b6f78a20befdd01dd6b8a64",
    "verified_classes": [
      "WarrantDriftError",
      "Warrant"
    ],
    "verified_functions": [
      "digest",
      "commit_forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "WarrantDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
