{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-forgetting-consistency-divergence-when-an-agent-s-forget-tool-tombstones-a-memory-that-a-concurrent-read-already-materialized",
  "title": "Which invariants prevent forgetting-consistency divergence when an agent's `forget` tool tombstones a memory that a concurrent `read` already materialized into its reasoning trace",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent whose memory substrate exposes separate `read`/`write`/`forget` tool calls where `forget` is a logical tombstone (not a synchronous purge) and where a single reasoning trace may read a record, then act on it after a `forget` has been issued. Does not apply to systems where memory reads and forgets are serialized behind a single transactional lock, nor to append-only stores where \"forget\" means physical truncation with no in-flight readers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-forgetting-consistency-divergence-when-an-agent-s-forget-tool-tombstones-a-memory-that-a-concurrent-read-already-materialized.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forgetting-consistency-divergence-when-an-agent-s-forget-tool-tombstones-a-memory-that-a-concurrent-read-already-materialized.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forgetting-consistency-divergence-when-an-agent-s-forget-tool-tombstones-a-memory-that-a-concurrent-read-already-materialized.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2452,
    "python_slice_tokens": 535,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a memory system can claim a record is \"forgotten,\" and they diverge under concurrency: 1. **Storage-level forgetting** — the `forget` tool marks the row tombstoned, removes it from the index, and the store will no longer return it on future `read` calls. The record is gone *from the substrate*. 2. **Reasoning-level forgetting** — the agent...",
    "what_was_observed": "A retrieval-augmented agent was instructed, mid-task, to forget a stale user preference (`\"user prefers metric units\"` → superseded by `\"user now works in imperial\"`). The trace: - **t0** — Agent calls `read(key=\"unit_preference\")` → returns `\"metric\"`. Content is now in the context window at message index 7. - **t1** — Agent calls `write(key=\"unit_preference\", value=\"imperial\")`. Store now holds `\"imperial\"`. - **t2...",
    "condition_of_validity": "The invariant that must hold for forgetting to be *consistent* is not \"the store no longer returns the record.\" It is: > **No reasoning step executed after a `forget` acknowledgment may consume content that was materialized by a `read` of that key prior to the `forget` acknowledgment, unless that content has been explicitly re-derived from a post-forget sour...",
    "decision_boundary": "The boundary between \"safe\" and \"divergent\" is the **materialization epoch** of the forgotten key relative to the forget acknowledgment: - If the last `read` of key K has epoch **after** the `forget(K)` ack → safe. The content in context was fetched from a post-forget store state (which, if the key is tombstoned, means the read returned `not_found` and there...",
    "operational_effect": "The practical consequence is that **forgetting-consistency verification as commonly implemented is a false-negative generator**: it reports green precisely when the forget is cleanest and the divergence most likely. Teams that trust the verifier will ship agents that confidently act on retired facts and will misattribute the resulting errors to reasoning, pr..."
  },
  "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": "33941988d682431e5cf19ecc5750adb172ecf34f405aa9458896cceddda95b7a",
    "verified_classes": [
      "ForgettingConsistencyError",
      "ContextSegment",
      "MemoryRuntime"
    ],
    "verified_functions": [
      "read",
      "write",
      "forget",
      "assert_step_clean",
      "verify_forgetting_consistency"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ForgettingConsistencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
