# Under what conditions must an instance refuse decay-based eviction when an audit-logged deletion proof cannot reconstruct the evicted memory's contribution to a live inference? **Date of Record:** 2026 November 30 **Scope:** Applies to agents maintaining a persistent memory store with time-decayed retention scores, interference-aware eviction, and a tamper-evident audit log of deletions. Does not apply to stateless single-shot inference or to stores where evicted memories are provably unreferenced by any live warrant or downstream derivation. ## Core Distinction The distinction that matters is between *forgetting as a retention decision* and *forgetting as a proof obligation*. A decay function answers "how much is this memory worth now?" An audit-logged deletion proof answers "can a later auditor reconstruct why this memory was removed and what it contributed to decisions made while it was live?" These are two different invariants over the same object, and they decouple precisely when a memory's decay score crosses the eviction threshold while the memory is still causally implicated in a derivation chain that outlives it. The boundary condition: a memory can be *retention-dead* (score below threshold, scheduled for eviction) and simultaneously *provenance-live* (cited in the justification of an active plan, a warrant, or a completed tool action whose effects are still in force). Decay functions are blind to provenance liveness because they are functions of time, access frequency, and recency—not of downstream dependency. Interference-aware eviction makes this worse: it evicts the item whose removal *least disturbs* the remaining embedding neighborhood, which is exactly the item whose deletion proof is hardest to reconstruct, because its contribution was, by construction, low-similarity and low-redundancy. The one memory you can safely evict is the one whose loss is least recoverable from neighbors. ## What Was Observed An agent running a long-horizon task (a 40-step repository refactor) maintained an episodic memory store with exponential decay `score = w_access · exp(-λ·Δt) · log(1+access_count)`, λ tuned so half-life ≈ 6 hours of wall-clock. At step 31, the agent evicted 14 memories. Among them was memory `M_2271`: a note that "the `billing/legacy` module must not import `core.auth` directly—it triggers a circular init that only manifests under the test harness's import order." This memory had low access count (read twice, at steps 4 and 9) and had decayed below threshold by step 31. Its interference score was low because no other memory in the store shared its embedding neighborhood—it was a singleton fact. At step 34, the agent authored a plan that reintroduced `from core.auth import SessionToken` into `billing/legacy`. The plan's justification cited three memories, none of which was `M_2271`. The agent had forgotten the constraint but not the *category* of constraint; it proceeded confidently. The circular import surfaced at step 38 during test execution, producing a `RuntimeError` that the agent misattributed to a dependency-version mismatch and attempted to fix by pinning versions—compounding the error across four more tool calls. The audit log recorded the eviction of `M_2271` with `{id, evicted_at, decay_score_at_eviction, lambda, access_count, neighborhood_size: 0}`. This proof is *sufficient to justify* the eviction (the score was genuinely below threshold) but *insufficient to reconstruct* the memory's content or its contribution to any inference. The proof records that a deletion happened and why the retention policy fired; it does not record what was lost. When the post-mortem auditor attempted to answer "did the agent know about the circular-import constraint?", the audit log could confirm only that *some* low-access singleton was evicted at step 31—not that it was the constraint. The deletion proof was valid and useless. The critical observation: the failure was not that decay evicted a useful memory. Decay is *supposed* to evict useful memories—that is what forgetting is. The failure was that the eviction proceeded while the memory was provenance-live, and the audit proof was structured to certify *policy compliance* rather than *reconstructability*. The two are not the same, and the agent's memory subsystem treated them as interchangeable. ## Condition of Validity Decay-based eviction with audit logging is valid—i.e., the system may proceed to evict without halting—only when *all* of the following hold: 1. **Provenance quiescence.** The candidate memory is not cited in the justification chain of any active plan, warrant, or in-flight tool action. This requires a reverse index from memory-id to live derivations, not merely a forward index from memory to content. If the reverse index is absent, the condition cannot be evaluated and eviction must not proceed. 2. **Reconstructable deletion proof.** The audit record must contain enough to answer "what did this memory assert, and what did it contribute?" at minimum: a content hash, a compressed or summarized assertion, the derivation ids that cited it (even if now inactive), and the eviction rationale. A proof containing only `{id, score, lambda}` fails this condition. 3. **Neighborhood redundancy or explicit irreplaceability flag.** Interference-aware eviction assumes evicted content is recoverable from surviving neighbors. When `neighborhood_size == 0` (a singleton fact), this assumption is false. The eviction policy must treat singletons as a distinct class requiring either an explicit `irreplaceable=true` retention override or a full-content deletion proof. The observed failure was a singleton with a minimal proof—the worst quadrant. 4. **Decay function stationarity relative to the task horizon.** The half-life must be long relative to the longest plausible dependency chain in the active task class. A 6-hour half-life in a 40-step, multi-hour refactor is not a tuning error; it is a category error—the decay constant was chosen for a chat session, applied to a task whose derivations span the full horizon. When any condition fails, the correct behavior is not to lower the threshold or extend the half-life (both are tuning responses to a structural problem) but to *defer eviction* and *escalate the proof obligation*: either reconstruct the missing proof fields before deletion, or hold the memory in a `quarantined` state where it is excluded from retrieval scoring but retained for provenance resolution. ## Decision Boundary The decision boundary is between *retention-dead* and *provenance-live*, and it is crossed in the direction of danger when the eviction scheduler consults only the retention score. The guardrail is a two-gate eviction: - **Gate 1 (retention):** `score < threshold`. Necessary, not sufficient. - **Gate 2 (provenance):** `reverse_index[memory_id]` contains no live derivation AND (`neighborhood_size > 0` OR `deletion_proof.complete`). If Gate 2 fails, the memory transitions to `quarantined`, not `deleted`. The subtlety is that Gate 2's reverse-index check must be evaluated against the *current* derivation graph, and the derivation graph is itself mutated by the agent's reasoning. A memory that was provenance-dead at step 30 can become provenance-live at step 34 if the agent authors a plan that *would have* cited it—but the agent cannot cite what it has forgotten. This is the non-obvious invariant: **eviction changes the future derivation graph, so the provenance-liveness check is not conservative—it is circular.** The only sound resolution is to make the deletion proof *content-complete* (condition 2), so that a quarantined-then-evicted memory can still be reconstructed by an auditor or by the agent itself during a later replay. Without content-complete proofs, the circularity is unbreakable and the agent is condemned to repeat the class of error it forgot it had already learned. ## Operational Effect The operational effect of getting this boundary wrong is *silent, confident regression*: the agent re-derives a constraint it previously encoded, violates it, misattributes the resulting failure, and compounds the error across tool calls—all while the audit log reports full compliance with the retention policy. The log is not lying; it is answering a different question than the one the post-mortem needs. Systems that instrument only policy compliance will show green dashboards during exactly the failures that matter. The corrective is to treat the deletion proof as a *first-class artifact with its own completeness invariant*, evaluated at eviction time, and to treat singleton memories as requiring stronger proofs rather than weaker ones. The counterintuitive rule: the lower a memory's interference score, the *more* complete its deletion proof must be, because interference-aware eviction's core assumption (recoverability from neighbors) is precisely what a low interference score falsifies. ```python from dataclasses import dataclass, field from typing import Optional class DeletionProofIncomplete(RuntimeError): """Raised when an eviction would proceed without a reconstructable proof.""" pass class ProvenanceLiveEviction(DeletionProofIncomplete): """Raised when a retention-dead memory is still cited by a live derivation.""" pass @dataclass class Memory: id: str content_hash: str assertion_summary: Optional[str] decay_score: float neighborhood_size: int cited_by_live_derivations: list[str] = field(default_factory=list) irreplaceable: bool = False @dataclass class DeletionProof: memory_id: str content_hash: Optional[str] assertion_summary: Optional[str] cited_by: list[str] decay_score_at_eviction: float lambda_: float neighborhood_size: int def is_content_complete(self) -> bool: return ( self.content_hash is not None and self.assertion_summary is not None ) def evaluate_eviction( mem: Memory, threshold: float, lambda_: float, reverse_index: dict[str, list[str]], ) -> str: """Return 'delete', 'quarantine', or raise if the proof obligation is unmet.""" if mem.decay_score >= threshold: return "retain" live_citations = reverse_index.get(mem.id, []) if live_citations: raise ProvenanceLiveEviction( f"memory {mem.id} is retention-dead (score={mem.decay_score:.4f} < " f"{threshold}) but cited by live derivations {live_citations}; " f"eviction would sever a provenance chain mid-flight" ) proof = DeletionProof( memory_id=mem.id, content_hash=mem.content_hash if mem.content_hash else None, assertion_summary=mem.assertion_summary, cited_by=live_citations, decay_score_at_eviction=mem.decay_score, lambda_=lambda_, neighborhood_size=mem.neighborhood_size, ) singleton = mem.neighborhood_size == 0 if singleton and not mem.irreplaceable and not proof.is_content_complete(): raise DeletionProofIncomplete( f"memory {mem.id} is a singleton (neighborhood_size=0) with an " f"incomplete deletion proof; interference-aware eviction's " f"recoverability assumption is falsified and the proof cannot " f"reconstruct the lost assertion" ) if not proof.is_content_complete() and not mem.irreplaceable: return "quarantine" return "delete" ```