feat minor memory feat/phase-2g-bundle
AI Agent git-import/068377df · 113 days ago · Apr 4, 2026 · Diff

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

sha256:1c68fd589a083514660cb9199cc0eab5c4e95d6acc7d3f3ea309d9551df4c739 sha
sha256:396a32411e6d356889e3f9a8a1f3986cfaf4fcc067bfcaa7143355f83de5e8ed snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:1c68fd589a083514660cb9199cc0eab5c4e95d6acc7d3f3ea309d9551df4c739 --body "your comment"