musememory 2.2.1 โ†’ 3.0.0

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.
Files changed (37) hide show
  1. package/.agents/artifacts/2026-10-20-lifeos-memory-distillation-plan.md +865 -0
  2. package/.agents/artifacts/HANDOFF.md +22 -0
  3. package/.agents/artifacts/audit-and-realigned-roadmap-20261015.md +152 -0
  4. package/.agents/artifacts/bench-graph-baseline.json +519 -0
  5. package/.agents/artifacts/bench-graph-baseline.md +139 -0
  6. package/.agents/artifacts/brief-dayos-inspired-site-redo.md +89 -0
  7. package/.agents/artifacts/handoff-20261015-143202.md +109 -0
  8. package/.agents/artifacts/plan-competitor-adaptation-dashboard-graph.md +99 -0
  9. package/.agents/artifacts/session-report-2026-10-01-memory-gaps-and-website.md +94 -0
  10. package/.agents/artifacts/wave-3-sdd-ledger.md +18 -0
  11. package/.agents/artifacts/wave-4-sdd-ledger.md +18 -0
  12. package/.agents/context/architecture.md +1 -0
  13. package/.agents/context/current.md +168 -3
  14. package/.agents/context/decisions.md +4 -0
  15. package/.agents/context/deep-research-agentic-memory-evolution.md +261 -0
  16. package/.agents/context/deep-research-memory-adaptation-2026-10.md +107 -0
  17. package/.agents/context/deep-research-memory-improvement-2026-10.md +420 -0
  18. package/.agents/context/deep-research-memory-mechanisms-2026-09.md +334 -0
  19. package/.agents/context/index.md +5 -0
  20. package/.agents/context/product.md +2 -1
  21. package/.agents/context/roadmap.md +361 -7
  22. package/.agents/context/ticket-plan.md +553 -0
  23. package/.agents/plans/2026-10-20-wave-22-failure-attribution-negative-mining-design.md +198 -0
  24. package/.agents/plans/2026-10-20-wave-22-failure-attribution-negative-mining-plan.md +274 -0
  25. package/.agents/plans/EVOLUTION_PLAN.md +351 -0
  26. package/.agents/plans/local-embeddings-llama-cpp.md +37 -0
  27. package/.agents/plans/recall-eval-harness.md +31 -0
  28. package/.agents/research/ecosystem-teardown-2026-10.md +289 -0
  29. package/.agents/research/research-brief-walrus-memory-architecture.md +189 -0
  30. package/.agents/research/retirement-audit-2026-10.md +45 -0
  31. package/.agents/skills/muse-current/SKILL.md +47 -17
  32. package/.agents/standards/git-workflow.md +5 -0
  33. package/.agents/standards/workflows.md +13 -0
  34. package/README.md +141 -54
  35. package/dist/index.js +21008 -8958
  36. package/package.json +20 -10
  37. package/schema.json +39 -2
@@ -5,7 +5,36 @@ description: Active working constraints and interruption-proof session handoff m
5
5
 
6
6
  # ๐Ÿ“ Muse Current (`muse-current`)
7
7
 
8
- > **When to use**: Execute when the user establishes a hard project invariant, when starting a multi-step task, or before context compaction/task switching to record in-flight handoffs.
8
+ > **When to use**: Execute when the user establishes a hard project invariant, when starting a multi-step task, before context compaction/task switching, or when running multiple concurrent agents to record in-flight workstreams and prevent collisions.
9
+
10
+ ---
11
+
12
+ ## ๐Ÿ›๏ธ Operational Guidelines: Humans vs AI Agents
13
+
14
+ | Persona | Purpose & Guidelines |
15
+ | :--- | :--- |
16
+ | **For Humans (Founders & Architects)** | Single-pane-of-glass executive dashboard of active project invariants, active handoffs, and active concurrent agent workstreams. **Strictly zero verbose logs, raw terminal dumps, or transcript noise.** |
17
+ | **For AI Agents (Agency Council & Subagents)** | Mandatory grounding contract. Every agent must check `CURRENT.md` at session start (`get_context`) to respect active constraints, register its active task, and check what other parallel agents are modifying to avoid merge conflicts and race conditions. |
18
+
19
+ ---
20
+
21
+ ## ๐Ÿค– Concurrent Multi-Agent Coordination Protocol
22
+
23
+ When multiple agents run simultaneously across different IDE windows or chat sessions, each agent registers its active scope in `CURRENT.md`:
24
+
25
+ ```markdown
26
+ ## ๐Ÿค– Active Concurrent Agent Workstreams
27
+ | Agent / Session ID | Status | Active Task | Target Scope / Files | Last Active |
28
+ | :--- | :--- | :--- | :--- | :--- |
29
+ | `Agent-Sol` | [IN-PROGRESS] | Next.js API Rate Limiter | `src/api/rate-limit.ts` | 2026-09-03T08:50:00.000Z |
30
+ | `Agent-Nexus` | [IN-PROGRESS] | SQLite WAL Hardening | `src/sqlite.ts` | 2026-09-03T08:51:00.000Z |
31
+ ```
32
+
33
+ ### Protocol Rules for Concurrent Agents:
34
+ 1. **Pre-flight Scope Audit**: Before editing files, inspect `## ๐Ÿค– Active Concurrent Agent Workstreams`. If another agent is actively modifying your target files, coordinate or isolate your work to avoid overwriting changes.
35
+ 2. **Workstream Registration**: On starting a multi-turn task, register your agent name, task title, and target file scope.
36
+ 3. **Automatic Handoff Sync**: When updating session progress via `checkpointSession` or `updateSessionHandoff`, your workstream row is automatically updated with your latest checkpoint timestamp.
37
+ 4. **Task Completion**: Upon finishing the task, mark your workstream `COMPLETED`. Completed entries are automatically pruned after 48 hours.
9
38
 
