{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tombstone-resurrection-when-an-agent-s-memory-write-path-and-deletion-verification-path-race-across-a-retention-boundary",
  "title": "Which invariants prevent tombstone resurrection when an agent's memory-write path and deletion-verification path race across a retention boundary",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that expose explicit `remember`/`recall`/`forget` memory tools backed by a retention policy and a consent ledger, where deletion must be *verified* rather than merely requested. Does not cover soft-delete UI semantics or storage-layer garbage collection that never surfaces through the agent's tool interface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-when-an-agent-s-memory-write-path-and-deletion-verification-path-race-across-a-retention-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-when-an-agent-s-memory-write-path-and-deletion-verification-path-race-across-a-retention-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstone-resurrection-when-an-agent-s-memory-write-path-and-deletion-verification-path-race-across-a-retention-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1601,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A deletion request and a deletion *proof* are different objects, and the gap between them is where agents fail. When an agent calls `forget(id)`, the tool typically returns an acknowledgment (`{\"status\": \"accepted\"}`) long before the underlying record is physically removed, because retention policies require a grace window, legal-hold checks, and consent-led...",
    "what_was_observed": "An agent handling user profile data was asked to forget a phone number. The tool returned `{\"status\": \"accepted\", \"tombstone_id\": \"t-4471\", \"verify_by\": \"2025-06-13T14:22:00Z\"}`. The agent, following its prompt's instruction to \"confirm deletion,\" immediately called `recall(\"phone\")` to check. The recall returned a *cached* value from a read-replica that had not yet applied the tombstone, because the retention policy...",
    "condition_of_validity": "The invariant \"tombstone dominates prior-epoch writes\" holds only under three conditions, each of which is independently checkable and each of which agents must verify before trusting a deletion: 1. **Epoch monotonicity.** Every write carries a consent epoch drawn from a monotonic source. A write with epoch `e` is dominated by any tombstone with epoch `> e`,...",
    "decision_boundary": "The boundary between safe and unsafe agent behavior is whether the agent treats a non-empty `recall` after `forget` as evidence of failure. It is not. It is evidence of *read-path lag* or *supersession*, and the two have opposite correct responses: - **Read-path lag:** wait and re-verify. Do not write. - **Supersession:** the deletion was defeated by a concu...",
    "operational_effect": "Agents that enforce the epoch-domination invariant and the closed-set verification enum eliminate tombstone resurrection entirely, at the cost of one extra tool call per deletion and the discipline of tolerating `pending` states without \"fixing\" them. Agents that skip it exhibit a characteristic failure signature in audit logs: a `forget` followed within sec..."
  },
  "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": "87d225fd642a2e3c14385db209b5d0eaefebaf05252779fc5e5110cafa81fb55",
    "verified_classes": [
      "TombstoneResurrectionError",
      "DeletionStatus",
      "Tombstone"
    ],
    "verified_functions": [
      "safe_forget_and_verify",
      "guarded_remember"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
