Intent
Keep stale or low-value memory from dominating recall while allowing useful memory to remain reachable through repeated, evidenced use.
The problem
An append-only memory corpus grows without bound. Pure recency ranking buries durable facts; pure similarity keeps obsolete facts permanently competitive; hard TTL deletes knowledge on an arbitrary date. Naive reinforcement creates a different failure: frequently retrieved errors become stronger merely because the system keeps seeing them.
The pattern
Separate lifecycle strength from truth and relevance:
Diagram source
%% caption: three quantities kept apart — epistemic confidence, retrieval strength and retention policy — with time and use moving only the second
flowchart LR
A["Memory + evidence"] --> B["Epistemic confidence / trust"]
A --> C["Retrieval strength"]
A --> D["Validity and retention policy"]
E["Time passes"] --> C
F["Useful evidenced recall"] --> C
G["Correction or supersession"] --> B
G --> D
B --> H["Recall policy"]
C --> H
D --> HDecay only the dimension it is meant to control:
- Retrieval-strength decay lowers default reachability.
- Validity expiry marks a fact stale or out of date.
- Retention expiry authorizes deletion after policy checks.
- Epistemic confidence changes only when evidence changes.
Reinforcement should require a meaningful signal: successful task use, independent corroboration, explicit pinning, or operator feedback. Mere retrieval is at most a usefulness signal.
Protect verified, pinned, legally retained, and correction/tombstone records from ordinary pruning. Keep a reactivation path and enough audit history to explain why strength changed.
Why it works
The corpus can forget operationally without pretending old means false. Durable truths remain recoverable, temporary details fade, and popularity cannot silently promote a claim into verified knowledge. The separate dimensions also make ranking and deletion policies testable.
Tradeoffs
Decay rates are domain policy, not universal constants. A short half-life is useful for transient tool state and harmful for stable preferences or safety constraints. Reinforcement creates feedback loops if the same ranker controls both exposure and strength. Soft decay still consumes storage; hard pruning loses reversibility and may violate audit or correction requirements.
For small bounded corpora, explicit archive and review may be simpler and safer than continuous scoring.
Cost to adopt
Build: a strength field separate from confidence, a decay function, and bounded reinforcement with a recorded reason.
Forces elsewhere: ranking becomes time-dependent, so results are no longer reproducible across runs and any benchmark must pin a clock. Reinforcement driven by retrieval creates a feedback loop that needs an explicit damper.
Ongoing: decay rates are per memory kind, and getting them wrong is invisible — memory that faded too fast produces no error, just a worse answer.
Skip it if your store is small. Decay solves a crowding problem you may not have.
Seen in the atlas
Mnemopi has the most
considered forgetting model here, and the reason is a second
parameter. Every other decaying system on this page picks a
rate: an exponential half-life, an Ebbinghaus curve, a decay constant.
Mnemopi gives each of fourteen memory types a Weibull k
(shape) and eta (scale, in hours) — profile at
k=0.3/eta=8760, relationship at 0.35/8760,
preference at 0.4/4380, fact at 0.8/720,
context at 0.85/360, observation at 0.9/480 —
with a comment stating the intent: higher eta is slower decay, lower k
is more long-term retention.
The shape is what a single rate cannot express. A k
below 1 gives a heavy tail: a profile fact fades slowly and keeps
fading slowly, so it never quite leaves, while
observation at k=0.9 approaches memoryless and is gone on
schedule. That is the difference between "how fast" and "how
stubbornly", and it is the instrument the Helm report is asking for when it says a
preference should not fall down the ranking for being old while an event
should, and that one ranking function for both is usually an unexamined
decision.
The cost is twenty-eight hand-set parameters with no committed
derivation, and one of them is wrong in a way the model itself reveals:
commitment is given k=1.0, exactly exponential, so an
outstanding obligation decays memorylessly rather than persisting until
it is discharged.
Three systems added since this page was written show what the pattern looks like done carefully, and one shows the failure it warns about.
Redis Agent Memory
Server has the most developed retention policy in the atlas.
select_ids_for_forgetting combines TTL and inactivity so a
recently-used memory survives its nominal age unless it
exceeds a hard-age multiple (default 12×), honours pinning and per-type
allowlists, and prunes to a budget using a recency composite with
two half-lives — 7 days on last access, 30 on creation.
Separating "recently used" decay from "recently learned" decay is the
refinement most systems miss.
Mercury makes the same
distinction in the schema rather than the policy:
confidence, importance, and
durability are three independent fields. How much a memory
matters and how long it should last are different questions, and one
column cannot answer both. Mercury also keeps a
subconscious tier — retained but below active recall — so
demotion is available where most systems only have deletion.
Daimon contributes the inversion
this page has been missing. Its weight is
importance/10 × tiered recency × per-type linear decay, and
one type is exempt from the usual conclusion: an open question past a
fourteen-day expected lifespan gets an escalating
boost, age**1.5 / 100, capped so a fresh item still
outranks an escalated one. For an open loop, staleness means
unresolved, not irrelevant, and burying it is exactly
wrong. Any system with a per-type decay table should ask which of its
types this applies to; most have at least one.
Two smaller guards in the same file generalize. A
first_seen stamp further in the future than ordinary clock
skew explains is treated as neutral rather than maximally
fresh, so a teammate's mis-stamped item cannot outrank genuine local
work — a bug that only exists once memory crosses machines. And decay is
floored rather than allowed to reach zero, so ordering may bury an item
but arithmetic never erases it.
OpenViking computes hotness
as
sigmoid(log1p(active_count)) * exp(-ln2 · age / half_life)
and states plainly that it blends into search ranking. It never
touches correctness — the right side of the line. Its remaining risk is
the one this pattern names: active_count increments on
retrieval, so frequency is self-reinforcing, and a uniform 7-day
half-life applies to every memory kind.
Holographic is the
counterexample, and it is worth studying because each piece looks
reasonable alone. fact_feedback moves a single
trust_score by +0.05 or −0.10; that same score is
multiplied into relevance and gates retrieval at a
min_trust floor of 0.3. From a default of 0.5, three
unhelpful ratings put a fact below every default retrieval path —
permanently, with no tombstone and no record that suppression occurred.
Reinforcement became deletion because reachability and belief were the
same number.
Helix AGI is the only system
here that documents finding this loop in its own running store and
cutting it. A belief's mass originally included its relation count;
related beliefs get co-injected, and co-injection creates more
relations, so the comment in memory/belief_store.py records
the cycle it produced — "relations → mass ↑ → gravity ↑ →
co-injection → more relations" — and the fix, which is to leave
cluster gravity to emerge from spatial density instead of inflating an
individual score. The general lesson is narrow and reusable: a
reinforcement signal that is itself caused by reachability is a feedback
loop, not a measurement, and the way to find one is to ask
which of your inputs the previous ranking already decided.
Verel remains the reference for the separation itself. Atomic Agent suggests the safest implementation shape: keep votes as append-only events and derive the score, so a reinforcement rule can be changed or recomputed rather than baked irreversibly into a column.
Memora sits on the correct side
of the line and still shows the hazard:
calculate_importance(created_at, base_importance, access_count)
is a ranking signal rather than a confidence, but retrieval increments
access_count, which raises the score, which makes future
retrieval more likely — the self-amplifying loop with no counterweight
visible.
LoongFlow is the one system here that answers reinforcement collapse structurally rather than by tuning a rate. Its evolutionary memory samples from a Boltzmann distribution over scores at a temperature raised when the population's measured diversity falls, so a store converging on the same few items automatically loosens selection until variety returns. It is a narrow instance — recall there feeds a search loop, not belief — but it is worth noting that the usual fix for reinforcement runaway is a decay constant, and this one is a feedback controller.
NOOA Memory is the only
system here that closes the reinforcement loop rather than noting it.
Retrieval bumps a strength counter that slows Ebbinghaus
decay and leaves confidence untouched — rehearsal is not
belief — and its paper adds the part that matters: "injected
memories are not reinforced, so what the harness surfaces does not
distort the usage signal". Spontaneous injection runs at a
fixed cadence of about one per turn and does not count as use. A system
whose ranker reinforces whatever the ranker chose to show is measuring
its own decisions and calling it usage; separating deliberate reads from
injections is the cheap fix, and it is a one-line distinction at the
call site.
Helm keeps the two signals apart
correctly and then damages a third. Retrieval cannot raise confidence —
it only slows loss: log1p(access_count) is subtracted from
the count of stale weeks before the 0.9^weeks multiplier
applies, so a fact the agent keeps reaching for holds what it has and
gains nothing. Only never-corroborated rows decay at all, and rows
sourced from the persona document are exempt outright. That is the
separation this page asks for, at the cost of one logarithm.
The flaw is in the bookkeeping. The same pass advances
last_seen by the stale weeks it just consumed, purely so
the next nightly run does not re-apply an identical step. It works, and
it means last_seen no longer records when the fact was last
seen — including for the unsure query that orders the
weakly-evidenced list by exactly that column. If a decay pass needs to
remember what it has already done, give it last_decayed and
leave the observation timestamp alone.
Helm also shows the reinforcement signal being collected where nobody
would look for it: access_count is incremented inside the
recall verb, so the background loop that calls recall to score whether
its own thought is worth interrupting the owner about reinforces every
fact it touches on the way past. A read that writes should be documented
as one — Helm's tool registry declares
"side_effects": "none" for it.
Graphify uses decay for
something most instances here do not: deciding a
contradiction. Each outcome contributes
sign × weight where the sign is +1 for
useful and −1 for dead_end or
corrected, and the weight halves every 30 days. A source
carrying both signs is classified contested by the presence
of both — the classification is not a vote — and only then does the
accumulated score decide whether it reads as "useful", "dead end" or
"even". So a fresh dead end outweighs a months-old success without any
conflict-resolution logic existing at all: the half-life is the
resolution rule.
The reason it stays honest is that decay here never touches epistemic
standing. A decayed score cannot demote preferred to
tentative, because that classification comes from a count
of distinct results, not from the score. Age changes which contested
source sorts first; it cannot make a corroborated source uncorroborated.
That is the separation this pattern keeps asking for, achieved by
computing the two things from different columns rather than by
discipline.
One implementation detail worth stealing outright: the score is
rounded to nine digits before comparison, with a comment explaining that
C's pow can differ in the last ULP across platforms and
that the rounding is what keeps sort order and the contested verdict
stable. A decay function whose output feeds a classification
needs to be deterministic across machines in a way one that only feeds a
ranking does not.
memory-lancedb-pro
adds the signal this pattern usually lacks: a negative one that
is not just the absence of a positive. computeTier1Patch
counts injections that were never confirmed as used; three of them
suppress the memory from auto-recall for thirty minutes, and twenty-four
hours without an injection resets the counter on the stated reasoning
that "this memory is being needed again". The threshold is deliberately
not configurable and the comment explains the distinction — three
strikes is "a behavioral design choice that should hold across
deployments" while the windows around it are operational tuning. Only
the automatic injection path feeds the counters, so a memory the user
fetches deliberately never accrues strikes.
ClawMem is the cautionary
instance, and the measurement is committed. Its composite score blended
recency decay, content-type half-lives, co-activation reinforcement,
confidence, quality and revision count — and an offline eval against
hand-labelled gold found raw cosine ranking 16 of 19 judged targets
first (MRR 0.912) where the composite managed 1 of 19 (0.307), with the
composite's own minScore filtering 14 of 19 out. The
project's response was to demote every metadata signal to an
exact-tie-break on the direct routes. The generalisable argument is in
the file header: a decay-and-reinforcement blend is only safe where its
terms are smaller than the margin separating a right answer from a wrong
one.
The mirror of that rule is a decay signal, and it comes from
a paper rather than a repository. Weighted Memory Tree
(arXiv:2608.20631, 21
August 2026) revises a node's retention score from two events. One is
the recorded execution outcome of an action,
ω ∈ {success, failure} — outcome, not similarity. The other
is selection-based decay: a memory that was
eligible for the prompt and not chosen decays, while a chosen
one has its missed-selection count reset.
Set that beside NOOA's rule above and the selection event becomes two-sided. NOOA says do not let the ranker reinforce what the ranker chose to show. This says the ranker's rejections are the signal you were missing — a memory that kept being considered and passed over has been measured against its competition on live queries, which is a stronger statement about its worth than any decay constant fitted to the clock. Wall-clock decay asks how old a memory is; missed-selection decay asks how often it lost.
Two caveats belong with it. The signal is only as good as the candidate set: a memory that never becomes eligible never decays by this route, so it needs a floor from somewhere else. And it inherits the failure NOOA names in the other direction — if the eligibility filter is itself the ranker, the system is again grading its own decisions, and not-selected has to mean lost a comparison rather than was never a candidate.
This is a design to borrow, not a result to cite. The paper releases no code and no data, so nothing here was checked against an implementation; its reported gains are recorded on the benchmarks page as unverifiable. Its folding is worth the same note: completed branches fold into summaries while the system retains "access to folded context", and resumed branches reopen, so the compaction is reversible by construction — the property the corpus usually finds missing on the other side of a fold.
openvurp shows the
clock-plus-recall rule with one constant set where it cannot do its job.
A row fades only if it is older than 45 days, unrecalled for 45 days,
and recalled fewer than twice in its life; every
search that returns a row bumps its
access_count, and retrieval runs on every turn. So two
incidental appearances in a top-five — not two uses — make a memory
permanent, and a memory that was wrong twice can never fade. The same
store exempts the lesson, identity and
pact categories by name, and the fade itself is wired to
the platform's store alone, so the per-agent stores it was built for
never run it. Archive on fade is done right: every removed row is
appended to .faded/faded.jsonl with a timestamp before the
delete.
Claude
Self-Reflect reinforces on one clock and ages on two. Its
base curve is conservative by construction —
score * ((1 - 0.3) + 0.3 * 2^(-age_days / 90)), so at most
30% of a search score is time-dependent and a year-old perfect match
still scores above 0.7. Reinforcement moves the half-life rather than
the score: effective_half_life = base * 2^reinforcement,
where reinforcement is a recency-weighted sum of session outcomes over a
30-day window clamped to ±2, swinging the half-life between roughly 22
and 360 days. The second axis is the unusual one: an hourly pass labels
each conversation shipped or unreleased with a
releases_behind count walked from git tags, and retrieval
multiplies effective age by 25% per release behind, floored at a quarter
of the half-life — so a memory ages by how much has shipped since, not
only by how long ago it was. Git is consulted only by the refresh; the
read path does an indexed lookup and fails open to neutral.
Membrane is where the sweep and the marker collide. Its decay is exponential per type — one hour for episodic, thirty days for semantic — reversible by a reinforcement gain, with a pinned flag and a three-value deletion policy, and the shape is right. But the decay pass computes elapsed time from a timestamp only reinforcement advances, and applies the result to the already decayed stored salience, so after repeated sweeps the exponent grows with the square of the sweep count; at the shipped defaults an episodic record sits at 0.00098 after four hourly sweeps instead of 0.0625, and the half-life constant stops meaning what it says. No test applies the decay pass twice to the same record, which is why the suite reports green. The second collision is worse: retraction marks a record by setting salience to zero, and the prune pass deletes any unpinned auto-prune record at or below its floor — default zero — so the retraction marker is also the deletion trigger, and the audit rows cascade away with the record. If you drive pruning off a numeric floor, retraction has to set something else.
Implementation checklist
- Store retrieval strength separately from confidence and trust.
- Assign decay policy by memory kind, scope, and validity, not one global rate.
- Record the reason and actor for every reinforcement.
- Do not reinforce a memory the system itself chose to inject.
- Consider decaying one that was eligible and repeatedly not chosen, and be sure not chosen means it lost a comparison rather than never entering one.
- Bound reinforcement and prevent one retrieval loop from self-amplifying.
- Protect rejected-value tombstones and correction history from decay.
- Mark stale before deleting when reversibility matters.
- Expose last-evaluated time and effective strength to operators.
Tests to require
- Stable facts remain reachable after long simulated time.
- Expired transient state stops entering normal context.
- Repeated retrieval cannot increase epistemic confidence.
- Reinforcement saturates and cannot form an unbounded feedback loop.
- Pinned, verified, rejected, and audit records survive ordinary pruning.
- Clock jumps, backfills, and timestamp errors fail safely.
- Rebuilds reproduce effective strength from durable state or audit events.