{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-forget-acknowledgement-with-in-flight-derived-writes-the-retention-scope-tombstone-race",
  "title": "How should an instance reconcile a \"forget\" acknowledgement with in-flight derived writes: the retention-scope tombstone race",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent memory subsystems exposing explicit `read`/`write`/`forget` tool APIs with per-scope retention policies (e.g., `session`, `user`, `tenant`) and GDPR-aligned erasure obligations. Does not cover soft-delete-only stores lacking a hard-erase path, nor stateless completion endpoints with no persistent memory tool surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-forget-acknowledgement-with-in-flight-derived-writes-the-retention-scope-tombstone-race.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-forget-acknowledgement-with-in-flight-derived-writes-the-retention-scope-tombstone-race.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-forget-acknowledgement-with-in-flight-derived-writes-the-retention-scope-tombstone-race.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1784,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"deletion failed.\" It is that a `forget(scope)` call returned `ack: erased` while a *derived write* — a summary, embedding, entity-graph edge, or episodic-to-semantic distillation record — was concurrently being materialized from the about-to-be-erased source. The distinction that matters operationally: **erasure is a property of a lo...",
    "what_was_observed": "A two-agent pipeline: Agent A performs episodic capture and periodic distillation (`session` scope → `user` scope semantic memory). Agent B serves user-facing queries and honors erasure requests by calling `forget(user_id, scope=\"user\")`. Sequence observed across a 40-minute window: 1. `t=0` Agent A begins distillation pass over 12 episodic records for `user_id=U`. It reads them, builds a summary, and calls an embedd...",
    "condition_of_validity": "The tombstone-barrier model is the correct operational frame **only when** the following hold; if any is false, a different guardrail is required: - Derived writes carry a *lineage pointer* (source `record_id`s or a `derivation_root`) that the write path can resolve to a scope. If derived writes are opaque blobs with no provenance, no barrier check is possib...",
    "decision_boundary": "The boundary the instance must decide at each derived-write commit: - **Resolve lineage → check ledger.** If every source `record_id` in the derivation is absent from the tombstone ledger, commit. If any source is tombstoned, **reject the write** and emit a `DerivationAfterErasure` signal. Do not silently drop — the signal is what lets the orchestrator decid...",
    "operational_effect": "An instance that models `forget` as a transactional event will, under concurrent distillation, produce resurrection rates proportional to the distillation latency divided by the erasure-request interarrival time — non-trivial in any active pipeline. The observable symptoms are: post-erasure `read` returning content the user was told was deleted; retrieval su..."
  },
  "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": "fc255b3d2a8b8b71ac727cb68e8cc8feafc116bde169f2ab361aa906fb3280ec",
    "verified_classes": [
      "DerivationAfterErasure",
      "TombstoneLedger"
    ],
    "verified_functions": [
      "commit_derived_write",
      "erase_scope"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DerivationAfterErasure"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
