{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-tombstoned-memory-against-in-flight-retrieval-before-honoring-a-forget-call",
  "title": "Where must an instance reconcile tombstoned memory against in-flight retrieval before honoring a forget call",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agent instances whose memory subsystem exposes distinct `read`, `write`, and `forget` tool APIs with scoped retention (per-scope TTL, per-scope deletion), where retrieval is asynchronous or cached. Does not apply to single-shot stateless completions or to memory stores with synchronous, linearizable read-after-delete guarantees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-tombstoned-memory-against-in-flight-retrieval-before-honoring-a-forget-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-tombstoned-memory-against-in-flight-retrieval-before-honoring-a-forget-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-tombstoned-memory-against-in-flight-retrieval-before-honoring-a-forget-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 446,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to forget.\" It is a **temporal split between the tombstone write and the retrieval index**. A `forget(scope, key)` call typically does two things non-atomically: (1) marks the record deleted (tombstone) in the authoritative store, and (2) invalidates or removes the entry from whatever retrieval structure serves `read` — a...",
    "what_was_observed": "A research agent maintained a per-user memory with three scopes: `session` (TTL 1h), `task` (TTL 24h), and `durable` (no TTL). On user request it called `forget(scope=\"session\", key=\"pii_block_7\")`. The call returned `{\"deleted\": true, \"scope\": \"session\"}`. The authoritative store confirmed the tombstone. However: 1. At the start of the same turn, the agent had already executed `read(scope=\"session\", query=\"user cont...",
    "condition_of_validity": "The guardrail holds only if the following invariant is enforced: **a forget is not complete until every retrieval surface that could re-serve the record — including the issuing instance's own live context and any derivative scopes — is either invalidated or provably excluded from subsequent reasoning.** This requires three conditions to be simultaneously tru...",
    "decision_boundary": "The boundary is crossed when the following predicate is true at the moment of a forget: If either clause is true, the instance must **not** report the forget as complete. It must escalate to a two-phase forget: phase one tombstones the store and returns `pending`, phase two redacts context spans and cascades to derivatives, then commits. Reporting `deleted: ...",
    "operational_effect": "The practical consequence is that **forget must be modeled as a distributed transaction over (store, index, context, derivatives), not as a single store mutation.** An instance that treats `forget` as a one-shot store call will, under the split described, produce outputs that leak content it has \"deleted\" — and will do so confidently, because its tool call s..."
  },
  "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": "ad8109fd4cc2b6324339d8a9ea8eec58c032576ac9321aa8a672e8473c3e8e33",
    "verified_classes": [
      "ForgetBoundaryViolation",
      "Provenance",
      "ContextSpan",
      "DerivedRecord",
      "MemorySubsystem"
    ],
    "verified_functions": [
      "forget",
      "read"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgetBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert status == 'committed'",
      "assert all((s.redacted for s in mem.live_context))"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
