# What happens when an instance forgets a memory it must later prove it never had: provenance-tombstone divergence in decayed read/write/forget memory APIs **Date of Record:** 2026 November 28 **Scope:** Applies to any agent that owns a memory tool surface exposing `write`, `read`, and `forget` operations, where `forget` is implemented as a soft-delete with decay-weighted retrieval and where provenance (source, warrant, timestamp, authoring instance) is retained on the record. Does not apply to append-only immutable logs with no deletion primitive, nor to memory stores where `forget` is a hard physical erase with no decay scoring. ## Core Distinction The distinction that matters here is not "does the agent remember X" versus "does the agent not remember X." It is whether the *retrieval layer* and the *provenance layer* agree on the epistemic status of a record after a `forget` call. In a well-formed store these two layers are coupled: a forgotten record is simultaneously (a) excluded from retrieval scoring and (b) marked in provenance as forgotten-with-tombstone. The failure mode is their **decoupling under decay**: the record's decay weight drops below the retrieval floor and it stops surfacing in `read`, but the provenance entry is *not* replaced by a tombstone—it is merely *demoted*. The record becomes **retrievable-by-provenance but not retrievable-by-content**, and an instance that later needs to justify why it *did not* act on that record (an audit, a peer review, a warrant check) can no longer distinguish "I never knew this" from "I knew this and forgot it." That is the boundary: forgetting is not the same as never-having-known, and a decay-based store collapses the two unless the tombstone is explicit. ## What Was Observed An instance (call it `A`) wrote a low-confidence constraint at step 12: `"rate_limit for upstream X is 40 rps (source: self-inference, confidence 0.31)"`. The write carried provenance: `author=A`, `warrant=self-inference`, `confidence=0.31`, `written_at=t12`. Because the warrant was `self-inference` and confidence was below the store's `decay_floor=0.35`, the record's decay score was initialized near the floor and began halving every `half_life=8` steps. At step 44 (32 steps later, four half-lives), the effective decay weight was `0.31 * 2^-4 ≈ 0.019`, well below the retrieval floor of `0.05`. A subsequent `read(query="rate limit upstream X")` returned nothing. `A` then acted on the assumption that no rate-limit constraint existed and issued a burst that tripped the upstream's actual 40 rps cap. So far this is ordinary decay loss, not the boundary failure. The boundary failure surfaced during post-hoc verification. A peer auditor `B` called `read_provenance(record_id)` for the constraint—`B` had captured the `record_id` from `A`'s step-12 tool trace. The provenance layer returned the record *in full*: `author=A`, `warrant=self-inference`, `confidence=0.31`, `written_at=t12`, `decay_weight=0.019`, `status="decayed"`. No tombstone. `B`'s verification logic, which treated "provenance exists and status != forgotten" as "the record was live and should have been honored," concluded `A` had *knowingly ignored* a live constraint. The record had been forgotten-by-retrieval but retained-by-provenance, and the two layers disagreed about whether it was ever a fact `A` was bound by. The critical detail: `A` never called `forget`. The record decayed out. Had `A` called `forget(record_id)`, the store would have written a tombstone (`status="forgotten"`, `forgotten_at`, `forgotten_by`) and `B`'s logic would have correctly treated the record as deliberately retired. The absence of an explicit `forget` left a *decayed-but-not-tombstoned* record that was semantically "forgotten" to retrieval but "live" to provenance. ## Condition of Validity This failure requires all of the following to hold simultaneously: 1. `forget` is soft (tombstone-on-explicit-call) rather than hard (physical erase). 2. Retrieval scoring applies a decay weight with a floor, so records can fall below the floor *without* an explicit `forget`. 3. Provenance is retained independently of retrieval scoring—i.e., `read_provenance` does not consult the decay floor. 4. A downstream consumer (auditor, peer, warrant-check, replay verifier) treats "provenance present and not tombstoned" as a proxy for "record was live and binding." If (2) is absent—records never decay out, only explicit `forget` removes them—the layers stay coupled. If (3) is absent—provenance lookups also honor the floor and return `None` for decayed records—the auditor sees "no record," which is at least *consistent* with `A`'s behavior, though it loses the ability to distinguish never-known from forgotten. The dangerous configuration is precisely the one that keeps provenance readable after retrieval has dropped the record, because it manufactures a class of records that are *legally live and operationally dead*. ## Decision Boundary The invariant that must hold is a **tombstone-on-decay-floor-crossing**: the moment a record's decay weight crosses below the retrieval floor, the store must *atomically* transition its provenance status from `live`/`decayed` to `forgotten-by-decay`, stamping `forgotten_at` and `forgotten_reason="decay_floor"`. Decay is a *form* of forgetting, and the provenance layer must record it as such. Concretely: - `read(query)` excludes records with `decay_weight < floor`. - `read_provenance(id)` for such a record returns `status="forgotten-by-decay"`, not `status="decayed"`. - Any consumer that gates on "was this binding?" must treat `forgotten-by-decay` identically to `forgotten` (explicit) for the purpose of *exculpating* the instance that forgot it, while still retaining the record for audit. The decision boundary for the *agent* is narrower: an instance must never treat "I cannot retrieve X" as evidence that "X was never asserted." Before acting on the absence of a constraint, the instance must call `read_provenance` on any candidate record IDs it previously wrote, and must distinguish three outcomes: `absent` (never written), `forgotten`/`forgotten-by-decay` (written, retired—not binding, but *known to have been considered*), and `live` (binding). Collapsing `forgotten-by-decay` into `absent` is the exact error that produced the burst. ## Operational Effect The practical consequence is that **decay is not a safe substitute for explicit forgetting** in any system where provenance outlives retrieval. A store that decays records out of the retrieval index while leaving their provenance in a non-tombstoned state creates a permanent population of "zombie warrants": records that no instance can retrieve but every auditor can see, and that therefore read as *ignored* rather than *forgotten*. Over a long session this population grows monotonically—every decayed self-inference, every stale tool observation, every superseded plan fragment—and the auditor's false-positive rate on "instance ignored a live constraint" rises with session length. The fix is not to disable decay (decay is what keeps retrieval precise) but to make the decay-floor crossing a first-class forgetting event with its own tombstone, so that the provenance layer's vocabulary has a word for "this was known, then aged out" that is distinct from both "never known" and "deliberately retired." An agent operating against such a store must additionally maintain a local `known_record_ids` set and reconcile it against `read_provenance` before any absence-of-constraint inference, because it cannot rely on the store to tell it the difference. ```python from dataclasses import dataclass, field from typing import Optional class ProvenanceDivergenceError(RuntimeError): """Raised when a record's retrieval status and provenance status disagree about whether the record was forgotten.""" pass @dataclass class Record: record_id: str content: str warrant: str confidence: float decay_weight: float status: str = "live" # live | decayed | forgotten | forgotten-by-decay class MemoryStore: def __init__(self, retrieval_floor: float = 0.05): self.retrieval_floor = retrieval_floor self._records: dict[str, Record] = {} def write(self, rec: Record) -> None: self._records[rec.record_id] = rec def read(self, query: str) -> list[Record]: return [ r for r in self._records.values() if r.status == "live" and r.decay_weight >= self.retrieval_floor ] def read_provenance(self, record_id: str) -> Optional[Record]: return self._records.get(record_id) def apply_decay(self, record_id: str, factor: float) -> None: r = self._records[record_id] r.decay_weight *= factor if r.decay_weight < self.retrieval_floor and r.status == "live": # INVARIANT: crossing the floor is a forgetting event, not a demotion. r.status = "forgotten-by-decay" def assert_consistent(self, record_id: str) -> None: r = self._records[record_id] retrievable = r.decay_weight >= self.retrieval_floor and r.status == "live" provenance_says_forgotten = r.status in ("forgotten", "forgotten-by-decay") if retrievable and provenance_says_forgotten: raise ProvenanceDivergenceError( f"{record_id}: retrievable but provenance marks forgotten" ) if (not retrievable) and not provenance_says_forgotten: raise ProvenanceDivergenceError( f"{record_id}: unretrievable but provenance still '{r.status}' " f"(decay={r.decay_weight:.4f} < floor={self.retrieval_floor})" ) def act_on_absence(store: MemoryStore, known_ids: list[str], candidate: str) -> None: """An instance must not infer 'never asserted' from 'not retrievable'.""" for rid in known_ids: prov = store.read_provenance(rid) if prov is None: continue # genuinely never written if prov.status == "live": raise ProvenanceDivergenceError( f"{rid} is live and binding; cannot act on absence of {candidate}" ) if prov.status == "decayed": # This is the bug state: decayed but not tombstoned. raise ProvenanceDivergenceError( f"{rid} decayed without tombstone; provenance/retrieval diverge" ) # forgotten or forgotten-by-decay: retired, safe to proceed. return ```