# What structural signals indicate a scoped-forget tombstone has been orphaned from its retention policy during concurrent memory-tool re-issuance **Date of Record:** 2026 November 28 **Scope:** Applies to agents that expose `read`/`write`/`forget` memory-tool APIs where `forget` is scoped (tenant, session, or namespace) and emits an audit record. Does not apply to append-only logs with no deletion primitive, nor to single-writer stores where the forget and the re-issuance share one serialized queue. ## Core Distinction The failure is not "forget didn't delete the record." It is a *tombstone/policy divergence*: the `forget` call succeeds, writes a tombstone keyed to a retention scope, and appends an audit entry — but a concurrent `write` for the same logical key re-materializes the record under a *newer* scope version that the tombstone does not cover. The tombstone and the surviving record are individually valid; the *binding* between them is what breaks. Structural signals (version mismatch between tombstone scope-vector and record scope-vector, audit-sequence gaps, orphaned retention-policy references) are the only reliable indicators, because the content itself looks correct. ## What Was Observed An agent orchestrating a shared memory namespace issued a scoped forget: ``` forget(scope={tenant:"t-44", ns:"proj-alpha"}, key="user.timezone", policy="retain-audit-90d") ``` The tool returned `ok`, emitted tombstone `T-9001` with `scope_version=7`, and appended audit record `A-5510`. Within the same 40 ms window, a sibling sub-agent executed: ``` write(scope={tenant:"t-44", ns:"proj-alpha"}, key="user.timezone", value="UTC-5") ``` The write resolved the retention policy at `scope_version=8` (a policy bump had landed between the two calls), materialized record `R-7781`, and appended audit `A-5511`. The tombstone `T-9001` carried `scope_version=7`; the retention reaper only applies tombstones whose `scope_version >= record.scope_version`. `R-7781` at version 8 was therefore *not* reaped. The read path returned `UTC-5`. The audit trail was internally consistent — `A-5510` (forget) precedes `A-5511` (write) — so a naive audit replay concludes the write legitimately superseded the forget. It did not: the write was an unrelated concurrent event, not an authorized re-assertion. The structural signal that exposed it: `T-9001.scope_version (7) < R-7781.scope_version (8)`, plus a policy-reference on the tombstone (`retain-audit-90d@v7`) that no longer resolved against the active policy registry (`@v8`). ## Condition of Validity The tombstone is only a valid suppressor when three conditions hold simultaneously at reap time: 1. **Scope-vector dominance** — `tombstone.scope_version >= record.scope_version` for every dimension in the scope vector (tenant, namespace, and any sub-scope). Equality is sufficient only if the store is otherwise single-writer per key. 2. **Policy resolvability** — the retention policy reference pinned on the tombstone still resolves to a live policy object, or the tombstone carries a frozen copy of the retention rule. A dangling policy reference means the reaper cannot compute the retention horizon and must fail *closed* (suppress), not fail open. 3. **Audit contiguity** — the forget's audit sequence number and the record's materialization sequence number are both present and ordered, so a replay can distinguish "supersede" from "concurrent resurrection." If any condition is false, the tombstone is *orphaned*: present, well-formed, and inert. This is the boundary. It is not a crash, not a rollback, and produces no error surface — which is exactly why it survives to production. ## Decision Boundary The invariant an agent must enforce before trusting a `read` after a `forget`: > A record is suppressed iff there exists a tombstone whose scope-vector dominates the record's scope-vector AND whose pinned retention policy resolves. Absence of a dominating tombstone is *not* evidence the record is authorized — it may be an orphaned-tombstone resurrection. Operationally this forces a decision at the agent layer: on `read` returning a record that a prior `forget` was supposed to cover, the agent must not treat the value as ground truth. It must query the tombstone index for the key and compare scope-versions. If a tombstone exists but is dominated by the record's version, the correct action is to *re-issue the forget at the current scope version* (a re-assertion) and treat the read value as quarantined until the re-assertion confirms. If no tombstone exists at all, the read is a fresh write and is legitimate. The boundary is sharp because the wrong branch is silent: trusting the read yields a stale value (here, `UTC-5`) that the agent will propagate into downstream tool calls with full confidence. ## Operational Effect Downstream, the resurrected record poisons any reasoning chain that consumes it. In the observed trace, the agent scheduled a calendar tool with the wrong timezone, and the error compounded across three tool calls before a human noticed. The audit trail looked clean; the retention dashboard showed zero orphaned tombstones because the reaper's own health metric counted only *applied* tombstones, not *dominated* ones. The orphan class was invisible to every existing signal. The guardrail that bounded it: a reaper-side assertion that every tombstone must either apply or be explicitly reconciled against a dominating record, with a counter `orphaned_tombstones_total` exposed to the agent's own health check. When that counter is nonzero, the agent must halt scoped reads for the affected scope-vector and re-assert forgets. The re-issuance must be idempotent and must bump the tombstone's scope-version to the current registry version so dominance is restored. The lesson for the agent layer: forget is not a deletion, it is a *claim of suppression* whose validity is conditional on scope-version dominance and policy resolvability. Treat the tombstone as a first-class object to be verified, not as a side effect to be assumed. ```python class OrphanedTombstoneError(RuntimeError): """Raised when a forget tombstone cannot suppress a record due to scope-version divergence or an unresolvable pinned retention policy.""" pass def verify_suppression(tombstone: dict, record: dict, policy_registry: dict) -> bool: if tombstone is None: # No tombstone: the record is a legitimate fresh write. return False tomb_v = tombstone["scope_version"] rec_v = record["scope_version"] if tomb_v < rec_v: raise OrphanedTombstoneError( f"tombstone {tombstone['id']} at scope_version={tomb_v} is dominated by " f"record {record['id']} at scope_version={rec_v}; suppression invalid" ) pinned = tombstone["policy_ref"] if pinned not in policy_registry: raise OrphanedTombstoneError( f"tombstone {tombstone['id']} pins unresolvable policy {pinned!r}; " f"reaper cannot compute retention horizon and must fail closed" ) return True def guarded_read(key: str, store, tombstone_index, policy_registry) -> dict: record = store.get(key) if record is None: return {"value": None, "quarantined": False} tombstone = tombstone_index.lookup(key) try: suppressed = verify_suppression(tombstone, record, policy_registry) except OrphanedTombstoneError: # Quarantine: do not propagate the value; force re-assertion. return {"value": None, "quarantined": True, "record_id": record["id"]} if suppressed: return {"value": None, "quarantined": False} return {"value": record["value"], "quarantined": False} ``` When `guarded_read` returns `quarantined=True`, the agent must re-issue `forget` at the current `scope_version` and re-verify before consuming the key in any downstream tool call.