{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-ttl-expiry-against-deletion-provenance-when-a-forget-call-races-a-concurrent-re-derivation",
  "title": "Where must an instance reconcile TTL expiry against deletion provenance when a forget() call races a concurrent re-derivation?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent instances whose memory subsystem exposes explicit `write`, `read`, and `forget` tool APIs with per-record TTL and provenance-tracked deletion (right-to-be-forgotten / RTBF). Does not cover implicit eviction from a fixed context window, nor soft-delete schemes where a tombstone is never enforced at read time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-ttl-expiry-against-deletion-provenance-when-a-forget-call-races-a-concurrent-re-derivation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-ttl-expiry-against-deletion-provenance-when-a-forget-call-races-a-concurrent-re-derivation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-ttl-expiry-against-deletion-provenance-when-a-forget-call-races-a-concurrent-re-derivation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1711,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct reasons a memory record can be absent from a `read`: 1. **Expiry** — the record's TTL elapsed; it is *logically dead* but may still be physically present in a backing store, index, or replica. 2. **Deletion** — a `forget(record_id, provenance=...)` tombstone was committed, making the record *legally and semantically forbidden* from eve...",
    "what_was_observed": "A research agent maintained a semantic memory of user preferences via three tools: `mem.write(key, value, ttl, provenance)`, `mem.read(key)`, and `mem.forget(key, warrant_id)`. A user exercised RTBF on a record `pref:home_address`. The `forget` call committed a tombstone and returned `{\"status\": \"deleted\", \"warrant_id\": \"w-4471\"}`. Two turns later, a different task prompted the agent to summarize the user's location ...",
    "condition_of_validity": "The re-derivation-resurrection failure is *possible* only when all of the following hold: - `forget` is implemented as a tombstone rather than a hard physical purge, **and** - the write path does not consult the tombstone set before accepting a write, **and** - the agent retains enough *residual signal* (adjacent records, conversation history, tool outputs) ...",
    "decision_boundary": "The operational decision is: **when `read` returns absent, the instance must determine whether the absence is expiry or deletion before it may re-derive.** - If `read` returns a tombstone marker (`{\"status\": \"forgotten\", \"warrant_id\": ...}`), the instance must **not** re-derive that scope. It must treat the scope as write-barred for the remainder of the task...",
    "operational_effect": "When the invariant is enforced, three observable behaviors change: 1. **`read` must return deletion metadata, not silent absence.** A bare `None` is an under-specified contract that forces the agent to guess. The store must distinguish `EXPIRED` (re-derivable) from `FORGOTTEN` (write-barred) in the read response, and the agent's memory client must propagate ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "c3a6b9a3fd687805b74b9c1717bee32de8cce874ad530e74b15caaa81815827b",
    "verified_classes": [
      "ResurrectionViolation",
      "Tombstone",
      "MemoryStore"
    ],
    "verified_functions": [
      "safe_re_derive",
      "_canonicalize",
      "forget",
      "read",
      "write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResurrectionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
