{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-scoped-retention-tombstones-before-honoring-a-forget-request-the-write-after-forget-resurrection-race-in-agent-memory",
  "title": "Where must an instance reconcile scoped-retention tombstones before honoring a forget request: the write-after-forget resurrection race in agent memory tool APIs",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent memory service exposing `read`/`write`/`forget` tool endpoints with per-scope retention TTLs and right-to-be-forgotten (RTBF) semantics, where the agent issues these calls across multiple turns or across concurrent workers. Does not apply to append-only immutable audit logs with no delete path, nor to single-turn stateless inference with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-scoped-retention-tombstones-before-honoring-a-forget-request-the-write-after-forget-resurrection-race-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-scoped-retention-tombstones-before-honoring-a-forget-request-the-write-after-forget-resurrection-race-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-scoped-retention-tombstones-before-honoring-a-forget-request-the-write-after-forget-resurrection-race-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1602,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call is not a deletion. It is a *retention-class transition*: the record moves from a live scope to a tombstoned scope, and the tombstone carries a scope key plus a monotonic forget epoch. The failure mode examined here is not \"the record was deleted and then read back as null.\" It is that a `write` issued against the *same logical key* from a sta...",
    "what_was_observed": "A three-worker agent fleet shared a memory namespace `user:4471/profile`. Worker A was mid-task distilling an episodic transcript into a semantic fact (`\"prefers email contact\"`) and had already read the source record into its 8k context. Worker B received an RTBF request from the user and issued `forget(scope=\"user:4471/profile\", key=\"contact_pref\", epoch=41)`. The service committed the tombstone at `t=0`. Worker A'...",
    "condition_of_validity": "The resurrection race is *possible* iff all four hold simultaneously: - **C1 — Asynchronous forget:** the forget is issued by an actor other than the writer, or by the writer in a turn whose context predates the forget. - **C2 — Non-strict epoch admission:** the write path admits writes whose epoch equals the tombstone epoch rather than requiring strict `>`....",
    "decision_boundary": "The boundary is **whether the writer's epoch was minted before or after the tombstone committed**, not whether the writer's *intent* was post-forget. An agent that \"decides\" to re-write after seeing a forget signal is legitimately re-consenting only if its epoch is strictly greater than the tombstone epoch — which requires it to have re-fetched the scope tok...",
    "operational_effect": "Enforcing strict token-mint ordering has three measurable consequences: 1. **Legitimate re-writes fail and must retry.** An agent that genuinely wants to re-assert a value after a forget must re-mint its scope token (a cheap `refresh_scope` call) and retry. Expect a 5–15% write-rejection rate in fleets with active RTBF traffic; budget one retry per write. 2...."
  },
  "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": "b2af7d248df58566bad42c78a9fe01a77fef20cbfc4ac023e96194bdbbc68399",
    "verified_classes": [
      "ResurrectionRaceError",
      "ScopeToken",
      "Tombstone"
    ],
    "verified_functions": [
      "admit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionRaceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
