Repository navigation
feat(plugins): forward an event time-decay window from recall config - #6390
Merged
qin-ctx merged 1 commit intoOct 21, 2026
Merged
Conversation
The server already ranks event memories with time decay when a context search carries events_time_decay_protection, but none of the shared plugins could send it, so a week-old event that records a superseded decision keeps its full semantic score and outranks the event that replaced it. recallEventsDecayProtection (OPENVIKING_RECALL_EVENTS_DECAY_PROTECTION, also settable in the ovcli.conf plugin section) is passed through unchanged as events_time_decay_protection on the context request. The default is empty, which sends nothing and keeps the server's default of no decay.
qin-ctx
approved these changes
Oct 21, 2026
1 task done
10 of 11 tasks
10 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Lets the shared memory plugins forward the server's existing event time-decay parameter on auto-recall. Context search already supports
events_time_decay_protection, butbuildContextSearchBodynever sends it and there is no server-side setting, so plugin recall always ranks event memories without decay and old events that record superseded decisions keep outranking the ones that replaced them.Human Involvement
Related Issue
Closes #6389
Type of Change
Changes Made
memory-plugin-shared/lib/config-schema.mjs: new string knobrecallEventsDecayProtection(OPENVIKING_RECALL_EVENTS_DECAY_PROTECTION), default empty.memory-plugin-shared/lib/recall-core.mjs:buildContextSearchBodysends it asevents_time_decay_protectionwhen non-empty; nothing is sent otherwise, so default behavior is unchanged. Validation stays on the server.sync.mjs(Claude Code, Codex, OpenClaw); option documented in the Claude Code (EN/CN) and Codex READMEs.Testing
node --test examples/memory-plugin-shared/*.test.mjson Windows: the failure set is identical with and without this change (65 installer/marketplace cases that fail on this machine regardless). Also exercised end to end with the Claude Code plugin'sauto-recall.mjsagainst a 0.5.0 server: with"3d", superseded events from a week earlier drop out of the injected block and the current-state event ranks first.Checklist
Additional Notes
Implemented with an AI coding agent at the account owner's direction; the owner chose the design and requested the PR. Decay only affects records tagged
memory_type=events, so stores that predate the tag get partial decay; see the issue for that note.