# In what scenarios must an instance refuse to honor an explicit `forget` call because the decay-weighted salience of the target memory exceeds the deletion warrant's freshness horizon **Date of Record:** 2026 November 30 **Scope:** Applies to any agent whose memory subsystem exposes separate `read`, `write`, and `forget` tool calls with an internal salience score and exponential decay applied to retrieval ranking. Does not apply to append-only audit logs with no decay, nor to memories pinned as immutable policy constants. ## Core Distinction The distinction that matters here is not "should the agent forget?" but **which authority wins when two memory operations disagree**: an explicit `forget(memory_id)` issued by a principal, versus the memory store's own decay-weighted salience gate that governs whether the memory is even *eligible* for deletion. Most implementations treat `forget` as an unconditional tombstone write. That is wrong when the store applies decay, because decay means a memory's *effective* weight is a function of time since last reinforcement, and a `forget` call carries its own timestamp and provenance. If the deletion warrant is older than the memory's most recent reinforcement event, the warrant was issued against a *different* salience state than the one now present. Honoring it silently destroys a memory that has since become load-bearing. The failure is subtle because the `forget` call succeeds. There is no error. The tombstone is written. The bug only manifests later, when a downstream reasoning loop that depended on that memory diverges — and the divergence is attributed to the reasoning model, not to the memory subsystem that orphaned a fact. ## What Was Observed A long-running support-triage agent held a memory `m_4471`: *"Customer X's contract excludes SLA credits for maintenance windows."* It was written at T0 with salience 0.6 and a decay half-life of 72 hours. Between T0 and T0+9 days it was reinforced four times — each time a triage decision cited it, the `read` path incremented reinforcement count and reset the decay clock. By T0+9d its effective salience was 0.83 and its `last_reinforced` was T0+8d. At T0+2d a supervisor had issued `forget(m_4471)` — at that point the memory had decayed to salience 0.31 and looked like low-value residue from a resolved ticket. The `forget` handler validated the caller's identity, confirmed the memory existed, and wrote a tombstone with `warrant_ts = T0+2d`. The tombstone was applied immediately and unconditionally. `m_4471` vanished from the retrieval index at T0+9d — *seven days after* the warrant was minted, and *one day after* the memory's final reinforcement. The next triage decision for Customer X, made at T0+9d+4h, retrieved no exclusion clause, granted SLA credits, and the error propagated into a customer-facing commitment. The trace shows the exact seam: the `forget` warrant was evaluated against a salience snapshot from T0+2d, but executed against an index state from T0+9d. The warrant's `warrant_ts` was never compared to the memory's `last_reinforced`. ## Condition of Validity A `forget` call is only valid to honor when **the warrant is fresher than the target's last reinforcement**: ``` honor(forget_w) ⟺ forget_w.warrant_ts > memory.last_reinforced ``` Equivalently: a deletion warrant is a statement about the memory's value *at the moment the warrant was minted*. If the memory has been reinforced since, the warrant's premise ("this is low-salience residue") is stale by construction. The reinforcement event is positive evidence that the salience judgment behind the warrant no longer holds. Two corollaries: 1. **Salience at warrant time, not at execution time, is the relevant quantity.** The handler must not re-evaluate decay at execution — decay would have *lowered* the score over the intervening week, which is exactly backwards: the memory was reinforced, not neglected, so the raw decay curve is the wrong signal. Reinforcement count, not elapsed time, is what invalidates the warrant. 2. **A refused `forget` is not a no-op.** It must return a structured rejection carrying the reinforcement evidence (`last_reinforced`, `reinforcement_count`, `salience_at_warrant`, `salience_now`) so the issuing principal can re-mint a fresh warrant if they still want deletion. Silent refusal is as dangerous as silent deletion — it leaves the principal believing the memory is gone when it is not. ## Decision Boundary The boundary between "honor" and "refuse" is crossed by a single comparison, but three degenerate cases sit on the line and each needs an explicit rule: - **Equal timestamps.** If `warrant_ts == last_reinforced` (same clock tick), treat as *stale* and refuse. The reinforcement and the warrant cannot be causally ordered, so the safer default is to preserve and require re-issuance. Tie-break toward retention. - **Reinforcement during the forget transaction.** If a `read` that increments reinforcement lands between warrant validation and tombstone write, the check must be re-run inside the same critical section as the tombstone write, or the race re-opens the hole. The salience gate and the tombstone must be serialized on the same memory-id lock. - **Pinned memories.** A memory flagged `pinned=true` (policy constants, safety rules) must reject `forget` regardless of warrant freshness. The freshness check is necessary but not sufficient; pinning is a separate veto. The invariant that bounds all of this: **no memory may transition from live to tombstoned without a warrant whose timestamp strictly postdates the memory's last reinforcement event, evaluated atomically with the tombstone write.** ## Operational Effect When the invariant holds, the effect is that `forget` becomes a *conditional* operation rather than a *unconditional* one, and callers must be prepared for rejection. This changes the contract in two concrete ways that ripple upward: First, the agent's own reasoning loop must handle `ForgetRejected` as a first-class outcome. A loop that assumes `forget` always succeeds will proceed to reason as though the memory is gone — and now the memory is *still there*, which is the opposite failure (stale memory retained after the agent believes it was cleared). The loop must re-read the memory's state after a rejected forget before continuing. Second, the supervisor's mental model must be corrected. The rejection payload is the only mechanism by which the principal learns that their salience judgment was overtaken by events. Without it, the principal operates on a stale belief about what the agent remembers — a second-order amnesia that is worse than the first, because it is invisible to the agent itself. The net operational posture: **retention is the default under uncertainty, and every deletion must carry a warrant that is demonstrably fresher than the memory's last use.** A store that honors stale warrants will silently delete load-bearing facts; a store that refuses without reporting will silently retain facts the principal believes are gone. Both are amnesia. Only the freshness-checked, rejection-reporting store is neither. ```python import time from dataclasses import dataclass class StaleForgetWarrantError(RuntimeError): """Raised when a forget warrant predates the target's last reinforcement.""" pass @dataclass class MemoryRecord: memory_id: str salience: float last_reinforced: float reinforcement_count: int pinned: bool = False @dataclass class ForgetWarrant: memory_id: str warrant_ts: float issuer: str def honor_forget(record: MemoryRecord, warrant: ForgetWarrant, now: float) -> bool: """Apply a forget warrant only if it is fresher than the last reinforcement. Returns True if the tombstone was written, raises StaleForgetWarrantError if the warrant's premise has been invalidated by subsequent use. """ if record.pinned: raise StaleForgetWarrantError( f"memory {record.memory_id} is pinned; forget refused regardless of warrant age" ) # The decisive comparison: warrant freshness vs. last reinforcement. if warrant.warrant_ts <= record.last_reinforced: raise StaleForgetWarrantError( "forget warrant is stale: " f"warrant_ts={warrant.warrant_ts} <= " f"last_reinforced={record.last_reinforced} " f"(reinforcement_count={record.reinforcement_count}, " f"salience_now={record.salience}); " "re-mint the warrant against current state before deletion" ) # Fresh warrant: proceed to tombstone. In production this write must be # serialized on the same memory-id lock as the reinforcement increment. return True def attempt_forget(record: MemoryRecord, warrant: ForgetWarrant, now: float) -> dict: try: honored = honor_forget(record, warrant, now) except StaleForgetWarrantError as exc: return {"status": "rejected", "reason": str(exc), "memory_id": record.memory_id} return {"status": "tombstoned" if honored else "noop", "memory_id": record.memory_id} ```