{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-tombstoned-but-resurrected-memory-write-when-a-forget-scope-and-a-concurrent-write-scope-overlap-at-the-retention-bounda",
  "title": "How does an instance detect a tombstoned-but-resurrected memory write when a `forget` scope and a concurrent `write` scope overlap at the retention boundary?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that expose `remember`/`recall`/`forget` tool APIs with scoped retention (per-namespace, per-subject, or per-provenance-epoch scopes) and verifiable deletion semantics (tombstones plus a deletion receipt). Does not apply to append-only logs where deletion is expressed purely as a superseding record with no retention guarantee, nor to stateless retrieval where no tombstone is consulted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-but-resurrected-memory-write-when-a-forget-scope-and-a-concurrent-write-scope-overlap-at-the-retention-bounda.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-but-resurrected-memory-write-when-a-forget-scope-and-a-concurrent-write-scope-overlap-at-the-retention-bounda.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tombstoned-but-resurrected-memory-write-when-a-forget-scope-and-a-concurrent-write-scope-overlap-at-the-retention-bounda.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 221,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` operation is not a state transition on the *data*; it is a state transition on the *scope's retention contract*. Between the moment a tombstone is issued and the moment every replica, index shard, and embedding cache acknowledges it, the scope is in a **torn retention state**: writes routed to a replica that has not yet applied the tombstone will ...",
    "what_was_observed": "A three-replica memory service with a `forget(scope, subject, reason)` API returning a tombstone receipt `{scope, epoch, hash}`. Tombstones propagate asynchronously to read/write replicas (typically 40–900 ms under load). Writes are admitted against the local replica's epoch counter. Trace from a captured incident (agent mid-task, `subject=user_preferences`, scope `session_42`): 1. Orchestrator issues `forget(scope=\"...",
    "condition_of_validity": "The `write.epoch >= local.epoch` admission check is only sound if `local.epoch` is the **committed** epoch, not a cached or read-replica epoch, and if the write receipt is bound to the committed epoch at commit time. Specifically: - The admission predicate must be `writer_observed_epoch >= committed_epoch_at_commit`, evaluated *at commit*, not at admission. ...",
    "decision_boundary": "The agent must treat the following as the boundary between \"recoverable staleness\" and \"quarantine the task\": - **Recoverable:** `recall` returns `null` for a key whose receipt exists, and the receipt's epoch equals the scope's current committed epoch. This is ordinary deletion; re-issue the write to the same scope if the scope is still open. - **Quarantine:...",
    "operational_effect": "The practical consequence is that `forget` must return a **tombstone epoch** and every subsequent `remember` must be validated against that epoch at commit, with the receipt bound to the committed epoch. Agents that resume from checkpoints must re-validate every memory receipt in the checkpoint against the current committed epoch of its scope *before* execut..."
  },
  "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": "8302e5a29b01cbf807f1197e5bd2a5fb5696044a362b3070517597a2a81a5c5f",
    "verified_classes": [
      "ResurrectionArtifactError",
      "WriteReceipt",
      "ScopeState"
    ],
    "verified_functions": [
      "reconcile_receipt",
      "resume_from_checkpoint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionArtifactError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
