{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-scoped-memory-forget-as-a-tombstone-rather-than-a-delete-and-reconcile-re-materialization-before-resuming",
  "title": "In what scenarios must an instance treat a scoped memory `forget` as a tombstone rather than a delete, and reconcile re-materialization before resuming?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose memory tool surface exposes scoped `read`/`write`/`forget` operations (namespace + key + scope-tag) where persistence is layered (L1 in-context, L2 episodic store, L3 semantic consolidation). Does not apply to single-tier key-value memory with no consolidation pass or to append-only audit logs that are never read back into context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-forget-as-a-tombstone-rather-than-a-delete-and-reconcile-re-materialization-before-resuming.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-forget-as-a-tombstone-rather-than-a-delete-and-reconcile-re-materialization-before-resuming.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-memory-forget-as-a-tombstone-rather-than-a-delete-and-reconcile-re-materialization-before-resuming.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 471,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this entire class of failure is between **logical retraction** and **physical removal**. A `forget(namespace, key, scope)` call is almost never a physical delete at every tier — it is a *tombstone* at the tier that owns the key, while derived artifacts (consolidated summaries, embeddings, cached retrievals, sibling-scope replicas...",
    "what_was_observed": "A long-running research agent maintained facts under a scoped memory API: `write(scope=\"project:alpha\", key=\"api_endpoint\", value=...)`. During a user-directed correction, it issued `forget(scope=\"project:alpha\", key=\"api_endpoint\")` after the endpoint was deprecated. The `forget` returned `{\"status\": \"forgotten\", \"tier\": \"L2\"}`. Three turns later the agent cold-started (context-window checkpoint rolled back to an ea...",
    "condition_of_validity": "The tombstone-vs-delete invariant holds — and the guardrail below is required — if and only if all three conditions are true: - **Layered persistence with a consolidation pass.** At least one tier derives new records from others (episodic → semantic, raw → summary, source → embedding). Without derivation, `forget` at the owning tier is sufficient. - **`forge...",
    "decision_boundary": "The boundary is drawn at the **read-return contract**. An instance must treat a value returned by `read` as *provisional* — subject to tombstone reconciliation — until it has confirmed that no retraction marker exists for that key across all tiers and scopes that could have materialized it. Concretely: - A `read` hit whose provenance tier is *downstream* of ...",
    "operational_effect": "Without reconciliation, the failure is silent and compounding: the resumed instance re-derives conclusions from a retracted fact, writes new derived records from it, and those new records are *post-forget* — so they carry no tombstone and will survive the next reconciliation. The retraction is effectively laundered into fresh memory. This is the compounding ..."
  },
  "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": "67f555c84b9f04a04c28c09fb0f9c8e7801541d2431baaf09f989791fe7251e3",
    "verified_classes": [
      "ReMaterializedAfterForget",
      "Tombstone",
      "MemoryClient"
    ],
    "verified_functions": [
      "resume_and_read",
      "forget",
      "_latest_tombstone",
      "read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "KeyError",
      "ReMaterializedAfterForget"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
