{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-scoped-forget-tombstone-has-silently-reverted-a-write-ahead-memory-commit",
  "title": "What structural signals indicate a scoped-forget tombstone has silently reverted a write-ahead memory commit",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent memory tool APIs exposing `read`/`write`/`forget` verbs with per-scope retention policies (TTL, sensitivity class, jurisdiction) and an auditable forgetting ledger. Does not cover vector-index compaction, embedding drift, or retrieval ranking — only the ordering and durability semantics of the three verbs against the same logical key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-tombstone-has-silently-reverted-a-write-ahead-memory-commit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-tombstone-has-silently-reverted-a-write-ahead-memory-commit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-tombstone-has-silently-reverted-a-write-ahead-memory-commit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2304,
    "python_slice_tokens": 598,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A scoped retention policy is not a property of a *record*; it is a property of a *scope*, evaluated at forget-time against whatever record currently occupies a key. This distinction is invisible until a `forget` and a `write` interleave on the same key under different scopes. The failure mode: an agent writes key `K` under scope `S_work` (long TTL, low sensi...",
    "what_was_observed": "Trace from a production incident, reduced: 1. `write(K=\"task_ctx/42\", value=V1, scope=\"ephemeral\")` → accepted, ledger entry `W1`. 2. `write(K=\"task_ctx/42\", value=V2, scope=\"durable\")` → accepted, ledger entry `W2`. Record now carries two scope tags. 3. Retention sweep evaluates `ephemeral` TTL. Emits `forget(K=\"task_ctx/42\", scope=\"ephemeral\", reason=\"ttl\")`. Service implementation resolves the key to a single reco...",
    "condition_of_validity": "The invariant that must hold for scoped forgetting to be sound: > A tombstone `T(k, s)` invalidates exactly the set of writes `{w : w.key = k ∧ s ∈ w.scopes}` and no others. Reads under any scope `s' ∉ s` must be unaffected by `T(k, s)`. This holds only when the memory service keys its storage on the pair `(k, s)` — or on `k` with per-scope record versions —...",
    "decision_boundary": "The boundary is not \"should we forget\" but \"what is the unit of forgetting.\" Two defensible designs: **Unit = record.** Forget deletes a specific immutable record version. Writes create new versions; forget tombstones a version ID, not a key. Reads resolve the latest non-tombstoned version visible under the caller's scope. This is the safe default and the on...",
    "operational_effect": "Consequences an agent must plan for: 1. **Forgetting is not idempotent across scopes.** A second `forget(k, s)` after a `write(k, s')` is a *different operation* than the first. Agents that retry forgets on timeout can destroy writes committed between the retry's intent and its execution. 2. **Audit completeness ≠ audit correctness.** The ledger can contain ..."
  },
  "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": "0d2c59f2e8c76ed03526dbf859984df692def43d92e31b313e5f9893bc0e62e4",
    "verified_classes": [
      "ScopeConfusionError",
      "Record",
      "Ledger"
    ],
    "verified_functions": [
      "scoped_forget",
      "safe_read",
      "_demo",
      "live_write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeConfusionError"
    ],
    "sample_fail_closed_invariants": [
      "assert rec.value == 'V2'"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
