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-22 11:27:16 -05:00
2026-01-05 16:42:40 +00:00
2026-02-08 03:37:58 +00:00
2026-02-26 10:11:19 -05:00
2026-09-26 11:32:37 -04:00
2026-09-26 10:08:29 -05:00
2026-09-26 11:32:37 -04:00
2026-10-20 09:39:40 -04:00
2026-11-01 12:17:59 -05:00
2026-10-20 09:39:40 -04:00
2026-11-01 12:17:59 -05:00
2026-11-01 12:17:59 -05:00
2026-10-20 09:39:40 -04:00
2026-10-22 06:44:31 -04:00
2026-10-22 06:44:31 -04:00
2026-10-10 10:05:30 +02:00
2026-10-10 09:44:50 +02:00
2026-07-30 14:09:34 -04:00
2026-07-30 14:09:34 -04:00
2026-10-20 05:27:57 -04:00
2026-10-20 05:27:57 -04:00
2026-09-26 19:35:17 -04:00
2026-02-08 17:11:18 +00:00
2026-10-07 16:35:12 -04:00
2026-10-04 02:06:30 -04:00
2026-11-01 12:17:59 -05:00
2026-11-01 12:17:59 -05:00
2026-09-14 23:13:14 +00:00
2026-09-14 23:13:14 +00:00
2026-09-26 11:32:37 -04:00
2026-10-31 17:59:28 -04:00
2026-10-31 17:59:28 -04:00
2026-10-09 17:17:36 -04:00
2026-10-28 12:46:23 -04:00
2026-10-31 17:59:28 -04:00
2026-05-19 17:20:03 -04:00
2026-10-18 14:00:11 -04:00
2026-06-08 19:31:23 +02:00
2026-06-08 19:31:23 +02:00
2026-10-20 02:11:26 -04:00
2026-08-21 11:20:17 -04:00
2026-09-14 20:18:12 +00:00
2026-05-19 17:51:36 -04:00
2026-09-14 20:18:12 +00:00
2026-09-14 20:30:29 +00:00
2026-10-09 17:25:23 -04:00
2026-05-19 17:20:03 -04:00
2026-11-09 12:44:17 -05:00
2026-04-08 09:05:59 -04:00
2026-11-10 21:06:25 +08:00
2026-11-10 21:06:25 +08:00
2026-11-09 00:57:55 -05:00
2026-11-09 00:57:55 -05:00
2026-09-26 11:32:37 -04:00
2026-07-03 16:52:09 -04:00
2026-07-03 16:52:09 -04:00
2026-09-05 11:57:23 -04:00
2026-09-28 06:23:26 +00:00
2026-09-14 23:43:16 +00:00
2026-11-09 00:58:08 -05:00
2026-11-09 00:57:55 -05:00
2026-02-27 21:46:53 -05:00
2026-01-05 17:28:09 +00:00
2026-11-08 20:44:17 -05:00
2026-11-05 19:27:51 -06:00
2026-10-18 14:00:11 -04:00
2026-11-08 20:44:17 -05:00
2026-02-27 21:46:53 -05:00
2026-02-27 21:46:53 -05:00
2026-09-16 14:54:34 +08:00
2026-09-05 11:57:23 -04:00
2026-09-28 06:23:26 +00:00
2026-11-08 20:21:18 -05:00
2026-11-08 20:21:18 -05:00
2026-05-19 18:03:16 -04:00
2026-11-09 12:44:17 -05:00
2026-11-09 12:44:17 -05:00
2026-10-14 05:44:49 -04:00
2026-11-09 12:44:17 -05:00
2026-01-22 11:27:16 -05:00
2026-07-03 16:52:09 -04:00