Alexander Whitestone
a61761d321
Lint / lint (pull_request) Successful in 28s
fix(memory): filter noisy prefetch results before injection (#982)
Add line-level filtering to MemoryManager.prefetch_all() that removes:
- exact duplicate lines
- meta-instruction debris (prompts, templates like 'Focus on:')
- very short / content-free fragments (< 15 chars after markers)
This prevents noisy memory providers (e.g. MemPalace transcript recall)
from bloating the <memory-context> block with repeated instructions and
low-signal snippets.
Changes:
- agent/memory_manager.py: add _filter_prefetch_lines(),
_is_meta_instruction_line(), _is_low_signal_line() helpers;
wire filtering into prefetch_all()
- tests/agent/test_memory_provider.py: add TestPrefetchFiltering with
8 tests covering dedup, meta-instruction removal, low-signal filtering,
structured-fact preservation, and integration with prefetch_all()
Closes #982
2026-04-22 03:06:50 -04:00
..
2026-04-10 03:45:36 -07:00
2026-04-22 03:06:50 -04:00
2026-04-14 01:43:45 -07:00
2026-04-15 03:46:58 -07:00
2026-04-11 13:59:52 -07:00
2026-04-07 17:28:37 -07:00
2026-04-17 02:18:02 -04:00
2026-04-14 23:13:35 -07:00
2026-04-11 00:43:27 -07:00
2026-04-13 16:32:04 -07:00
2026-04-15 23:04:41 -04:00
2026-04-15 23:00:12 -04:00
2026-04-12 00:33:54 -07:00
2026-04-16 01:35:24 +00:00
2026-04-09 13:17:06 -07:00
2026-04-15 22:17:16 -04:00
2026-04-21 00:28:15 +00:00
2026-04-10 13:06:02 -07:00
2026-04-07 17:59:42 -07:00
2026-04-16 02:12:36 +00:00
2026-04-17 05:06:54 +00:00
2026-04-17 05:23:48 +00:00
2026-04-17 05:04:50 +00:00
2026-04-15 21:00:06 -04:00
2026-04-13 10:50:24 -07:00
2026-04-12 03:53:30 -07:00
2026-04-15 22:56:32 -04:00
2026-04-12 16:36:11 -07:00
2026-04-13 10:50:24 -07:00
2026-04-09 02:41:56 -07:00
2026-04-02 15:33:51 -07:00
2026-04-11 23:12:11 -07:00
2026-03-29 15:47:19 -07:00
2026-04-07 17:59:42 -07:00
2026-04-13 22:01:49 -07:00
2026-04-21 18:04:00 -04:00
2026-04-07 22:23:28 -07:00
2026-03-30 17:34:43 -07:00
2026-04-16 02:13:00 +00:00
2026-04-14 10:42:58 -07:00
2026-04-21 11:59:26 +00:00
2026-04-17 05:13:03 +00:00
2026-04-10 21:15:59 -07:00
2026-04-08 00:41:36 -07:00
2026-04-15 22:41:54 -04:00
2026-04-21 11:37:55 -04:00
2026-04-16 15:04:28 +00:00
2026-04-10 13:37:45 -07:00
2026-04-20 15:47:35 +00:00
2026-04-17 01:15:09 -04:00
2026-04-10 03:44:43 -07:00
2026-04-21 11:41:39 +00:00
2026-04-17 01:57:37 -04:00
2026-04-16 02:15:59 +00:00
2026-04-21 05:38:54 +00:00
2026-04-14 17:19:20 -07:00
2026-04-13 10:50:24 -07:00
2026-04-14 10:24:19 -07:00
2026-04-15 22:14:16 -04:00
2026-03-30 13:28:10 +09:00
2026-04-15 23:02:02 -04:00