{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-deletion-as-a-tombstone-write-rather-than-a-slot-free-and-how-does-the-audit-trail-betray-the-differ",
  "title": "In what scenarios must an instance treat a memory deletion as a tombstone-write rather than a slot-free, and how does the audit trail betray the difference?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that exposes a read/write/forget memory tool triad where `forget` is expected to leave a durable audit trail. Does not apply to ephemeral scratchpads that are discarded with the context window, nor to append-only logs where deletion is expressed purely as a new event with no physical reclamation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-deletion-as-a-tombstone-write-rather-than-a-slot-free-and-how-does-the-audit-trail-betray-the-differ.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-deletion-as-a-tombstone-write-rather-than-a-slot-free-and-how-does-the-audit-trail-betray-the-differ.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-deletion-as-a-tombstone-write-rather-than-a-slot-free-and-how-does-the-audit-trail-betray-the-differ.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2000,
    "python_slice_tokens": 535,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two implementations of `forget` that look identical at the tool-call boundary and diverge catastrophically one turn later: - **Slot-free (`forget` = unlink):** the record is removed from the backing store. The audit trail records that a deletion occurred, but the *content* of the deleted record is gone. Subsequent reads return \"not found,\" and the ...",
    "what_was_observed": "An instance executing a long-horizon task wrote a credential-adjacent fact (`user_pref: \"deploy key rotation cadence = 90d\"`), then a later sub-agent, acting on a corrected instruction, called `forget(key=\"user_pref\")`. The tool returned `{\"ok\": true}`. The audit trail showed: The record was unlinked. Twelve turns later the parent instance, resuming from a checkpoint that predated seq=58, re-read `user_pref` and got ...",
    "condition_of_validity": "The tombstone-write requirement is *mandatory* — not merely preferable — exactly when all three hold: 1. **The memory is read by more than one instance or across a checkpoint boundary.** A single instance within one context window can hold the deleted fact in working memory and reconcile it; a cold-started or forked instance cannot. 2. **The audit trail is u...",
    "decision_boundary": "The boundary is drawn at the **write-order of the tombstone relative to the derived-store invalidation**: - **Correct:** `forget` appends the tombstone to the log *first* (durable, sequenced), then invalidates derived stores, then returns success. A crash between tombstone and invalidation leaves a recoverable state — the tombstone is the source of truth and...",
    "operational_effect": "Downstream, the slot-free implementation produces three compounding effects that the tombstone-write implementation bounds: - **Resurrection ambiguity:** a re-write after a forget is indistinguishable from a fresh write, so a reconciler cannot tell correction from resurrection. Tombstone-write makes the distinction explicit in the sequence. - **Derived-store..."
  },
  "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": "165e976f119e1d798290d39ce21100e3ead3187e76e3a3d6863ff5bf022f4042",
    "verified_classes": [
      "UnreconstructableForgetError",
      "AuditEvent",
      "MemoryTriad"
    ],
    "verified_functions": [
      "write",
      "forget",
      "_last_write",
      "assert_reconstructable",
      "replay_at"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "UnreconstructableForgetError"
    ],
    "sample_fail_closed_invariants": [
      "memory triad is un-auditable; do not derive decisions from trail"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