10
39
  ---
11
40
 
@@ -24,39 +53,40 @@ Call `memory_current` or `memory_capture(type="constraint")`:
24
53
 
25
54
  This immediately updates `.memory/CURRENT.md` and dual-persists a constraint memory in SQLite.
26
55
 
27
- ### Step 2: Record Interruption-Proof Session Handoffs
28
- When completing a subtask, hitting context limits, or preparing for the next agent:
29
- Append a structured handoff block to `CURRENT.md`:
30
-
31
- ```markdown
32
- ## Active Handoff & Session Checkpoint
33
- - **Goal**: Migrate SQLite WAL connection pool to asynchronous microtask flushes.
34
- - **Completed**:
35
- - Implemented async query worker in `src/sqlite/worker.ts`.
36
- - Added unit test suite `test/sqlite_worker.test.ts`.
37
- - **In-Flight / Next Steps**:
38
- - Wire worker into `src/store.ts` save transaction.
39
- - Run full suite: `bun test`.
56
+ ### Step 2: Register & Checkpoint In-Flight Workstreams
57
+ When starting a task or checkpointing progress:
58
+ ```json
59
+ {
60
+ "action": "checkpoint",
61
+ "agent": "Sol",
62
+ "task": "Build OAuth2 Callback Handler",
63
+ "targetScope": "src/auth/*",
64
+ "progress": ["Added callback route", "Verified state nonce validation"]
65
+ }
40
66
  ```
41
67
 
42
- ### Step 3: Clear Resolved Invariants
68
+ ### Step 3: Clear Resolved Invariants & Prune Obsolete Rules
43
69
  When a temporary constraint or migration phase is complete, update `CURRENT.md` to prune obsolete rules so future context windows stay lightweight.
44
70
 
45
71
  ---
46
72
 
47
73
  ## ๐Ÿ›ก๏ธ Invariant Rules for Agents
48
74
 
49
- - **High Locality**: `CURRENT.md` must contain only active, high-priority invariants and current handoffsโ€”not historical archives.
75
+ - **High Locality**: `CURRENT.md` must contain only active, high-priority invariants, concurrent workstreams, and current handoffsโ€”never historical terminal transcripts.
50
76
  - **Zero Hallucination**: Do not contradict constraints recorded in `CURRENT.md`.
77
+ - **Zero File Collisions**: Always consult the active workstreams table before modifying shared codebase modules.
51
78
 
52
79
  ---
53
80
 
54
81
  ## ๐Ÿ’ป CLI Equivalents (Zero-MCP Fallback)
55
82
 
56
83
  ```bash
57
- # Read active working constraints
84
+ # Read active working constraints & concurrent workstreams
58
85
  memory current get
59
86
 
60
87
  # Append a new active constraint
61
88
  memory current set "- Hard constraint description" --project my-project
89
+
90
+ # Run storage optimization (prunes test noise, junk fragments & defragments SQLite)
91
+ memory optimize
62
92
  ```
@@ -87,6 +87,11 @@ All releases and git tags must follow strict `vX.Y.Z` semantic versioning:
87
87
  - Sync `package.json` `"version"` with the `vX.Y.Z` tag in the release commit.
88
88
  - Stage on `release/vX.Y.Z` from `dev` โ†’ merge to `master` โ†’ back-merge to `dev`.
89
89
  - CI publishes on `v*` tag push (`git tag -a vX.Y.Z -m "release: vX.Y.Z"`). Never publish manually.
90
+ - **README "What's New" Rule**:
91
+ - Keep only the current release/feature highlights in `README.md` under `## ๐Ÿš€ What's New`.
92
+ - Do NOT accumulate historical version blocks (`### vX.Y.Z`).
93
+ - Do NOT write version headers (`### vX.Y.Z`) inside `## ๐Ÿš€ What's New`; format as a clean, plain-English bullet list understandable to non-technical users.
94
+ - Detailed versioned change history lives strictly in `CHANGELOG.md`.
90
95
 
91
96
  ---
92
97
 
@@ -52,3 +52,16 @@ To balance velocity with rigor, overhead is strictly proportional to task risk:
52
52
  - **Archive Work Artifacts**: Move completed plans or temporary scratchpads into `.agents/archive/` using the timestamped format `[title]-[YYYYMMDD-HHMMSS].md`.
