Skip to content

fix: reclassified upstream bugs — retention, backups, audit paging, import timeout - #163

Merged
possiblyneal merged 13 commits into
mainfrom
fix/reclassified-upstream-bugs
Oct 5, 2026
Merged

possiblyneal merged 13 commits into
mainfrom
fix/reclassified-upstream-bugs

Conversation

@possiblyneal

Copy link
Copy Markdown
Owner

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

Every limit accepts 0 to 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

  • First boot after deploy: the backup sweep runs 5 min after start; the old agentmemory-snapshot.sqlite is never pruned and can be deleted by hand.
  • Snapshot pruning changes the hashes of surviving snapshot commits.
  • Semantic forgetting runs only when consolidation is enabled.

Typecheck: 0 errors. npm test: 2406 passed, 1 skipped.

🤖 Generated with Claude Code

neal 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
… 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:
#	.env.example
#	plugin/skills/agentmemory-config/REFERENCE.md
#	src/config.ts
@possiblyneal
possiblyneal merged commit c8c6407 into main Oct 5, 2026
6 checks passed
@possiblyneal
possiblyneal deleted the fix/reclassified-upstream-bugs branch October 5, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant