Files
ruflo/v3/@claude-flow/memory/src
PerryLink 39812bb5ed fix(memory): resolve insight keys in onInsightAccessed and update by entry id (#4911)
`onInsightAccessed()` resolved its argument with `backend.get(entryId)`, but
the bridge's callers address insights by the key they were stored under
(AutoMemoryBridge.storeInsightInAgentDB), while `createDefaultEntry` mints the
internal `entry.id` independently. A key lookup missed silently: no confidence
boost, no post-consolidation trajectory reopen. The same mismatch passed the
key to `backend.update()`, which expects the id.

Resolve with `getByKey(insightNamespace, entryId)` first and fall back to
`get(entryId)` for id callers, then update by `entry.id`.

Adds a regression test that stores an entry under its key, accesses it by
that key, and asserts the boost is applied to the internal entry.
2026-11-10 21:06:25 +08:00
..
2026-01-05 16:42:40 +00:00
2026-02-08 17:11:18 +00:00
2026-10-20 02:11:26 -04:00
2026-01-05 17:28:09 +00:00