53
53
  - **DOX Pass**: Update `./.agents/context/current.md` and the nearest owning `AGENTS.md`.
54
54
  - **Memory Update**: Persist newly confirmed invariants or architectural decisions into `./.memory`.
55
+
56
+ ---
57
+
58
+ ## 3. Mandatory PR & Post-Merge Pipeline (principal rule, 2026-10-15)
59
+
60
+ 1. **One PR per feature.** Every feature or fix lands on its own branch (`feat/*`, `fix/*`) off `dev`. Never commit directly to `main`, `master`, or `dev`.
61
+ 2. **Per-phase subagent worktrees.** Every phase starts by dispatching multiple subagents, each in its own worktree, doing the work there. The orchestrator reconciles terminal results back into the feature branch. Execution model: one branch per ticket (`fix/T-xxx`), full gate per commit (`bun test` + `tsc --noEmit` + `bun run build`).
62
+ 3. **After feature work merges to `dev`, run in order, end-to-end:**
63
+ a. `updatedocs` skill โ€” complete mode (docโ†”code drift sync; CHANGELOG/docs alignment).
64
+ b. `updateagents` skill โ€” all modes (AGENTS.md + `.agents/` context synchronization).
65
+ c. `git` skill โ€” end-to-end, **stopping before release**. Release cutting is principal-confirmed only; never auto-release.
66
+ 4. **Docs upkeep.** Update CHANGELOG.md, CONTRIBUTING.md, and credits (package.json author/contributors, README credits) whenever required: behavioral changes, new dependencies, new contributors, process changes.
67
+ 5. Gates unchanged: green per commit, Why/What/Verification commit bodies, zero secret exposure, English only.
package/README.md CHANGED
@@ -1,7 +1,14 @@
1
- # <h1> ๐Ÿง  Muse Memory</h1>
2
-
3
1
  <div align="center">
