feat(memory): Session 4 — core consolidation engine (Daemon Spec Phase A)
Add the manually-invocable consolidation engine that groups recent memory events by topic, merges/deduplicates via LLM, and stores concise fact summaries. No daemon lifecycle yet — strictly the engine + CLI + MCP.
- Add consolidation, maintenance, insight event types to MEMORY_EVENT_TYPES - Create lib/memory-consolidate.mjs: consolidateMemory(), prompt builder, response parser, topic grouper (uses extractTopicFromEvent from Session 3) - Add `knowtation memory consolidate` CLI (--dry-run, --passes, --lookback-hours) - Add memory_consolidate MCP tool (dry_run, passes, lookback_hours params) - Add loadDaemonConfig() to lib/config.mjs — parses daemon.* config keys with defaults and env var overrides, no daemon loop yet - 43 new tests (mocked LLM, prompt construction, parsing, grouping, dry-run, error handling, daemon config, CLI integration) - 655 total tests, 0 failures, 0 regressions
0 comments
muse hub commit comment sha256:1c68fd589a083514660cb9199cc0eab5c4e95d6acc7d3f3ea309d9551df4c739 --body "your comment"
No comments yet. Be the first to start the discussion.