Repository navigation
fix: reclassified upstream bugs — retention, backups, audit paging, import timeout - #163
Merged
Merged
Conversation
added 13 commits
October 5, 2026 09:08
…t takes rohitg00#607: the 120 s AbortSignal (and fetch's 300 s undici headers timeout behind it) cut off large imports the daemon was still running. Post through node:http with no deadline instead. Reclassify the triage rows that describe broken behaviour as bug/fix and record what was verified against this tree. Generated-By: Claude Opus 5.5
…ing the scope queryAudit listed every audit row and sorted in JS before slicing to the limit. It now calls StateKV.listNewest, which filters on operation and timestamp and applies ORDER BY timestamp DESC LIMIT in SQLite. Fixes rohitg00#1192 Generated-By: Claude Opus 5.5
rohitg00#1116: the token lived in sessionStorage, so every new tab asked for it again. Store it in localStorage. Generated-By: Claude Opus 5.5
Deleted lessons stayed in KV forever. The sweep now removes tombstones whose updatedAt is older than AGENTMEMORY_LESSON_TOMBSTONE_DAYS (default 30, 0 keeps them) via deleteManyIfUnchanged and records an audit row. Refs rohitg00#1193 Generated-By: Claude Opus 5.5
Forward expiresInMs from memory_signal_send, default to AGENTMEMORY_SIGNAL_TTL_DAYS (30, 0 disables), and schedule mem::signal-cleanup hourly. Cleanup also removes unexpiring signals older than the default TTL. Fixes rohitg00#1297. Generated-By: Claude Opus 5.5
…the decay floor Decay clamped strength at 0.1 and never deleted, so KV.semantic and KV.procedural grew forever (rohitg00#1191). The decay pass now deletes rows at the floor with zero accesses idle for CONSOLIDATED_MEMORY_FORGET_DAYS (default 180, 0 disables), with one audit row per run. Generated-By: Claude Opus 5.5
… restore Generated-By: Claude Opus 5.5
… commits Refs rohitg00#1158. After each snapshot commit, history beyond SNAPSHOT_KEEP (default 48, 0 = keep all) is replayed onto a fresh root, the reflog expired and gc run with --prune=now so disk is reclaimed. Surviving commits get new hashes. Generated-By: Claude Opus 5.5
# Conflicts: # src/config.ts
# Conflicts: # .env.example # plugin/skills/agentmemory-config/REFERENCE.md # src/config.ts
Generated-By: Claude Opus 5.5
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.
Reclassifies the upstream triage rows that describe broken behaviour as
bug/fix, verifies each against this tree, and fixes the ones still present.Fixed here
agentmemory import-jsonlwaits for the daemon however long the import takes (node:http, no 120 s abort, no undici 300 s headers timeout).queryAuditfetches only the newest matching rows from SQLite instead of listing and sorting the whole audit scope.localStorage, so it survives new tabs and browser restarts.SNAPSHOT_KEEP(default 48) rewrites git-snapshot history to the newest N commits and gcs the repo.CONSOLIDATED_MEMORY_FORGET_DAYS(default 180); one audit row per run.AGENTMEMORY_LESSON_TOMBSTONE_DAYS(default 30).memory_signal_sendforwardsexpiresInMs; signals default toAGENTMEMORY_SIGNAL_TTL_DAYS(30) andmem::signal-cleanupruns hourly.AGENTMEMORY_BACKUP_KEEP(7) kept; restore steps in the agentmemory-config skill.Every limit accepts
0to keep everything.Already fixed (evidence recorded in the triage YAMLs)
rohitg00#1228, rohitg00#737, rohitg00#1179 (a restart rebuilds BM25 and prunes stale vectors; no runtime reindex endpoint), rohitg00#742 (chunk-config half).
Operator notes
agentmemory-snapshot.sqliteis never pruned and can be deleted by hand.Typecheck: 0 errors.
npm test: 2406 passed, 1 skipped.🤖 Generated with Claude Code