musememory 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
 
3
3
  <a href="#what-muse-memory-does">
4
- <img src="./apps/website/public/brand/banner.png" alt="Muse Memory — Autonomous cognitive memory for AI agents" width="100%" />
4
+ <img src="./apps/website/public/brand/readme-banner.png" alt="Muse Memory — persistent memory for AI coding agents that verifies itself" width="100%" />
5
5
  </a>
6
6
 
7
7
  <br />
@@ -20,61 +20,116 @@
20
20
  ![AST Graph](https://img.shields.io/badge/AST-CodeGraph_%26_Graphify-orange?style=for-the-badge&logo=diagram-project&logoColor=white)
21
21
  ![Architecture](https://img.shields.io/badge/Storage-Zero--Daemon_%2F_Local--First-0D9488?style=for-the-badge)
22
22
 
23
- ![CI Tests](https://img.shields.io/badge/Tests-1285%20Passed-brightgreen?style=for-the-badge&logo=checkmarx)
23
+ ![CI Tests](https://img.shields.io/badge/Tests-1335%20Passed-brightgreen?style=for-the-badge&logo=checkmarx)
24
24
  ![Security](https://img.shields.io/badge/Security-Vibeguard_Zero--Leak-DC2626?style=for-the-badge&logo=shield)
25
- ![Agent Coverage](https://img.shields.io/badge/Agents-52_Verified-4F46E5?style=for-the-badge&logo=openai)
25
+ ![Agent Coverage](https://img.shields.io/badge/Agents-Majority%20Supported-4F46E5?style=for-the-badge&logo=openai)
26
26
  ![License](https://img.shields.io/badge/License-MIT-9333EA?style=for-the-badge)
27
27
 
28
28
  **Persistent, local-first memory for AI agents and the projects they work on.**
29
29
 
30
- [Visit the live site](https://harshsinghmp.github.io/musememory/) · [Docs](https://harshsinghmp.github.io/musememory/docs) · [Comparison](https://harshsinghmp.github.io/musememory/compare) · [Install](#start-with-one-command)
30
+ [Visit the live site](https://harshsinghmp.github.io/musememory/) · [Docs](https://harshsinghmp.github.io/musememory/docs) · [Comparison](https://harshsinghmp.github.io/musememory/compare) · [Agent reference](https://github.com/harshsinghmp/musememory/blob/main/docs/agent-reference.md)
31
31
 
32
- <img src="./assets/muse-memory-demo.gif" alt="Muse Memory in action — memory init, propose, context recall, and R23 version control (branch / blame / checkout) with access-weighted decay" width="100%" />
32
+ </div>
33
+
34
+ ---
33
35
 
34
- *→ Prefer the raw clip? [`apps/website/public/showreel.mp4`](./apps/website/public/showreel.mp4) (10s, 1280×720, 240KB) — or watch it embedded on the [live site](https://harshsinghmp.github.io/musememory/#showreel).*
35
- *Rebuild the GIF with `bun run build:gif` (deterministic — renders from a declarative scene script, not a screen recording).*
36
+ ## Start here (60 seconds)
36
37
 
37
- </div>
38
+ ```bash
39
+ npx musememory connect # detect your coding agents and wire the memory server into each
40
+ npx musememory doctor # confirm the store, schemas and agent wiring are healthy
41
+ ```
42
+
43
+ That is the whole setup. No account, no API key, no config file, no background
44
+ daemon — the store is two plain directories (`.memory/` in your project,
45
+ `~/.memory/` globally) that you can read, diff and commit.
46
+
47
+ Then, in any session with a connected agent:
48
+
49
+ ```bash
50
+ memory context --query "how does auth work" --budget 2000
51
+ ```
52
+
53
+ **What you get:** a memory that survives the session, is checked against your
54
+ real code before it is stored, and is withheld at recall if the code it cites
55
+ has since changed.
56
+
57
+ | | |
58
+ | :--- | :--- |
59
+ | **Install** | `npx musememory connect` |
60
+ | **Requires** | Node.js ≥ 18 or Bun ≥ 1.2 — nothing else |
61
+ | **Storage** | `.memory/` (project) + `~/.memory/` (global) |
62
+ | **Data leaves your machine** | Never |
63
+ | **Cost** | Free, MIT, no telemetry |
38
64
 
39
65
  ---
40
66
 
41
- ## What changed
42
-
43
- - **Failure Attribution, Negative Mining & Compounding (Wave 22 / v3.0.0)**: Scoped failure attribution matching code anchors, affected paths, and reproduction commands with deduplicated per-session strikes and a dual-axis decaying strike counter (2 clean runs or 30 days) to prevent wrongful demotions; constitutional dispute immunity for constraints and timeless invariants; trajectory fix-pair mining discovering negative memories from Error ➔ Remediation sequences; active working set retrieval compounding via memoized `.memory/HOT.md` candidates with relevance-gated source bonuses; and LangMem sub-linear logarithmic frequency ranking with 2x application weighting ([docs/failure-attribution-and-negative-mining.md](docs/failure-attribution-and-negative-mining.md)).
44
- - **Graph, Provenance & Lineage Architecture (Wave 17)**: Write-time associative graph edge auto-seeding (`linked_memory_ids`), HyAtlas supersede-not-delete lifecycle with hidden-count-aware over-fetching, empirical observation-biased recall deduplication (`prefer_observations`), progressive multi-hop wikilink expansion after reciprocal rank fusion (`extractWikilinks`, `expandFusedWikilinks`), immutable semantic fact provenance append-only table (`fact_provenance` with triple-unique indexing), first-class relational lineage foreign keys (`supersedes_id`, `conflicts_with_id`), lineage BFS provenance DAG walker (`walkLineageBfs`), and tamper-evident cryptographic hash-chained audit ledger with per-day salt rotation and session Merkle tree checkpoints ([docs/graph-provenance-and-lineage.md](docs/graph-provenance-and-lineage.md)).
45
- - **Temporal Transitions, Contradiction Engine & Verbs (Wave 16)**: Bi-temporal validity tracking with explicit historical cessation flags (`valid_to_exact`), point-in-time `as_of` queries returning `{results, undetermined}` without date invention, five-verb lifecycle (`change`, `end`, `correct`, `revert`, `forget` with GDPR hard/soft tombstones), point-in-time `searchTemporal(atTime)` default-excluding superseded knowledge, keep-both `conflicts` table preserving contradictions without deletion, scoped invalidation requiring semantic `(entity, relation, target, scope)` alignment to prevent over-eager invalidations across environments, federation handshake protocol for mesh-mode conflict deduplication and resolution propagation, provenance veracity rank weighting (`user` 1.0, `agent` 0.7, `external` 0.5, `system` 0.3) with tie-breaker bonuses, and `src_ts` evidence-age stamping ensuring memory freshness never exceeds underlying evidence ([docs/temporal-contradiction-and-trust.md](docs/temporal-contradiction-and-trust.md)).
46
- - **Expiry, Decay & Confidence Hardening (Wave 15)**: Tokenizer-matched abstention gates (`evaluateAbstentionGate`), explicit `no_confident_match` mode eliminating model hallucination, materialized `decay_score` in SQLite with importance gating (0.4x to 3.0x), Bayesian corroboration confidence ($C(n) = 1 - 0.7^n$), trust-tier-keyed half-lives (T1 365d → T4 30d) defending against OWASP ASI06 poisoning, per-type admission `expires_at` defaults (fix 90d, op 180d, arch 365d, disc 30d), stamped `status: 'expired'`, `expired_at`, and `expired_by` rule tracking, pin-capable first-match-wins declarative expiry policy YAML (`.memory/expiry.yaml`), and optional Weibull hazard curve modeling ($R(t) = \exp(-(t/\lambda)^k)$) ([docs/expiry-decay-and-confidence.md](docs/expiry-decay-and-confidence.md)).
47
- - **Invalidation, Attribution & Ranking Rigor (Wave 14)**: Incremental `index.json` vector synchronization on `save()` and `deleteEntry()`, bounded Hebbian co-activation plasticity (8 seeds, 30 edges, 500 nodes), IDF-weighted symbol matching (generic verbs downweighted to 0.05, compound identifiers scored 1.0), Unicode word-boundary matching blocking false positives (`race⊂trace`, `port⊂report`), and explicit SQLite FTS failure degradation signals with `[FTS5_DEGRADED]` logging ([docs/retrieval-ranking-and-invalidation.md](docs/retrieval-ranking-and-invalidation.md)).
48
- - **Retrieval Performance & Hot-Path Hardening (Wave 13)**: Precomputed WeakMap token sets ($O(1)$ lookup), memoized runtime code-anchor verification, dirty-gated store loads (`count(*)` + `max(updated_at)` fingerprinting), input limit clamping, and `stale: boolean` provenance tags for degraded reads ([docs/retrieval-performance-and-limits.md](docs/retrieval-performance-and-limits.md)).
49
- - **Point-ID-Only Dry-Run Deletions**: Hardened destructive deletion commands (`memory delete`, `memory_delete`) defaulting to dry-run previews and blocking wildcard expressions to prevent accidental data loss.
50
- - **Real-Time Agency Hub (SSE)**: Fast event fan-out on `http://localhost:31338/events` for parallel agent swarms, featuring CSRF origin filtering and clean socket disposal (`memory daemon`).
51
- - **Living ADR & Drift Sentry**: Binding Architecture Decision Records to line-independent structural code anchors with write-time `base_path` normalization and pure read-path drift auditing (`memory adr`, `memory check --drift`).
52
- - **Reasoning Tree PageIndex Depth Controls**: Hierarchical document navigation with configurable `maxDepth` traversal limits and tiered `disclosureDepth` (`L1`/`L2`/`L3`) for token economics.
53
- - **Hardened Upgrade & CI Verification**: Deterministic exit code contracts (`--check`, `--fail-on-update`, `--strict`), real Vibeguard credential audits, and structured repair error surfacing (`memory upgrade`).
54
- - **Autonomous Memory Optimizer (`memory optimize`)**: High-precision noise and junk pruning engine with zero-daemon auto-cadence (every 7 days or after 48h idle) and SQLite WAL defragmentation (`VACUUM;` + `PRAGMA optimize;`).
55
- - **Dashboard "⚡ Optimize" Trigger**: Live visual optimization controls directly inside the Web Observability Studio (`memory ui` / `memory studio`) with real-time feedback on items pruned and bytes reclaimed.
56
- - **Concurrent Multi-Agent Workstream Tracking**: Live coordination table in `CURRENT.md` enabling multiple agents across parallel chats to monitor active tasks and target scopes without collisions.
57
- - **Clean Operational Guidelines**: Curated single-pane executive summary for humans and strict grounding/concurrency rules for AI agents.
58
- - **Public website**: The responsive homepage lives in [`web/index.html`](./web/index.html) and deploys to the [Muse Memory project site](https://harshsinghmp.github.io/musememory/).
59
- - **Comparison dossier**: Explore the [agent memory comparison](https://harshsinghmp.github.io/musememory/musememory-comparison.html) for storage, retrieval, privacy, lifecycle, and migration differences.
67
+ ## What's new
68
+
69
+ ### v3.0.1 — correctness release
70
+
71
+ Five defects found by a cross-file invariant audit, and a guarantee that the
72
+ numbers on this page are the numbers the code produces.
73
+
74
+ - **Prompt-injection channel closed**: `CURRENT.md` was written with the raw,
75
+ un-stripped constraint text while the stored memory was sanitised. Because
76
+ `CURRENT.md` is replayed into every later prompt, one captured constraint
77
+ could reach every future session. Sanitisation now happens at the sink.
78
+ - **Bi-temporal queries answered from the wrong snapshot**: the context cache
79
+ key omitted `as_of`, so "what did we believe in Q1?" could return today's
80
+ answer from a 30-second-old cache entry.
81
+ - **Access counter never accumulated**: every read reset it to its baseline,
82
+ which silently disarmed the access-frequency ranking axis.
83
+ - **Store could fail its own schema validator**: entries that failed embedding
84
+ were permanently reported as corrupt.
85
+ - **Tier token budget was declared but never enforced**: 327 tokens against a
86
+ 200-token budget.
87
+ - **Every published number is now generated from the source** and checked by a
88
+ test, so the site can no longer advertise a figure the code does not produce.
89
+
90
+ ### v3.0.0 — feature release
91
+
92
+ Closed-loop failure attribution, trajectory fix-pair mining, HOT.md compounding, and LangMem logarithmic frequency ranking.
93
+
94
+ #### New capabilities
95
+ - Scoped failure attribution matching code anchors with decaying strike counters ([#313](https://github.com/harshsinghmp/musememory/pull/313))
96
+ - Trajectory fix-pair mining discovering negative lessons from agent error sequences ([#144](https://github.com/harshsinghmp/musememory/pull/144))
97
+ - Active working set compounding and candidate scoring directly from HOT.md ([#314](https://github.com/harshsinghmp/musememory/pull/314))
98
+ - Multi-channel knowledge distillation router across system, content, and health ([#324](https://github.com/harshsinghmp/musememory/pull/324))
99
+ - Pre-mutation 30-snapshot rolling ring buffer for zero-daemon recovery ([#177](https://github.com/harshsinghmp/musememory/pull/177))
100
+
101
+ #### Bug fixes
102
+ - In-lock mutation safety guards preventing bulk deletion and semantic erosion ([#50](https://github.com/harshsinghmp/musememory/pull/50))
103
+ - Strict CodeAnchor field alignment and dispute tracking type safety ([#325](https://github.com/harshsinghmp/musememory/pull/325))
104
+
105
+ #### Improvements
106
+ - LangMem logarithmic frequency rank curve with 2x application weighting ([#315](https://github.com/harshsinghmp/musememory/pull/315))
107
+ - Diff-preserving CURRENT.md checkpoint merge semantics for agent handoffs ([#324](https://github.com/harshsinghmp/musememory/pull/324))
108
+ - Constitutional immunity defending non-negotiable rules against strike decay ([#313](https://github.com/harshsinghmp/musememory/pull/313))
109
+
110
+ *For earlier releases, see the [Changelog](./CHANGELOG.md) or [GitHub Releases](https://github.com/harshsinghmp/musememory/releases).*
60
111
 
61
112
  ---
62
113
 
63
114
  ## 📑 Table of Contents
64
115
 
65
- - [What changed](#what-changed)
116
+ - [Start here (60 seconds)](#start-here-60-seconds)
117
+ - [What's new](#whats-new)
66
118
  - [What Muse Memory does](#what-muse-memory-does)
119
+ - [How it works](#how-it-works)
67
120
  - [Key capabilities](#key-capabilities)
68
- - [Start with one command](#start-with-one-command)
69
- - [📖 Documentation & User Guides](#-documentation--user-guides)
70
- - [🔄 Upgrading & Self-Healing Maintenance](#-upgrading--self-healing-maintenance)
71
- - [👥 Team & Multi-Member Setup](#-team--multi-member-setup)
72
- - [🧠 Shipped Agent Skills (`.agents/skills/`)](#-shipped-agent-skills-agentsskills)
73
- - [👤 5 Role Archetypes (`USER.md`)](#-5-zero-fingerprint-role-archetypes-usermd)
74
- - [🔌 Full CLI Command Matrix](#-full-cli-command-matrix)
75
- - [🛡️ Vibeguard Zero-Leakage Protocol](#️-vibeguard-zero-leakage-protocol)
76
- - [🧪 Testing & Verification](#-testing--verification)
77
- - [🔮 Sprint & Roadmap Board](#-sprint--roadmap-board)
121
+ - [Where your memory lives](#where-your-memory-lives)
122
+ - [📖 Documentation map](#-documentation-map)
123
+ - [🔄 Complete lifecycle](#-complete-lifecycle-install--verify--connect--uninstall)
124
+ - [🔄 Upgrading & self-healing](#-upgrading--self-healing-maintenance)
125
+ - [👥 Team & multi-member setup](#-team--multi-member-setup)
126
+ - [🏛️ System capabilities & architecture](#-system-capabilities--architecture)
127
+ - [🌐 Cognitive Studio dashboard](#-cognitive-studio-dashboard-memory-ui--memory-studio)
128
+ - [🔌 CLI & MCP reference](#-cli--mcp-reference)
129
+ - [🧠 Shipped agent skills](#-shipped-agent-skills)
130
+ - [👤 5 role archetypes](#-5-role-archetypes-usermd)
131
+ - [🧪 Testing & verification](#-testing--verification)
132
+ - [🔮 Roadmap](#-roadmap)
78
133
  - [📜 License](#-license)
79
134
 
80
135
  ---
@@ -104,7 +159,7 @@ Store working constraints, decisions, handoffs, and verified facts in one local
104
159
  │ └──────────────────────┘ └──────────────────────┘ └───────────────────────┘ │
105
160
  │ ┌──────────────────────┐ ┌──────────────────────┐ ┌───────────────────────┐ │
106
161
  │ │ Vibeguard Credential │ │ Dynamic Code Anchors │ │ Universal Migrator │ │
107
- │ │ Secret Defense │ │ & Structural Hashes │ │ (29 Engines) │ │
162
+ │ │ Secret Defense │ │ & Structural Hashes │ │ (30 Engines) │ │
108
163
  │ └──────────────────────┘ └──────────────────────┘ └───────────────────────┘ │
109
164
  └──────────────────────────────────────┬──────────────────────────────────────┘
110
165
  │ Atomic SQLite & File I/O
@@ -127,6 +182,23 @@ Store working constraints, decisions, handoffs, and verified facts in one local
127
182
 
128
183
  ---
129
184
 
185
+ ## How it works
186
+
187
+ Three steps, on a loop:
188
+
189
+ 1. **Remember it** — when your assistant makes a decision or fixes a bug, Muse
190
+ saves a short note about what changed and why.
191
+ 2. **Check it** — before the note is stored, Muse confirms the file or function
192
+ it mentions actually exists. Citations are structural fingerprints, not line
193
+ numbers, so a refactor does not silently break the note.
194
+ 3. **Hand it back** — next time you start work, Muse returns the notes that fit
195
+ the task, sized to your token budget, not the whole archive.
196
+
197
+ If a saved fact no longer matches your code, Muse leaves it out and says so,
198
+ rather than serving it as if it were still true.
199
+
200
+ ---
201
+
130
202
  ## Key capabilities
131
203
 
132
204
  - 👤 **Persona & Style Grounding (`USER.md`)**: Configures your role (`developer`, `designer`, `marketer`, `casual`, `custom`) and communication preferences so AI models write code that matches your style.
@@ -138,13 +210,34 @@ Store working constraints, decisions, handoffs, and verified facts in one local
138
210
  - 🌳 **Hierarchical Tree Retrieval & Progressive Disclosure**: Sharded tree partitions with 3-tier progressive disclosure (`L1` abstracts, `L2` summaries, `L3` full context) for massive knowledge bases.
139
211
  - 📚 **Obsidian Markdown Wiki & Entity Graph Compiler**: Dual-persistence knowledge compounding compiling linked Markdown pages (`wiki/concepts/`, `wiki/entities/`) with bidirectional `[[wikilinks]]`.
140
212
  - 🛡️ **Vibeguard Zero-Leakage Secret Scanner**: Regex-powered memory defense intercepting and rejecting API keys, AWS credentials, private keys, database URIs, and passwords before writes.
141
- - 🔌 **Zero-Permission Auto-Wiring (52 Agents)**: Automatically detects and wires Claude Code, Cursor, Antigravity, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, etc.
142
- - 🔄 **Universal Memory Migrator (29 Engines)**: One-click migration from Letta, Mem0, Supermemory, Cognee, Beads, Mnemosyne, GBrain, and more with state preservation.
213
+ - 🔌 **Zero-Permission Auto-Wiring (the majority of coding agents)**: Automatically detects and wires Claude Code, Cursor, Antigravity, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, and the rest of the tools developers actually use.
214
+ - 🔄 **Universal Memory Migrator (30 Engines)**: One-click migration from Letta, Mem0, Supermemory, Cognee, Beads, Mnemosyne, GBrain, and more with state preservation.
143
215
  - 🎨 **Cognitive Studio Visual Dashboard (`memory ui`)**: Embedded zero-dependency web interface featuring 3D force-directed knowledge graphs, live `CURRENT.md` monitor, wiki reader, and persona editor.
144
216
  - ⏰ **Proactive Nudges & Routines Scheduler**: Cron-invoked daily briefings, staleness policy tracking, and ambient open-loop trackers with zero resident background daemons.
145
217
 
146
218
  ---
147
219
 
220
+ ## Where your memory lives
221
+
222
+ Everything Muse knows is a folder you can open, read, diff, back up, or commit.
223
+
224
+ ```
225
+ .memory/ # project scope — travels with your repo
226
+ ├── memory.db # SQLite: memories, anchors, graph edges, audit
227
+ ├── memories/ # one YAML file per memory — plain text, reviewable
228
+ ├── CURRENT.md # active constraints, injected every session
229
+ ├── USER.md # your persona and working preferences
230
+ ├── observations.jsonl # append-only event log the harvester mines
231
+ ├── audit.jsonl # tamper-evident write log
232
+ └── sync_pool/ # zero-daemon shared gossip pool
233
+ ~/.memory/ # global scope — preferences that follow you
234
+ ```
235
+
236
+ There is no server, no port, and no service to keep alive. Delete the folder
237
+ to delete the memory.
238
+
239
+ ---
240
+
148
241
  ## Start with one command
149
242
 
150
243
  > [!TIP]
@@ -185,9 +278,24 @@ docker build -t musememory .
185
278
 
186
279
  ---
187
280
 
188
- ## 📖 Documentation & User Guides
281
+ ## 📖 Documentation map
282
+
283
+ Two layers, on purpose. **Human docs** are narrative and explain *why*.
284
+ **Agent docs** are contracts: exact commands, exact tool names, exact failure
285
+ behaviour, with nothing to interpret. An agent should never have to read a
286
+ prose paragraph to learn a flag name.
189
287
 
190
- Explore comprehensive documentation tailored for both solo developers and engineering leadership:
288
+ ### For agents — read these
289
+
290
+ | Document | What it gives you |
291
+ | :--- | :--- |
292
+ | **[Agent reference](docs/agent-reference.md)** | The contract: install, file layout, mandatory session protocol, trust gates, failure semantics. |
293
+ | **[CLI & MCP reference](docs/cli-reference.md)** | Every command and every MCP tool, generated from the source. |
294
+ | **[`mcp-tool-matrix.json`](docs/mcp-tool-matrix.json)** | The tool list as JSON, for programmatic consumption. |
295
+ | **[`claims.json`](claims.json)** | Every countable claim, generated from `src/` — tool, platform and test counts. |
296
+ | **[`llms.txt`](https://harshsinghmp.github.io/musememory/llms.txt)** | The website, for agents. `llms-full.txt` is the whole site as plain text. |
297
+
298
+ ### For humans
191
299
 
192
300
  | Guide | Intent & Framework | Target Audience |
193
301
  | :--- | :--- | :--- |
@@ -199,7 +307,7 @@ Explore comprehensive documentation tailored for both solo developers and engine
199
307
  | ⚡ **[Real-Time Daemon & Observability](docs/daemon-and-observability.md)** | **QUEST Framework**: Real-time SSE event hub (`memory daemon`), CI upgrade gates (`--check`, `--strict`), and PageIndex depth parameters. | Swarm Engineers, DevOps, Builders |
200
308
  | 👥 **[Team Quickstart & Deployment Guide](docs/team-getting-started.md)** | Single-host server deployment, systemd/Docker setups, and per-editor client recipes (Cursor, Opencode, Claude Code, Antigravity, Windsurf). | Engineering Managers, Team Leads |
201
309
  | 🏛️ **[Team Slice Wiring & Architecture](docs/architecture/team-slice-wiring.md)** | Technical deep-dive into in-process SQLite WAL vs corrupted network mounts. | Infrastructure Engineers, Systems Architects |
202
- | 📊 **[Agent Memory Comparison Dossier](https://harshsinghmp.github.io/musememory/musememory-comparison.html)** | 68-engine benchmark comparing storage, retrieval, privacy, and token economics. | Decision Makers, Evaluators |
310
+ | 📊 **[Capability Comparison](https://harshsinghmp.github.io/musememory/compare)** | 14-capability comparison of local-first memory against vector stores, graph platforms and session search. | Decision Makers, Evaluators |
203
311
 
204
312
  ---
205
313
 
@@ -220,7 +328,7 @@ npx musememory upgrade
220
328
  #### What `memory upgrade` automatically handles:
221
329
  1. **Package Manager Auto-Detection**: Detects whether your workstation runs `bun`, `npm`, `pnpm`, or `yarn` and pulls the latest published binary.
222
330
  2. **Self-Healing Storage Repair**: Recovers missing `.memory/`, `CURRENT.md` constraints, or `USER.md` persona files if corrupted or deleted.
223
- 3. **52 Agent Platform Re-Discovery**: Scans for newly installed coding agents (Cursor, Claude Code, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, etc.) and auto-wires them with zero permissions.
331
+ 3. **Coding Agent Re-Discovery**: Scans for newly installed coding agents (Cursor, Claude Code, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, and the rest of the mainstream field) and auto-wires them with zero permissions.
224
332
  4. **AST Symbol Graph Re-Indexing**: Re-synchronizes CodeGraph/Graphify symbol caches under `.memory/graph-symbols.json`.
225
333
 
226
334
  ---
@@ -274,7 +382,7 @@ npx musememory stats
274
382
  npx musememory briefing
275
383
  ```
276
384
 
277
- ### 3️⃣ Connect Coding Agents (52 Platforms)
385
+ ### 3️⃣ Connect Coding Agents (the majority of platforms)
278
386
  ```bash
279
387
  # Scan workstation for installed AI coding agents
280
388
  npx musememory agents
@@ -302,7 +410,7 @@ npx musememory connect claude-code --harness claude
302
410
  Muse Memory can be cleanly and completely removed with zero trace left on your machine.
303
411
 
304
412
  #### Step 1: Unwire Coding Agents (Zero-Trace MCP Cleanup)
305
- Remove the memory MCP server configuration from all 52 detected agent config files (`cursor`, `claude-code`, `antigravity`, `windsurf`, `opencode`, `codex`, etc.):
413
+ Remove the memory MCP server configuration from every detected agent config file (`cursor`, `claude-code`, `antigravity`, `windsurf`, `opencode`, `codex`, etc.):
306
414
 
307
415
  ```bash
308
416
  # Preview changes before modifying any configuration
@@ -426,7 +534,7 @@ When a local embedder is configured (`retrieval.embedderUrl`), a semantic cosine
426
534
  - **Named Entity Extraction (`memory entities`)**: Automatically extracts persons, products, organizations, tools, and code symbols with co-occurrence edge weights.
427
535
  - **PageIndex Reasoning Engine (`memory pageindex`)**: Indexes unstructured documents into hierarchical reasoning trees.
428
536
 
429
- ### 6. Universal Migration Engine (29 Memory Formats)
537
+ ### 6. Universal Migration Engine (30 Memory Formats)
430
538
  Auto-detects and ingests existing memory stores across 29 external engines:
431
539
  ```bash
432
540
  # Auto-detect all external memory stores on your machine
@@ -438,7 +546,7 @@ memory migrate --provider mem0
438
546
  memory migrate --provider beads
439
547
  memory migrate --all
440
548
  ```
441
- > See [`web/musememory-comparison.html`](./web/musememory-comparison.html) for the published comparison page, and [`docs/research/musememory-comparison.html`](docs/research/musememory-comparison.html) for the research survey dossier (68 systems).
549
+ > See the live [capability comparison](https://harshsinghmp.github.io/musememory/compare) for the published page, and [`docs/research/musememory-comparison.html`](docs/research/musememory-comparison.html) for the research survey dossier (68 systems).
442
550
 
443
551
  ---
444
552
 
@@ -467,147 +575,63 @@ Navigate to `http://localhost:2222` to access:
467
575
 
468
576
  ---
469
577
 
470
- ## 📖 Deep Technical References & Documentation
578
+ ## 🔌 CLI & MCP reference
471
579
 
472
580
  <details>
473
- <summary><b>🔌 Complete MCP Tool Reference (61 Tools across 6 Profiles)</b> — <i>Click to expand</i></summary>
474
-
475
- When registered as an MCP server, `musememory` exposes the following native tools (filtered dynamically into role-tailored profiles to eliminate tool bloat):
581
+ <summary><b>🔌 CLI & MCP reference (generated from source)</b> — <i>Click to expand</i></summary>
476
582
 
477
- | MCP Tool | Execution Phase | Description |
478
- | :--- | :--- | :--- |
479
- | `muse_context` | **Flagship Fusion** | Single-call fused orchestrator combining search, active file, symbol, error messages, and task intent under strict knapsack token budgets. |
480
- | `muse_health` | **Quality Gate** | 5-Pillar Project Health Gate: audits store integrity, code anchors, doc/code alignment, anti-pattern sentry, and technical debt with A-F grading and pass/fail status. |
481
- | `muse_why` | **Cognition / "Why"** | Explains *why* code was designed the way it is by reconstructing past ADRs, bug fixes, trade-offs, and timeless rules. |
482
- | `muse_bug_clusters` | **Fragility Hotspots** | Categorizes recurring bugs into 5 root causes with subsystem fragility scoring. |
483
- | `muse_tech_debt` | **Technical Debt** | Scans code and memory for TODO/FIXME markers, unsafe `as any` casts, and drifted anchors. |
484
- | `muse_memory_for_code`| **Code-to-Memory** | Queries all memories, ADRs, constraints, and bugs associated with a code file and symbol. |
485
- | `muse_code_for_memory`| **Memory-to-Code** | Resolves all native code anchors and affected source files for a given memory entry. |
486
- | `memory_adr_record` / `list` | **Architecture Decisions** | Records and queries first-class Architecture Decision Records with native code anchors and options considered. |
487
- | `memory_drift_audit` | **Drift Engine** | Audits bi-directional documentation $\longleftrightarrow$ code drift across 6 alignment states (`DOCUMENTED`, `IMPLEMENTED`, `PARTIAL`, `CONFLICTING`, `STALE`, `MISSING`). |
488
- | `memory_capture_negative` | **Negative Sentry** | Records failed approaches, anti-patterns, and reproduction commands to prevent repeating mistakes. |
489
- | `memory_promote_scope` | **Scoped Promotion** | Promotes memory along 3-tier ladder (`local` $\rightarrow$ `project` $\rightarrow$ `global`) with 5× repeated success policy and universal generalization. |
490
- | `memory_archive` / `rehydrate` | **Archival Lifecycle** | Evaluates and manages `active` $\rightarrow$ `cold` $\rightarrow$ `dormant` $\rightarrow$ `archived` lifecycle with query rehydration. |
491
- | `memory_lifecycle_stats` / `sweep` | **Lifecycle Sweeper** | Reports store-wide lifecycle statistics and executes sweep transitions for aging memories. |
492
- | `anchor_create` / `verify` / `audit` | **Code Identity** | Creates, verifies, and audits line-independent structural code anchors. |
493
- | `muse_sync_broadcast` / `ingest` | **P2P Gossip Mesh** | Broadcasts and ingests portable sealed SyncPackets with deduplication and contradiction flagging. |
494
- | `muse_sync_status` / `pool` | **Sync Coordination** | Tracks peer vector clocks and synchronizes memories bidirectionally via shared drop-directory pool. |
495
- | `muse_mesh_status` | **Monorepo Topology** | Discovers monorepo workspaces and multi-repo sibling groups with package dependencies and stores. |
496
- | `muse_mesh_query` | **Cross-Project Query** | Queries memories across the entire workspace mesh with origin package provenance tags. |
497
- | `muse_mesh_audit` | **Contract Verification** | Audits cross-package dependency contracts, entrypoint exports, and cross-repo code anchors. |
498
- | `muse_mesh_link` | **Mesh Linking** | Explicitly links or unlinks external repository paths into the workspace mesh registry. |
499
- | `profile_list` | **Tool Management** | Lists task-focused MCP profiles (`core`, `coding`, `debugging`, `review`, `architecture`, `maintenance`). |
500
- | `get_context` | **Session Start** | Fetches Top-$K$ ranked memories, `USER.md` profile, active `CURRENT.md` constraints, and supports `--tier 0|1|2`. |
501
- | `search` | **Investigation** | Searches memory units with query, token budget, project, type, and verification filters. |
502
- | `memory_current` | **Constraints** | Reads or appends active project working constraints (`CURRENT.md`). |
503
- | `memory_get_user_profile` | **Context Loading** | Reads active `USER.md` persona and communication preferences. |
504
- | `memory_set_user_profile` | **Preferences** | Updates `USER.md` profile with inline secret defense. |
505
- | `memory_capture` | **During Fixes** | Saves a memory entry with inline Vibeguard secret inspection. |
506
- | `memory_confirm` | **Decision Approval** | Promotes candidate insight to confirmed status. |
507
- | `memory_supersede` | **Refactoring** | Marks outdated knowledge superseded by a confirmed replacement. |
508
- | `memory_link` | **Graph Building** | Connects related memories bidirectionally. |
509
- | `memory_mark_stale` | **Deprecation** | Flags decaying knowledge with deprecation rationale. |
510
- | `memory_reject` | **Hypothesis Refutation** | Marks invalidated hypotheses as rejected. |
511
- | `memory_delete` | **Purge** | Permanently deletes an entry and records audit ledger log. |
512
- | `memory_source_add` / `list` | **Provenance** | Records external docs/RFCs/URLs into `.memory/sources.json` and queries sources. |
513
- | `memory_claim_record` / `list` | **Claim Ledger** | Records evidence-backed claims tagged with `[RAW]`, `[FETCH]`, `[SEARCH]`, `[INFER]`. |
514
- | `memory_freeze_run` / `list` | **Execution Snapshots** | Freezes immutable task snapshots with file inventory and SHA-256 memory hashes. |
515
- | `memory_prompt_list` / `get` / `run` | **Prompt Templates** | Manages and executes native structured prompt templates with live context injection. |
516
- | `memory_rollup` | **Temporal Compounding** | Aggregates atomic memories into weekly, monthly, and quarterly rollups and updates `HOT.md`. |
517
- | `memory_loop_record` / `status` | **Gauntlet Loops** | Multi-agent iteration ledger and plateau/regression detector (`.memory/iterations.jsonl`). |
518
- | `memory_verify_strict` | **Integrity Gate** | Zero-tolerance audit verifying secrets, referential links, wikilinks, claims, and candidates. |
519
- | `memory_tree_search` | **Tree Retrieval** | Hierarchical reasoning search across partitioned memory shards. |
520
- | `memory_wiki_compile` | **Wiki Compiler** | Compiles confirmed memories into Obsidian-compatible Markdown pages. |
521
- | `memory_wiki_search` / `get` | **Wiki Reading** | Searches and reads compiled concept and entity wiki pages. |
522
- | `memory_entities_search` / `get` | **Entity Graph** | Searches extracted entities and inspects co-occurrence strengths. |
523
- | `memory_pageindex_index` | **Doc Indexing** | Builds a hierarchical reasoning tree from document content. |
524
- | `memory_pageindex_search` | **Doc Search** | Searches PageIndex document tree with reasoning explanations. |
525
- | `memory_pageindex_import` | **Doc Knowledge** | Imports PageIndex search insights directly into memory units. |
526
- | `memory_search_transcripts` | **History Search** | Full-text search over past `.jsonl` transcripts with dialogue context windows. |
527
- | `memory_harvest` | **Session End** | Distills conversation turns into structured fix/outcome units. |
528
- | `memory_import_transcript` | **Transcript Sync** | Ingests `.jsonl` transcript and auto-binds memories to session nodes. |
529
- | `memory_audit` | **Governance** | Queries the append-only operational audit ledger. |
530
- | `memory_detect_agents` | **Onboarding** | Scans workstation for 52 coding agent installations. |
531
- | `memory_connect` | **Setup** | Auto-wires MCP server into detected installed agents with zero permissions. |
532
- | `memory_detect_providers` | **Migration** | Scans machine for 29 external memory formats. |
533
- | `memory_migrate` | **Migration** | Ingests external memories with state preservation and secret scrubbing. |
534
- | `memory_export` / `import` | **Team Sharing** | Exports and imports portable JSON memory snapshots. |
535
- | `memory_validate` | **Integrity Check** | Verifies database integrity and scans for credential leaks. |
536
- | `memory_settings_get` / `set` | **Configuration** | Reads and updates unified global or project configuration settings. |
537
- | `graph_status` | **AST Graph** | Inspects CodeGraph/Graphify symbol overlap provider status. |
538
- | `graph_index` | **AST Graph** | Indexes AST symbol graph and caches in `.memory/graph-symbols.json`. |
583
+ The complete command and tool surface is **generated from `src/`**, not
584
+ transcribed by hand, so it cannot drift:
539
585
 
540
- </details>
586
+ | Document | Contents |
587
+ | :--- | :--- |
588
+ | **[`docs/cli-reference.md`](docs/cli-reference.md)** | Every CLI command with its flags, and every MCP tool with its required parameters — grouped by purpose. |
589
+ | **[`docs/mcp-tool-matrix.json`](docs/mcp-tool-matrix.json)** | The MCP tool list as JSON, for programmatic consumption. |
590
+ | **[`docs/agent-reference.md`](docs/agent-reference.md)** | The contract an agent must follow: session protocol, trust gates, failure semantics. |
591
+ | **[`claims.json`](claims.json)** | Every countable claim, generated from `src/`. |
541
592
 
542
- <details>
543
- <summary><b>💻 Full CLI Command Matrix (54 Commands)</b> — <i>Click to expand</i></summary>
593
+ ### The commands you will actually use
544
594
 
545
595
  ```bash
546
- memory <command> [arguments] [flags] # alias: musememory
596
+ memory context [query] --token-budget N # top-ranked context for prompt injection
597
+ memory search <query> --limit N # ranked search with a score breakdown
598
+ memory capture "<text>" --project P # persist a memory (secret-scanned, citation-verified)
599
+ memory propose "<text>" --project P # propose a candidate without confirming it
600
+ memory confirm <id> # promote a candidate to confirmed
601
+ memory supersede <old_id> --with <new_id> # replace outdated knowledge, keep lineage
602
+ memory current get | set "<text>" # read/write active constraints
603
+ memory link <id> --related <id1,id2> # bidirectional relation between entries
604
+ memory audit [--operation OP] # query the append-only audit ledger
605
+ memory doctor # full ecosystem health diagnostic
606
+ memory health # 5-pillar health gate with a letter grade
607
+ memory verify <id> --strict # run an entry's verification command
608
+ memory harvest "<text>" --project P # distil a turn into a fix/decision unit
609
+ memory wiki compile # compile memories into an Obsidian wiki
610
+ memory benchmark # measured speed, quality and token-economy report
547
611
  ```
548
612
 
549
- | Command | Arguments / Flags | Description |
550
- | :--- | :--- | :--- |
551
- | `health` | `[--json] [--global]` | **Unified 5-Pillar Project Health Gate**: audits Store Integrity, Code Anchors, Drift, Sentry, and Tech Debt with A-F grading and pass/fail gate. |
552
- | `studio` / `ui` | `[--port N] [--global]` | **Web Observability Studio**: visual dashboard with 5-pillar health, ADR drift, why reasoner, and live mesh (default port: `2222`). |
553
- | `sync` | `[status\|broadcast\|ingest\|pool] [flags]` | **P2P Gossip Mesh**: peer vector clock status, packet export, ingestion, and shared pool gossip sync. |
554
- | `mesh` | `[overview\|query\|check\|link\|unlink\|propagate] [flags]` | **Monorepo & Multi-Repo Mesh**: workspace discovery, cross-project memory query, and contract drift audit. |
555
- | `adr` | `[record\|list\|supersede] [args]` | **Architecture Decision Records**: record, list, and supersede living architecture decisions. |
556
- | `anchor` | `[create\|verify\|audit] [args]` | **Code Anchors**: create, verify, and audit line-independent structural code anchors. |
557
- | `install` | `[path] [--global]` | **One-line complete setup**: initializes `.memory/`, `USER.md`, and auto-wires coding agents. |
558
- | `doctor` | `[path] [--global]` | **System diagnostic**: checks SQLite primary, schemas, secrets, and MCP connections. |
559
- | `uninstall` | `[agent] [--purge] [--dry-run]` | **Clean uninstaller**: unwires MCP configs (and optionally purges `.memory/`). |
560
- | `init` | `[path] [--legacy] [--global]` | Initialize `.memory/` directory and SQLite database. |
561
- | `user` | `[get\|init\|set] [args] [--global]` | Manage `USER.md` persona & preferences across 5 clean archetypes. |
562
- | `connect` | `[agent] [--all] [--force] [--dry-run] [--harness H]` | Auto-wire MCP into detected installed agents with zero permissions. Harness-specific paths (e.g. `~/.claude*`) are only written with an explicit `--harness claude` opt-in. |
563
- | `agents` | *(none)* | Scan workstation for 52 coding agents (Cursor, Claude Code, Antigravity, etc.). |
564
- | `detect` | *(none)* | Scan workstation and local workspace for 29 external memory systems. |
565
- | `migrate` | `[--provider P] [--all] [--dry-run] [--overwrite]` | Migrate memories into Muse Memory preserving active/archived state. |
566
- | `context` | `[query] [--token-budget N] [--limit N] [--tier 0\|1\|2]` | Retrieve Top-$K$ ranked active context for prompt injection. |
567
- | `search` | `<query> [--limit N] [--token-budget N] [--type T]` | Ranked multi-factor token search with score breakdown. |
568
- | `search-transcript` | `<query> [file.jsonl] [--window N]` | Full-text search past transcripts with dialogue context windows. |
569
- | `learn` / `sync-chats` | `[--confirm] [--force] [--max N]` | **Universal auto-learner**: auto-discovers and distills memories from all agent chats across host machine. |
570
- | `distill-route` | `[--force] [--dry-run]` | **Multi-channel knowledge distillation router**: triages memories across system (rules/fixes), content (architecture concepts), and health (contradictions/staleness) lanes with SHA-256 deduplication and draft generation. |
571
- | `harvest` | `<text\|file> --project P [--confirmed]` | Distill conversation turns into structured fix/decision memory units. |
572
- | `import-transcript` | `<file.jsonl> [--project P] [--confirmed]` | Ingest raw `.jsonl` session transcripts from coding agents. |
573
- | `capture` / `propose` | `<text> --project P [--title T] [--type T]` | Propose a memory entry with inline Vibeguard secret inspection. |
574
- | `recall` | `<query> [--limit N] [--token-budget N]` | Rich recall displaying verification levels and related graph links. |
575
- | `confirm` | `<id> [--global]` | Promote `candidate`, `disputed`, or `stale` entry to `confirmed`. |
576
- | `supersede` | `<old_id> --with <new_id>` | Mark old entry superseded by new confirmed replacement. |
577
- | `mark-stale` | `<id> [--reason <text>]` | Mark an entry stale with deprecation rationale. |
578
- | `reject` | `<id> [--global]` | Mark an entry rejected. |
579
- | `delete` | `<id> [--reason <text>]` | Permanently delete a memory entry and record audit event. |
580
- | `source` | `add\|list\|show <url> [--title T] [--type T]` | Manage external documentation and URLs in provenance Source Ledger (`.memory/sources.json`). |
581
- | `claim` | `record\|list\|show <text> [--confidence RAW\|FETCH\|SEARCH\|INFER]` | Record and query verifiable claims connected to sources (`.memory/claims.json`). |
582
- | `freeze` | `--task <task.md\|text> [--run-id R]` | Capture immutable execution snapshot with file inventory and SHA-256 memory hashes. |
583
- | `prompt` | `list\|show\|run <name> [--args k=v,...]` | Manage and run structured prompt templates with live context injection. |
584
- | `rollup` | `--period week\|month\|quarter [--date YYYY-MM-DD]` | Multi-scale temporal compounding and `.memory/HOT.md` working memory cache compiler. |
585
- | `loop` | `record\|status\|clear` | Multi-agent Gauntlet iteration ledger and plateau/regression detector. |
586
- | `verify` | `<id> [--timeout S] [--strict]` | Execute a fix entry's test command or run full strict integrity gate. |
587
- | `audit` | `[--operation OP] [--entry-id ID] [--limit N]` | Query append-only operational audit trail (`.memory/audit.jsonl`). |
588
- | `link` | `<id> --related <id1,id2>` | Synchronize bidirectional relation links between entries. |
589
- | `export` / `import` | `[--out <file.json>]` / `<file.json>` | Export and import portable JSON memory snapshots. |
590
- | `list` / `ls` | `[--status S] [--type T] [--project P]` | List memory entries with multi-field status and type filtering. |
591
- | `stats` | `[--global]` | Breakdown statistics of total memories, status, and type metrics. |
592
- | `briefing` | `[--limit N] [--global]` | Active summary of recent entries, status counts, and due items. |
593
- | `nudge` | `[--global]` | Proactive attention list: overdue entries, stale policies, open loops. |
594
- | `routine` | `run <name>` / `install [name]` | Execute `.memory/routines.yaml` steps or print crontab lines. |
595
- | `wiki` | `compile\|list\|show <slug>` | Compile and browse Obsidian-compatible Markdown wiki pages. |
596
- | `entities` | `list\|show <id>\|related <id>` | Inspect extracted knowledge graph entities and co-occurrence weights. |
597
- | `settings` | `get\|set\|reset\|export\|import` | Manage unified settings across retrieval, wiki, PageIndex, and UI. |
598
- | `current` | `get` / `set <text> --project P` | Read or append hard constraints in `.memory/CURRENT.md`. |
599
- | `graph` | `status` / `index` | Query active CodeGraph provider status or index AST symbol map. |
600
- | `branch` | `<id> --path <mem_path> [--label L]` | **Version control (R23)**: tag a memory with semantic dotted-path addressing. |
601
- | `checkout` | `<path\|id>` | **Version control (R23)**: retrieve a memory by its `mem_path` or entry id. |
602
- | `blame` | `<id>` | **Version control (R23)**: show access history, staleness score, and audit trail. |
603
- | `ls-branches` | `[--project P]` | List all registered branch references. |
604
- | `embed` | `status\|build\|reindex` | **Semantic embeddings (R21)**: inspect, build, or rebuild the local embedding index. `status` runs offline; `build`/`reindex` probe the configured endpoint. |
605
- | `mcp` | *(none)* | Start stdio MCP server (Protocol 2024-11-05). |
613
+ ### The MCP tools you will actually use
614
+
615
+ | Tool | When |
616
+ | :--- | :--- |
617
+ | `get_context` | **First turn of any session.** Persona, constraints, top-K memories. |
618
+ | `muse_context` | Task-shaped fused context (constraints + memories + negative lessons + anchors). |
619
+ | `memory_capture` | Right after a fix, a decision, or a new constraint. |
620
+ | `memory_supersede` | When knowledge is replaced — never `delete`. |
621
+ | `search` / `memory_tree_search` | Investigating what is already known. |
622
+ | `muse_why` | Before a refactor: why is the code like this? |
623
+ | `muse_code_impact` | Before touching a file: what depends on it? |
624
+ | `memory_audit` | When you need to know who changed what, and when. |
625
+ | `muse_profile_list` | Which tools are exposed in the current profile. |
626
+
627
+ Tools are exposed through 7 task-focused profiles (`core`, `coding`,
628
+ `debugging`, `review`, `architecture`, `maintenance`, `full`) so an agent is
629
+ never handed the whole surface. Select one with `MUSE_MCP_PROFILE`.
606
630
 
607
631
  </details>
608
632
 
609
633
  <details>
610
- <summary><b>🧠 Shipped Agent Skills (<code>.agents/skills/</code>)</b> — <i>Click to expand</i></summary>
634
+ <summary><b>🧠 Shipped agent skills (<code>.agents/skills/</code>)</b> — <i>Click to expand</i></summary>
611
635
 
612
636
  Muse Memory ships with 11 turnkey Agent Skills designed for coding agents (Claude Code, Cursor, Antigravity, OpenCode, Codex, Gemini CLI, etc.) under `.agents/skills/`:
613
637
 
@@ -658,86 +682,28 @@ memory user set "- Prefers TypeScript, Bun, and ultra terse responses"
658
682
 
659
683
  ```bash
660
684
  bun install
661
- bun test # 1309 pass, 0 fail, 5872 assertions across 203 files
685
+ bun test # 1335 pass, 0 fail, 6123 assertions across 205 files
662
686
  bun run typecheck # 0 static type errors
663
687
  bun run build # Clean bundled distribution build (dist/index.js)
664
- bun run build:gif # Regenerate assets/muse-memory-demo.gif (deterministic SVG→GIF render)
665
688
  ```
666
689
 
667
690
  See [CONTRIBUTING.md](./CONTRIBUTING.md) for the branch/PR model, the per-commit gate, and the post-merge sequence.
668
691
 
669
692
  ---
670
693
 
671
- ## 🔮 Sprint & Roadmap Board
694
+ ## 🔮 Roadmap
672
695
 
673
- <details>
674
- <summary><b>🔮 Sprint & Roadmap Lifecycle (Requested ➔ Planned ➔ In Progress ➔ Done)</b> — <i>Click to expand</i></summary>
696
+ Work moves through four phases — requested → planned → in progress → done —
697
+ and ships as a pull request from `dev` to `main`.
675
698
 
676
- Muse Memory features are developed in structured sprints moving across 4 deterministic lifecycle phases following strict `vX.Y.Z` semantic versioning. Every sprint is delivered via PR from `dev` to `main` with associated GitHub milestones. Live tracking: [GitHub Issues & Milestones](https://github.com/harshsinghmp/musememory/issues).
699
+ | Phase | Status |
700
+ | :--- | :--- |
701
+ | 📋 Requested | 4 items in the backlog |
702
+ | 📅 Planned | 7 confirmed features scheduled |
703
+ | ⚡ In progress | none — sprint SOW-200 shipped |
704
+ | ✅ Done | shipped to production |
677
705
 
678
- ```
679
- [ 📋 Requested ] ──► [ 📅 Planned ] ──► [ ⚡ In Progress ] ──► [ ✅ Done ]
680
- (Issues / PRs) (Sprint Backlog) (Active PR / Milestone) (Shipped to Main)
681
- ```
682
-
683
- ### 🏷️ Semantic Versioning Protocol (`vX.Y.Z`)
684
- - **`X` (Major)**: Breaking architectural changes, core schema shifts, or protocol overhauls (`vX.0.0`).
685
- - **`Y` (Feature)**: Substantive new agent capabilities, MCP tools, or CLI subcommands (`vX.Y.0`).
686
- - **`Z` (Minor / Hotfix / Critical Fix)**: Bug remediations, security patches, performance, and urgent hotfixes (`vX.Y.Z`).
687
-
688
- ### 📋 Phase 1: Requested (Backlog)
689
- *Incoming community proposals, agent adapters, and feature requests pending sprint triage:*
690
- - [ ] Multi-Agent Consensus Verification Protocol (cross-agent memory agreement)
691
- - [ ] Continuous Background Memory Compaction & Pruning Cron
692
- - [ ] Export to Local Vector GGUF Embedding Index
693
-
694
- ### 📅 Phase 2: Planned
695
- *Confirmed high-leverage features scheduled for upcoming sprints:*
696
- - [ ] **Tiered Retrieval Engine**: Deterministic Tier 0 (manifest), Tier 1 (invariants), Tier 2 (bounded bodies) knapsack retrieval
697
- - [ ] **Provenance & Claim Ledgers**: Direct memory citations with `[RAW]`, `[FETCH]`, `[SEARCH]`, and `[INFER]` confidence tagging
698
- - [ ] **Frozen Context Snapshots**: Immutable SHA-256 state tracking for reproducible agent execution
699
- - [ ] **Native Prompt Registry**: Declarative prompt library & runner (`.memory/prompts/*.md`, `memory prompt run`)
700
- - [ ] **Temporal Compounding**: Multi-scale Day $\to$ Week $\to$ Quarter wiki rollups & `.memory/HOT.md` cache
701
- - [ ] **Gauntlet Iteration Ledger**: Multi-turn improvement loop tracking and plateau detection
702
- - [ ] **Strict Health Gate**: Comprehensive `memory verify --strict` referential, link, and secret validator
703
-
704
- ### ⚡ Phase 3: In Progress (Active Sprint / PR)
705
- *Currently under active development on dedicated feature branches:*
706
- - *(None — Sprint SOW-200 completed and shipped)*
707
-
708
- ### ✅ Phase 4: Done (Shipped to Production)
709
- *All completed, tested, and released milestones:*
710
- | Status | Milestone / Feature | Shipped Release / Tracker |
711
- | :--- | :--- | :--- |
712
- | ✅ | **SOW-201**: Live Runtime File & Symbol Verification Gate (`STRONG`/`WEAK`/`STALE`) | shipped v1.8.0 |
713
- | ✅ | **SOW-202**: Deterministic Relevance Cutoff Gate (hard score threshold $\ge 0.45$) | shipped v1.8.0 |
714
- | ✅ | **SOW-203**: Git Code-Drift Scanner CLI (`memory drift` / `memory check`) | shipped v1.8.0 |
715
- | ✅ | **SOW-204**: Gradient-Free Hebbian Co-Activation Plasticity (synaptic link reinforcement) | shipped v1.8.0 |
716
- | ✅ | **SOW-205**: Semantic Memory Prompt Compression (`memory compress` lossless prompt packer) | shipped v1.8.0 |
717
- | ✅ | Turnkey Agent Skills Suite (`muse-ground`, `muse-capture`, etc.) | shipped v1.7.0 |
718
- | ✅ | AST Symbol Graph Integration (CodeGraph / Graphify) | [#35](https://github.com/harshsinghmp/musememory/issues/35) / v1.7.0 |
719
- | ✅ | Zero-Friction Installation Lifecycle Fix | shipped v1.7.1 |
720
- | ✅ | Proactive Nudges & Check-ins (`memory nudge`) — SOW-101 | [#28](https://github.com/harshsinghmp/musememory/issues/28) |
721
- | ✅ | Daily Briefing & Routines Scheduler (cron-invoked, no daemon) — SOW-102 | [#29](https://github.com/harshsinghmp/musememory/issues/29) |
722
- | ✅ | Open-Loop / Task Extraction from Transcripts — SOW-103 | [#30](https://github.com/harshsinghmp/musememory/issues/30) |
723
- | ✅ | Calendar / Time-Aware Follow-ups (`due_at` / `expires_at`) — SOW-104 | [#31](https://github.com/harshsinghmp/musememory/issues/31) |
724
- | ✅ | muse-agents ↔ musememory Integration Contract (`--for-agent`) — SOW-106 | [#33](https://github.com/harshsinghmp/musememory/issues/33) |
725
- | ✅ | Dynamic Prompt Token Budgeter (`--token-budget N`) | shipped v1.1.0 |
726
- | ✅ | Scene-Based Hierarchical Consolidation (`memory consolidate`) | [#1](https://github.com/harshsinghmp/musememory/issues/1) |
727
- | ✅ | Autonomous Verification Oracle (`memory verify <id>`) | [#2](https://github.com/harshsinghmp/musememory/issues/2) |
728
- | ✅ | Multi-Hop Causality Graph Tracer (`memory trace <id>`) | [#3](https://github.com/harshsinghmp/musememory/issues/3) |
729
- | ✅ | In-Place Core Memory Partitioning (`memory core`) | [#4](https://github.com/harshsinghmp/musememory/issues/4) |
730
- | ✅ | Automated Post-Turn Transcript Harvester Hook | [#5](https://github.com/harshsinghmp/musememory/issues/5) |
731
- | ✅ | Real-Time Agency SSE Hub (`memory daemon`) | [#6](https://github.com/harshsinghmp/musememory/issues/6) |
732
- | ✅ | Local Offline Hybrid Vector Engine | [#7](https://github.com/harshsinghmp/musememory/issues/7) |
733
- | ✅ | Delete Deprecated `MemoryStore` Shim | [#8](https://github.com/harshsinghmp/musememory/issues/8) / v1.5.0 |
734
- | ✅ | Self-Evolving Skill Distillation | [#9](https://github.com/harshsinghmp/musememory/issues/9) |
735
- | ✅ | 3-Layer Progressive Disclosure | [#10](https://github.com/harshsinghmp/musememory/issues/10) |
736
- | ✅ | Bi-Temporal Reinforcement Feedback | [#11](https://github.com/harshsinghmp/musememory/issues/11) |
737
- | ✅ | Ambient Open-Loop Tracker | [#12](https://github.com/harshsinghmp/musememory/issues/12) |
738
- | ✅ | Knowledge Graph UI v2 | [#13](https://github.com/harshsinghmp/musememory/issues/13) |
739
-
740
- </details>
706
+ **[Full roadmap →](docs/roadmap.md)** · [Live issues & milestones](https://github.com/harshsinghmp/musememory/issues) · [CHANGELOG](CHANGELOG.md)
741
707
 
742
708
  ---
743
709