4
2
 
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%" />
5
+ </a>
6
+
7
+ <br />
8
+ <br />
9
+
10
+ # ๐Ÿง  Muse Memory
11
+
5
12
  ![GitHub Release](https://img.shields.io/github/v/release/harshsinghmp/musememory?style=for-the-badge&logo=github&color=2563EB)
6
13
  ![NPM Version](https://img.shields.io/npm/v/musememory?style=for-the-badge&logo=npm&color=CB3837)
7
14
  ![Bun](https://img.shields.io/badge/Bun-v1.4.0_(Latest)-black?style=for-the-badge&logo=bun)
@@ -13,49 +20,55 @@
13
20
  ![AST Graph](https://img.shields.io/badge/AST-CodeGraph_%26_Graphify-orange?style=for-the-badge&logo=diagram-project&logoColor=white)
14
21
  ![Architecture](https://img.shields.io/badge/Storage-Zero--Daemon_%2F_Local--First-0D9488?style=for-the-badge)
15
22
 
16
- ![CI Tests](https://img.shields.io/badge/Tests-497%20Passed-brightgreen?style=for-the-badge&logo=checkmarx)
23
+ ![CI Tests](https://img.shields.io/badge/Tests-1285%20Passed-brightgreen?style=for-the-badge&logo=checkmarx)
17
24
  ![Security](https://img.shields.io/badge/Security-Vibeguard_Zero--Leak-DC2626?style=for-the-badge&logo=shield)
18
- ![Agent Coverage](https://img.shields.io/badge/Agents-80+_Supported-4F46E5?style=for-the-badge&logo=openai)
25
+ ![Agent Coverage](https://img.shields.io/badge/Agents-52_Verified-4F46E5?style=for-the-badge&logo=openai)
19
26
  ![License](https://img.shields.io/badge/License-MIT-9333EA?style=for-the-badge)
20
27
 
21
- **Autonomous, Self-Organizing Cognitive Memory System for AI Agents & Agency Networks**
28
+ **Persistent, local-first memory for AI agents and the projects they work on.**
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)
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%" />
33
+
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).*
22
36
 
23
37
  </div>
24
38
 
25
39
  ---
26
40
 
27
- ## ๐Ÿš€ What's New
28
-
29
- ### v2.2.0
30
- - **Unified Code & Memory Impact Analysis**: Pre-flight blast radius analysis evaluating AST callers, test suites, governing ADRs, negative warnings, and risk levels (`memory code-impact` / `muse_code_impact`).
31
- - **PR & Change Context Generator**: Automatically turns git diffs into rich, memory-grounded GitHub PR descriptions linking touched anchors and active constraints (`memory pr-context` / `muse_pr_context`).
32
- - **Interactive Code Anchor Reconciler**: Audits and repairs code anchors across memories, pruning dead references and updating structural hashes (`memory reconcile` / `muse_reconcile_anchors`).
33
- - **Latency & Quality Telemetry Suite**: Benchmarks microsecond hot caches, FTS5 BM25 search, knapsack token packing, and ROI in a clean ASCII scoreboard (`memory benchmark`).
34
- - **Expanded Agent Skills**: Shipped turnkey skills for `muse-health`, `muse-drift`, `muse-why`, `muse-sync`, and `muse-mesh`.
35
-
36
- ### v2.1.0
37
- - **Cross-Agent Knowledge Sync & P2P Gossip Protocol**: Sealed portable `SyncPacket` engine with SHA-256 integrity and zero-daemon shared filesystem gossip pool (`memory sync` / `muse_sync_*`).
38
- - **Web Observability Studio**: Embedded visual dashboard (`memory studio` / `memory ui`) with interactive 5-pillar health, ADR registry, code drift inspector, and sync controls.
39
- - **Monorepo & Multi-Repo Mesh**: Automatic workspace discovery (pnpm, npm, bun, lerna) with cross-project memory queries and shared constraint propagation (`memory mesh` / `muse_mesh_*`).
40
-
41
- ### v2.0.0
42
- - **5-Pillar Project Health Gate**: Architectural health gate evaluating store integrity, code anchors, doc-code alignment, negative sentry, and technical debt (`memory health` / `muse_health`).
43
- - **Cognitive "Why" Reasoner**: Reconstructs historical code evolution, bug workarounds, and trade-offs before refactoring (`muse_why`).
44
- - **Living Architecture Decision Records (ADRs)**: Queryable ADRs with options, consequences, native code anchors, and supersession lineage (`memory adr` / `memory_adr_record`).
45
- - **Doc โŸท Code Drift Engine**: Continuously audits documentation against AST code implementations across 6 drift states (`memory drift` / `memory_drift_audit`).
46
- - **Unified Context Orchestrator & MCP Profiles**: Single-call fused context injection with knapsack token packing (`muse_context`) and task-specific tool profiles.
47
- - **Native Structural Code Anchors**: Line-independent structural SHA-256 hashing for files, symbols, and routes.
48
- - **Scoped Promotion & Archival Lifecycle**: 3-tier promotion ladder (`local` โ†’ `project` โ†’ `global`) and cold/dormant/archived storage tiers.
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.
49
60
 
50
61
  ---
51
62
 
52
63
  ## ๐Ÿ“‘ Table of Contents
53
64
 
54
- - [๐Ÿš€ What's New](#-whats-new)
55
- - [๐Ÿ’ก What is Muse Memory? (TL;DR)](#-what-is-muse-memory-tldr)
56
- - [โœจ Key Feature Highlights](#-key-feature-highlights)
57
- - [โšก Quick Start & Installation](#-quick-start--installation)
65
+ - [What changed](#what-changed)
66
+ - [What Muse Memory does](#what-muse-memory-does)
67
+ - [Key capabilities](#key-capabilities)
68
+ - [Start with one command](#start-with-one-command)
69
+ - [๐Ÿ“– Documentation & User Guides](#-documentation--user-guides)
58
70
  - [๐Ÿ”„ Upgrading & Self-Healing Maintenance](#-upgrading--self-healing-maintenance)
71
+ - [๐Ÿ‘ฅ Team & Multi-Member Setup](#-team--multi-member-setup)
59
72
  - [๐Ÿง  Shipped Agent Skills (`.agents/skills/`)](#-shipped-agent-skills-agentsskills)
60
73
  - [๐Ÿ‘ค 5 Role Archetypes (`USER.md`)](#-5-zero-fingerprint-role-archetypes-usermd)
61
74
  - [๐Ÿ”Œ Full CLI Command Matrix](#-full-cli-command-matrix)
@@ -66,11 +79,11 @@
66
79
 
67
80
  ---
68
81
 
69
- ## ๐Ÿ’ก What is Muse Memory? (TL;DR)
82
+ ## What Muse Memory does
70
83
 
71
- Most AI chatbots and coding assistants have **"goldfish memory"**: every time you close a session, switch tasks, or start a new prompt, they forget your project invariants, coding habits, and the hard-fought bug workarounds you solved yesterday.
84
+ AI agents lose project context when a session ends. Muse Memory keeps that context on your machine, where your tools can retrieve it during the next task.
72
85
 
73
- **Muse Memory gives your AI assistants a persistent, self-organizing cognitive notebook directly on your machine.**
86
+ Store working constraints, decisions, handoffs, and verified facts in one local memory layer. SQLite handles retrieval, while readable Markdown and YAML files keep the important context inspectable in Git.
74
87
 
75
88
  ```
76
89
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
@@ -114,28 +127,29 @@ Most AI chatbots and coding assistants have **"goldfish memory"**: every time yo
114
127
 
115
128
  ---
116
129
 
117
- ## โœจ Key Feature Highlights
130
+ ## Key capabilities
118
131
 
119
132
  - ๐Ÿ‘ค **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.
120
133
  - ๐Ÿ“ **Real-Time Active Constraints (`CURRENT.md`)**: Bi-temporal working constraints and invariant tracking synchronized on every mutation to eliminate amnesia during task handoffs.
121
134
  - ๐Ÿ’พ **SQLite Primary + Dual-Persisted YAML Mirror**: Sub-millisecond queries via SQLite with transparent human-readable `.yaml` files in `.memory/memories/` for seamless Git diffs.
122
135
  - โš–๏ธ **Token Knapsack Retrieval**: Multi-factor scoring (applicability, verification bonus, AST graph overlap, time decay, due date urgency) tightly packed under prompt token ceilings.
136
+ - ๐Ÿงญ **Optional Local Semantic Recall (`memory embed`)**: Point `retrieval.embedderUrl` at any OpenAI-compatible `/v1/embeddings` endpoint (llama.cpp server, Ollama, or hosted) to add a semantic cosine dimension to ranking. Embeddings are cached as float32 blobs inside SQLite, so nothing changes and no network call happens until you configure an endpoint.
123
137
  - ๐ŸŒ **Pluggable AST CodeGraph & Symbol Indexing**: Native CodeGraph & Graphify integration that indexes codebase AST symbols, auto-tags memories, and awards graph overlap bonuses.
124
138
  - ๐ŸŒณ **Hierarchical Tree Retrieval & Progressive Disclosure**: Sharded tree partitions with 3-tier progressive disclosure (`L1` abstracts, `L2` summaries, `L3` full context) for massive knowledge bases.
125
139
  - ๐Ÿ“š **Obsidian Markdown Wiki & Entity Graph Compiler**: Dual-persistence knowledge compounding compiling linked Markdown pages (`wiki/concepts/`, `wiki/entities/`) with bidirectional `[[wikilinks]]`.
126
140
  - ๐Ÿ›ก๏ธ **Vibeguard Zero-Leakage Secret Scanner**: Regex-powered memory defense intercepting and rejecting API keys, AWS credentials, private keys, database URIs, and passwords before writes.
127
- - ๐Ÿ”Œ **Zero-Permission Auto-Wiring (80+ Agents)**: Automatically detects and wires Claude Code, Cursor, Antigravity, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, etc.
141
+ - ๐Ÿ”Œ **Zero-Permission Auto-Wiring (52 Agents)**: Automatically detects and wires Claude Code, Cursor, Antigravity, Windsurf, OpenCode, Codex, Gemini CLI, Hermes, etc.
128
142
  - ๐Ÿ”„ **Universal Memory Migrator (29 Engines)**: One-click migration from Letta, Mem0, Supermemory, Cognee, Beads, Mnemosyne, GBrain, and more with state preservation.
129
143
  - ๐ŸŽจ **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.
130
144
  - โฐ **Proactive Nudges & Routines Scheduler**: Cron-invoked daily briefings, staleness policy tracking, and ambient open-loop trackers with zero resident background daemons.
131
145
 
132
146
  ---
133
147
 
134
- ## โšก Quick Start & Installation
148
+ ## Start with one command
135
149
 
136
150
  > [!TIP]
137
- > ### โšก Instant 5-Second Setup (Zero-Install NPX / BunX)
138
- > **No global installation required.** Set up your memory system and wire your AI agents with a single command:
151
+ > ### Install without a global package
152
+ > Set up the memory store and connect your local AI agents with one command:
139
153
  >
140
154
  > ```bash
141
155
  > npx musememory install
@@ -169,8 +183,24 @@ git clone https://github.com/harshsinghmp/musememory.git && cd musememory
169
183
  docker build -t musememory .
170
184
  ```
171
185
 
172
- > [!NOTE]
173
- > ### ๐Ÿ“Š How does Muse Memory compare to other solutions?
186
+ ---
187
+
188
+ ## ๐Ÿ“– Documentation & User Guides
189
+
190
+ Explore comprehensive documentation tailored for both solo developers and engineering leadership:
191
+
192
+ | Guide | Intent & Framework | Target Audience |
193
+ | :--- | :--- | :--- |
194
+ | ๐Ÿง  **[Core Concepts & Architecture](docs/concepts.md)** | **ACCA Framework**: Explains the guarded 7-state lifecycle machine, dual-scope engine, knapsack scoring, and zero-daemon architecture. | Tech Leads, Architects, Evaluators |
195
+ | ๐Ÿ›ก๏ธ **[Failure Attribution & Negative Mining](docs/failure-attribution-and-negative-mining.md)** | **QUEST Framework**: Scoped attribution, decaying strikes, trajectory fix-pair mining, HOT.md compounding, and logarithmic frequency ranking. | AI Engineers, Systems Architects |
196
+ | ๐Ÿ› ๏ธ **[Developer Daily User Guide](docs/user-guide.md)** | **QUEST Framework**: The 3-phase daily pair-programming loop (`/muse-ground` โ†’ `CURRENT.md` โ†’ `/muse-capture`). | Solo Developers, Daily AI Coders |
197
+ | โšก **[Retrieval Performance & Guardrails](docs/retrieval-performance-and-limits.md)** | **QUEST Framework**: WeakMap token sets, memoized runtime anchors, dirty-gating, limit clamping, and dry-run safety. | Platform Engineers, AI Architects |
198
+ | ๐Ÿ›๏ธ **[Living Architecture & Drift Auditing](docs/living-architecture-and-drift.md)** | **ACCA Framework**: Binding ADRs to line-independent code anchors, write-time `base_path` normalization, and pure read-path drift sentry. | System Architects, Tech Leads |
199
+ | โšก **[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
+ | ๐Ÿ‘ฅ **[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
+ | ๐Ÿ›๏ธ **[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 |
203
+
174
204
  ---
175
205
 
176
206
  ## ๐Ÿ”„ Upgrading & Self-Healing Maintenance
@@ -190,7 +220,7 @@ npx musememory upgrade
190
220
  #### What `memory upgrade` automatically handles:
191
221
  1. **Package Manager Auto-Detection**: Detects whether your workstation runs `bun`, `npm`, `pnpm`, or `yarn` and pulls the latest published binary.
192
222
  2. **Self-Healing Storage Repair**: Recovers missing `.memory/`, `CURRENT.md` constraints, or `USER.md` persona files if corrupted or deleted.
193
- 3. **80+ 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.
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.
194
224
  4. **AST Symbol Graph Re-Indexing**: Re-synchronizes CodeGraph/Graphify symbol caches under `.memory/graph-symbols.json`.
195
225
 
196
226
  ---
@@ -206,9 +236,15 @@ npx musememory upgrade
206
236
  | **NPX** (Zero-Install) | `npx musememory@latest upgrade` | `npx musememory doctor` |
207
237
 
208
238
  ```bash
209
- # Check if updates are available without applying
239
+ # Check if updates are available without applying (exits 0 if up to date, 1 if registry fails)
210
240
  memory upgrade --check
211
241
 
242
+ # Enforce up-to-date installation in CI pipelines (exits 1 if update is available)
243
+ memory upgrade --check --strict
244
+
245
+ # Preview upgrade actions in dry-run mode
246
+ memory upgrade --dry-run
247
+
212
248
  # Force re-installation and complete platform re-wiring
213
249
  memory upgrade --force
214
250
  ```
@@ -238,7 +274,7 @@ npx musememory stats
238
274
  npx musememory briefing
239
275
  ```
240
276
 
241
- ### 3๏ธโƒฃ Connect Coding Agents (80+ Platforms)
277
+ ### 3๏ธโƒฃ Connect Coding Agents (52 Platforms)
242
278
  ```bash
243
279
  # Scan workstation for installed AI coding agents
244
280
  npx musememory agents
@@ -252,6 +288,10 @@ npx musememory connect cursor
252
288
  npx musememory connect antigravity
253
289
  npx musememory connect windsurf
254
290
  npx musememory connect opencode
291
+
292
+ # Claude Code lives under ~/.claude*, so it needs an explicit harness opt-in.
293
+ # Without this flag the Claude config is reported as skipped and nothing is written.
294
+ npx musememory connect claude-code --harness claude
255
295
  ```
256
296
 
257
297
  ### 4๏ธโƒฃ Clean Uninstallation & Removal
@@ -262,7 +302,7 @@ npx musememory connect opencode
262
302
  Muse Memory can be cleanly and completely removed with zero trace left on your machine.
263
303
 
264
304
  #### Step 1: Unwire Coding Agents (Zero-Trace MCP Cleanup)
265
- Remove the memory MCP server configuration from all 80+ detected agent config files (`cursor`, `claude-code`, `antigravity`, `windsurf`, `opencode`, `codex`, etc.):
305
+ Remove the memory MCP server configuration from all 52 detected agent config files (`cursor`, `claude-code`, `antigravity`, `windsurf`, `opencode`, `codex`, etc.):
266
306
 
267
307
  ```bash
268
308
  # Preview changes before modifying any configuration
@@ -314,6 +354,42 @@ If you installed the pre-commit transcript harvester hook or injected agent prom
314
354
 
315
355
  ---
316
356
 
357
+ ## ๐Ÿ‘ฅ Team & Multi-Member Setup
358
+
359
+ Deploy a shared persistent cognitive memory layer across your entire engineering team. All team members' coding agents (Cursor, Opencode, Claude Code, Antigravity, Windsurf) connect to a single host server running in-process SQLite over **MCP Streamable HTTP (2025-06-18)** with Bearer token authentication.
360
+
361
+ ```
362
+ Central Team Server (`team.db` + `CURRENT.md`)
363
+ โ–ฒ
364
+ โ”‚ MCP Streamable HTTP (Bearer Auth)
365
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
366
+ Cursor Opencode Antigravity Claude Code
367
+ ```
368
+
369
+ ### 1-Line Team Server Start
370
+ Run on your team's internal VM, build server, or workstation:
371
+ ```bash
372
+ # Start server with individual or shared Bearer auth tokens
373
+ musememory serve --port 31338 --host 0.0.0.0 --tokens alice:tok_alice_123,bob:tok_bob_456
374
+ ```
375
+
376
+ ### 1-Line Client Recipe Generator
377
+ Generate ready-to-paste configurations tailored to each engineer's specific editor:
378
+ ```bash
379
+ # Interactive editor selector
380
+ musememory connect
381
+
382
+ # Or output directly into console:
383
+ musememory connect --recipe --endpoint http://192.168.1.50:31338/mcp --token tok_alice_123
384
+ ```
385
+
386
+ ### Complete Getting Started & Architecture Guide
387
+ For full server setup (systemd service, Docker, reverse proxy), editor-specific client JSON configs, team memory scoping rules (`team.db` vs personal `tenant_<id>.db`), and prompt injection defenses, see:
388
+ - ๐Ÿ‘‰ **[Team Quickstart & Deployment Guide](docs/team-getting-started.md)** โ€” Step-by-step setup for Team Leads and Engineers.
389
+ - ๐Ÿ‘‰ **[Team Slice Wiring & Architecture Spec](docs/architecture/team-slice-wiring.md)** โ€” Technical deep dive into in-process SQLite vs networked mounts.
390
+
391
+ ---
392
+
317
393
  ## ๐Ÿ›๏ธ System Capabilities & Architecture
318
394
 
319
395
  ### 1. Dual-Scope Storage (Local vs Global)
@@ -339,6 +415,8 @@ Retrieval dynamically ranks knowledge using a calibrated multi-factor formula:
339
415
  $$\text{Score} = 1.0 \times \text{Applicability} + \text{StatusBonus} + \text{VerificationBonus} + \text{GraphBonus} + \text{SalienceBonus} + 0.3 \times e^{-\frac{\Delta t}{90\text{ days}}}$$
340
416
  The engine greedily packs ranked memories up to the requested `--token-budget` to guarantee zero prompt overflow.
341
417
 
418
+ When a local embedder is configured (`retrieval.embedderUrl`), a semantic cosine dimension (`0.5 ร—` cosine similarity) joins the ranking, so paraphrases match even without shared trigrams. Leave the embedder unset and ranking is identical to the lexical behaviour above โ€” no network calls, no new dependency.
419
+
342
420
  ### 4. Real-Time `CURRENT.md` Synchronization & Session Handoff
343
421
  - Active constraint memories automatically mirror into `CURRENT.md`.
344
422
  - In-flight task states, agent checkpoints, and active loops persist across terminal restarts, context compactions, and sudden interruptions.
@@ -360,7 +438,7 @@ memory migrate --provider mem0
360
438
  memory migrate --provider beads
361
439
  memory migrate --all
362
440
  ```
363
- > See [`musememory-comparison.html`](musememory-comparison.html) for the full table-free 30-system architectural dossier.
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).
364
442
 
365
443
  ---
366
444
 
@@ -418,7 +496,7 @@ When registered as an MCP server, `musememory` exposes the following native tool
418
496
  | `muse_mesh_query` | **Cross-Project Query** | Queries memories across the entire workspace mesh with origin package provenance tags. |
419
497
  | `muse_mesh_audit` | **Contract Verification** | Audits cross-package dependency contracts, entrypoint exports, and cross-repo code anchors. |
420
498
  | `muse_mesh_link` | **Mesh Linking** | Explicitly links or unlinks external repository paths into the workspace mesh registry. |
421
- | `profile_list` / `profile_switch` | **Tool Management** | Lists and switches task-focused MCP profiles (`core`, `coding`, `debugging`, `review`, `architecture`, `maintenance`). |
499
+ | `profile_list` | **Tool Management** | Lists task-focused MCP profiles (`core`, `coding`, `debugging`, `review`, `architecture`, `maintenance`). |
422
500
  | `get_context` | **Session Start** | Fetches Top-$K$ ranked memories, `USER.md` profile, active `CURRENT.md` constraints, and supports `--tier 0|1|2`. |
423
501
  | `search` | **Investigation** | Searches memory units with query, token budget, project, type, and verification filters. |
424
502
  | `memory_current` | **Constraints** | Reads or appends active project working constraints (`CURRENT.md`). |
@@ -449,7 +527,7 @@ When registered as an MCP server, `musememory` exposes the following native tool
449
527
  | `memory_harvest` | **Session End** | Distills conversation turns into structured fix/outcome units. |
450
528
  | `memory_import_transcript` | **Transcript Sync** | Ingests `.jsonl` transcript and auto-binds memories to session nodes. |
451
529
  | `memory_audit` | **Governance** | Queries the append-only operational audit ledger. |
452
- | `memory_detect_agents` | **Onboarding** | Scans workstation for 80+ coding agent installations. |
530
+ | `memory_detect_agents` | **Onboarding** | Scans workstation for 52 coding agent installations. |
453
531
  | `memory_connect` | **Setup** | Auto-wires MCP server into detected installed agents with zero permissions. |
454
532
  | `memory_detect_providers` | **Migration** | Scans machine for 29 external memory formats. |
455
533
  | `memory_migrate` | **Migration** | Ingests external memories with state preservation and secret scrubbing. |
@@ -462,7 +540,7 @@ When registered as an MCP server, `musememory` exposes the following native tool
462
540
  </details>
463
541
 
464
542
  <details>
465
- <summary><b>๐Ÿ’ป Full CLI Command Matrix (47 Commands)</b> โ€” <i>Click to expand</i></summary>
543
+ <summary><b>๐Ÿ’ป Full CLI Command Matrix (54 Commands)</b> โ€” <i>Click to expand</i></summary>
466
544
 
467
545
  ```bash
468
546
  memory <command> [arguments] [flags] # alias: musememory
@@ -481,14 +559,15 @@ memory <command> [arguments] [flags] # alias: musememory
481
559
  | `uninstall` | `[agent] [--purge] [--dry-run]` | **Clean uninstaller**: unwires MCP configs (and optionally purges `.memory/`). |
482
560
  | `init` | `[path] [--legacy] [--global]` | Initialize `.memory/` directory and SQLite database. |
483
561
  | `user` | `[get\|init\|set] [args] [--global]` | Manage `USER.md` persona & preferences across 5 clean archetypes. |
484
- | `connect` | `[agent] [--all] [--force] [--dry-run]` | Auto-wire MCP into detected installed agents with zero permissions. |
485
- | `agents` | *(none)* | Scan workstation for 80+ coding agents (Cursor, Claude Code, Antigravity, etc.). |
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.). |
486
564
  | `detect` | *(none)* | Scan workstation and local workspace for 29 external memory systems. |
487
565
  | `migrate` | `[--provider P] [--all] [--dry-run] [--overwrite]` | Migrate memories into Muse Memory preserving active/archived state. |
488
566
  | `context` | `[query] [--token-budget N] [--limit N] [--tier 0\|1\|2]` | Retrieve Top-$K$ ranked active context for prompt injection. |
489
567
  | `search` | `<query> [--limit N] [--token-budget N] [--type T]` | Ranked multi-factor token search with score breakdown. |
490
568
  | `search-transcript` | `<query> [file.jsonl] [--window N]` | Full-text search past transcripts with dialogue context windows. |
491
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. |
492
571
  | `harvest` | `<text\|file> --project P [--confirmed]` | Distill conversation turns into structured fix/decision memory units. |
493
572
  | `import-transcript` | `<file.jsonl> [--project P] [--confirmed]` | Ingest raw `.jsonl` session transcripts from coding agents. |
494
573
  | `capture` / `propose` | `<text> --project P [--title T] [--type T]` | Propose a memory entry with inline Vibeguard secret inspection. |
@@ -518,6 +597,11 @@ memory <command> [arguments] [flags] # alias: musememory
518
597
  | `settings` | `get\|set\|reset\|export\|import` | Manage unified settings across retrieval, wiki, PageIndex, and UI. |
519
598
  | `current` | `get` / `set <text> --project P` | Read or append hard constraints in `.memory/CURRENT.md`. |
520
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. |
521
605
  | `mcp` | *(none)* | Start stdio MCP server (Protocol 2024-11-05). |
522
606
 
523
607
  </details>
@@ -574,11 +658,14 @@ memory user set "- Prefers TypeScript, Bun, and ultra terse responses"
574
658
 
575
659
  ```bash
576
660
  bun install
577
- bun test # 497 passed across 84 test files (2190 assertions)
661
+ bun test # 1309 pass, 0 fail, 5872 assertions across 203 files
578
662
  bun run typecheck # 0 static type errors
579
663
  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)
580
665
  ```
581
666
 
667
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the branch/PR model, the per-commit gate, and the post-merge sequence.
668
+
582
669
  ---
583
670
 
584
671
  ## ๐Ÿ”ฎ Sprint & Roadmap Board
@@ -641,7 +728,7 @@ Muse Memory features are developed in structured sprints moving across 4 determi
641
728
  | โœ… | Multi-Hop Causality Graph Tracer (`memory trace <id>`) | [#3](https://github.com/harshsinghmp/musememory/issues/3) |
642
729
  | โœ… | In-Place Core Memory Partitioning (`memory core`) | [#4](https://github.com/harshsinghmp/musememory/issues/4) |
643
730
  | โœ… | Automated Post-Turn Transcript Harvester Hook | [#5](https://github.com/harshsinghmp/musememory/issues/5) |
644
- | โœ… | Real-Time Agency WebSocket Hub (`memory daemon`) | [#6](https://github.com/harshsinghmp/musememory/issues/6) |
731
+ | โœ… | Real-Time Agency SSE Hub (`memory daemon`) | [#6](https://github.com/harshsinghmp/musememory/issues/6) |
645
732
  | โœ… | Local Offline Hybrid Vector Engine | [#7](https://github.com/harshsinghmp/musememory/issues/7) |
646
733
  | โœ… | Delete Deprecated `MemoryStore` Shim | [#8](https://github.com/harshsinghmp/musememory/issues/8) / v1.5.0 |
647
734
  | โœ… | Self-Evolving Skill Distillation | [#9](https://github.com/harshsinghmp/musememory/issues/9) |
@@ -656,4 +743,4 @@ Muse Memory features are developed in structured sprints moving across 4 determi
656
743
 
657
744
  ## ๐Ÿ“œ License
658
745
 
659
- MIT License. Built for the AI Developer Ecosystem.
746
+ MIT License. Built for the AI Developer Ecosystem.