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

feat(memory): Session 6 — stale reference verification pass (Daemon Spec Phase C)

Implements Pass 2 (Stale Reference Detection) from the Daemon Consolidation Spec.

- lib/memory-consolidate.mjs: add runVerifyPass(config, events, opts) — scans events for path references, classifies each as verified/stale/no_ref using verifyMemoryEvent, writes maintenance event (unless dryRun), returns { stale_paths, verified_paths, checked_count, dry_run } - add extractPathsFromEventData(data, encrypt) — expands data.path + data.paths (gated on encrypt flag); exported for testing - add resolvePassNames(passesOpt, daemonPassesCfg) — resolves opts.passes (array, comma-string, or undefined→daemon defaults) to a list of pass names - refactor consolidateMemory: replace numeric passCount loop with pass-name selection (consolidate / verify); wire runVerifyPass after consolidation pass, before index rebuild; return shape extended with verify: object|null - cli/index.mjs: --passes now accepts comma-separated pass names (e.g. consolidate,verify) instead of a loop count; output shows verify results - mcp/tools/memory.mjs: memory_consolidate passes param changed from z.number() to z.array(z.string()) with updated description - test/memory-consolidate.test.mjs: 53 new tests across 6 suites covering path extraction, pass-name resolution, verify pass classification, maintenance event shape, dryRun mode, consolidateMemory wiring, CLI --passes flag, and MCP passes param; 782 pass / 0 fail (was 729)

sha256:7f9fac7a57d6b37765415b33cb49d740ac75e40f413698e38ceb9f83ef4a3516 sha
sha256:6484032634add1cf073e41b05155a78e5ff203181978ace5a18d2c7e3fed9756 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:7f9fac7a57d6b37765415b33cb49d740ac75e40f413698e38ceb9f83ef4a3516 --body "your comment"