superlocalmemory 2.7.6 → 2.8.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 (170) hide show
  1. package/CHANGELOG.md +120 -155
  2. package/README.md +115 -89
  3. package/api_server.py +2 -12
  4. package/docs/PATTERN-LEARNING.md +64 -199
  5. package/docs/example_graph_usage.py +4 -6
  6. package/install.sh +59 -0
  7. package/mcp_server.py +83 -7
  8. package/package.json +1 -8
  9. package/scripts/generate-thumbnails.py +3 -5
  10. package/skills/slm-build-graph/SKILL.md +1 -1
  11. package/skills/slm-list-recent/SKILL.md +1 -1
  12. package/skills/slm-recall/SKILL.md +1 -1
  13. package/skills/slm-remember/SKILL.md +1 -1
  14. package/skills/slm-show-patterns/SKILL.md +1 -1
  15. package/skills/slm-status/SKILL.md +1 -1
  16. package/skills/slm-switch-profile/SKILL.md +1 -1
  17. package/src/agent_registry.py +7 -18
  18. package/src/auth_middleware.py +3 -5
  19. package/src/auto_backup.py +3 -7
  20. package/src/behavioral/__init__.py +49 -0
  21. package/src/behavioral/behavioral_listener.py +203 -0
  22. package/src/behavioral/behavioral_patterns.py +275 -0
  23. package/src/behavioral/cross_project_transfer.py +206 -0
  24. package/src/behavioral/outcome_inference.py +194 -0
  25. package/src/behavioral/outcome_tracker.py +193 -0
  26. package/src/behavioral/tests/__init__.py +4 -0
  27. package/src/behavioral/tests/test_behavioral_integration.py +108 -0
  28. package/src/behavioral/tests/test_behavioral_patterns.py +150 -0
  29. package/src/behavioral/tests/test_cross_project_transfer.py +142 -0
  30. package/src/behavioral/tests/test_mcp_behavioral.py +139 -0
  31. package/src/behavioral/tests/test_mcp_report_outcome.py +117 -0
  32. package/src/behavioral/tests/test_outcome_inference.py +107 -0
  33. package/src/behavioral/tests/test_outcome_tracker.py +96 -0
  34. package/src/cache_manager.py +4 -6
  35. package/src/compliance/__init__.py +48 -0
  36. package/src/compliance/abac_engine.py +149 -0
  37. package/src/compliance/abac_middleware.py +116 -0
  38. package/src/compliance/audit_db.py +215 -0
  39. package/src/compliance/audit_logger.py +148 -0
  40. package/src/compliance/retention_manager.py +289 -0
  41. package/src/compliance/retention_scheduler.py +186 -0
  42. package/src/compliance/tests/__init__.py +4 -0
  43. package/src/compliance/tests/test_abac_enforcement.py +95 -0
  44. package/src/compliance/tests/test_abac_engine.py +124 -0
  45. package/src/compliance/tests/test_abac_mcp_integration.py +118 -0
  46. package/src/compliance/tests/test_audit_db.py +123 -0
  47. package/src/compliance/tests/test_audit_logger.py +98 -0
  48. package/src/compliance/tests/test_mcp_audit.py +128 -0
  49. package/src/compliance/tests/test_mcp_retention_policy.py +125 -0
  50. package/src/compliance/tests/test_retention_manager.py +131 -0
  51. package/src/compliance/tests/test_retention_scheduler.py +99 -0
  52. package/src/db_connection_manager.py +2 -12
  53. package/src/embedding_engine.py +61 -669
  54. package/src/embeddings/__init__.py +47 -0
  55. package/src/embeddings/cache.py +70 -0
  56. package/src/embeddings/cli.py +113 -0
  57. package/src/embeddings/constants.py +47 -0
  58. package/src/embeddings/database.py +91 -0
  59. package/src/embeddings/engine.py +247 -0
  60. package/src/embeddings/model_loader.py +145 -0
  61. package/src/event_bus.py +3 -13
  62. package/src/graph/__init__.py +36 -0
  63. package/src/graph/build_helpers.py +74 -0
  64. package/src/graph/cli.py +87 -0
  65. package/src/graph/cluster_builder.py +188 -0
  66. package/src/graph/cluster_summary.py +148 -0
  67. package/src/graph/constants.py +47 -0
  68. package/src/graph/edge_builder.py +162 -0
  69. package/src/graph/entity_extractor.py +95 -0
  70. package/src/graph/graph_core.py +226 -0
  71. package/src/graph/graph_search.py +231 -0
  72. package/src/graph/hierarchical.py +207 -0
  73. package/src/graph/schema.py +99 -0
  74. package/src/graph_engine.py +45 -1451
  75. package/src/hnsw_index.py +3 -7
  76. package/src/hybrid_search.py +36 -683
  77. package/src/learning/__init__.py +27 -12
  78. package/src/learning/adaptive_ranker.py +50 -12
  79. package/src/learning/cross_project_aggregator.py +2 -12
  80. package/src/learning/engagement_tracker.py +2 -12
  81. package/src/learning/feature_extractor.py +175 -43
  82. package/src/learning/feedback_collector.py +7 -12
  83. package/src/learning/learning_db.py +180 -12
  84. package/src/learning/project_context_manager.py +2 -12
  85. package/src/learning/source_quality_scorer.py +2 -12
  86. package/src/learning/synthetic_bootstrap.py +2 -12
  87. package/src/learning/tests/__init__.py +2 -0
  88. package/src/learning/tests/test_adaptive_ranker.py +2 -6
  89. package/src/learning/tests/test_adaptive_ranker_v28.py +60 -0
  90. package/src/learning/tests/test_aggregator.py +2 -6
  91. package/src/learning/tests/test_auto_retrain_v28.py +35 -0
  92. package/src/learning/tests/test_e2e_ranking_v28.py +82 -0
  93. package/src/learning/tests/test_feature_extractor_v28.py +93 -0
  94. package/src/learning/tests/test_feedback_collector.py +2 -6
  95. package/src/learning/tests/test_learning_db.py +2 -6
  96. package/src/learning/tests/test_learning_db_v28.py +110 -0
  97. package/src/learning/tests/test_learning_init_v28.py +48 -0
  98. package/src/learning/tests/test_outcome_signals.py +48 -0
  99. package/src/learning/tests/test_project_context.py +2 -6
  100. package/src/learning/tests/test_schema_migration.py +319 -0
  101. package/src/learning/tests/test_signal_inference.py +11 -13
  102. package/src/learning/tests/test_source_quality.py +2 -6
  103. package/src/learning/tests/test_synthetic_bootstrap.py +3 -7
  104. package/src/learning/tests/test_workflow_miner.py +2 -6
  105. package/src/learning/workflow_pattern_miner.py +2 -12
  106. package/src/lifecycle/__init__.py +54 -0
  107. package/src/lifecycle/bounded_growth.py +239 -0
  108. package/src/lifecycle/compaction_engine.py +226 -0
  109. package/src/lifecycle/lifecycle_engine.py +302 -0
  110. package/src/lifecycle/lifecycle_evaluator.py +225 -0
  111. package/src/lifecycle/lifecycle_scheduler.py +130 -0
  112. package/src/lifecycle/retention_policy.py +285 -0
  113. package/src/lifecycle/tests/__init__.py +4 -0
  114. package/src/lifecycle/tests/test_bounded_growth.py +193 -0
  115. package/src/lifecycle/tests/test_compaction.py +179 -0
  116. package/src/lifecycle/tests/test_lifecycle_engine.py +137 -0
  117. package/src/lifecycle/tests/test_lifecycle_evaluation.py +177 -0
  118. package/src/lifecycle/tests/test_lifecycle_scheduler.py +127 -0
  119. package/src/lifecycle/tests/test_lifecycle_search.py +109 -0
  120. package/src/lifecycle/tests/test_mcp_compact.py +149 -0
  121. package/src/lifecycle/tests/test_mcp_lifecycle_status.py +114 -0
  122. package/src/lifecycle/tests/test_retention_policy.py +162 -0
  123. package/src/mcp_tools_v28.py +280 -0
  124. package/src/memory-profiles.py +2 -12
  125. package/src/memory-reset.py +2 -12
  126. package/src/memory_compression.py +2 -12
  127. package/src/memory_store_v2.py +76 -20
  128. package/src/migrate_v1_to_v2.py +2 -12
  129. package/src/pattern_learner.py +29 -975
  130. package/src/patterns/__init__.py +24 -0
  131. package/src/patterns/analyzers.py +247 -0
  132. package/src/patterns/learner.py +267 -0
  133. package/src/patterns/scoring.py +167 -0
  134. package/src/patterns/store.py +223 -0
  135. package/src/patterns/terminology.py +138 -0
  136. package/src/provenance_tracker.py +4 -14
  137. package/src/query_optimizer.py +4 -6
  138. package/src/rate_limiter.py +2 -6
  139. package/src/search/__init__.py +20 -0
  140. package/src/search/cli.py +77 -0
  141. package/src/search/constants.py +26 -0
  142. package/src/search/engine.py +239 -0
  143. package/src/search/fusion.py +122 -0
  144. package/src/search/index_loader.py +112 -0
  145. package/src/search/methods.py +162 -0
  146. package/src/search_engine_v2.py +4 -6
  147. package/src/setup_validator.py +7 -13
  148. package/src/subscription_manager.py +2 -12
  149. package/src/tree/__init__.py +59 -0
  150. package/src/tree/builder.py +183 -0
  151. package/src/tree/nodes.py +196 -0
  152. package/src/tree/queries.py +252 -0
  153. package/src/tree/schema.py +76 -0
  154. package/src/tree_manager.py +10 -711
  155. package/src/trust/__init__.py +45 -0
  156. package/src/trust/constants.py +66 -0
  157. package/src/trust/queries.py +157 -0
  158. package/src/trust/schema.py +95 -0
  159. package/src/trust/scorer.py +299 -0
  160. package/src/trust/signals.py +95 -0
  161. package/src/trust_scorer.py +39 -697
  162. package/src/webhook_dispatcher.py +2 -12
  163. package/ui/app.js +1 -1
  164. package/ui/js/agents.js +1 -1
  165. package/ui_server.py +2 -14
  166. package/ATTRIBUTION.md +0 -140
  167. package/docs/ARCHITECTURE-V2.5.md +0 -190
  168. package/docs/GRAPH-ENGINE.md +0 -503
  169. package/docs/architecture-diagram.drawio +0 -405
  170. package/docs/plans/2026-02-13-benchmark-suite.md +0 -1349
package/CHANGELOG.md CHANGED
@@ -16,10 +16,41 @@ SuperLocalMemory V2 - Intelligent local memory system for AI coding assistants.
16
16
 
17
17
  ---
18
18
 
19
+ ## [2.8.0] - 2026-02-26
20
+
21
+ **Release Type:** Major Feature Release — "Memory That Manages Itself"
22
+
23
+ SuperLocalMemory now manages its own memory lifecycle, learns from action outcomes, and provides enterprise-grade compliance — all 100% locally on your machine.
24
+
25
+ ### Added
26
+ - **Memory Lifecycle Management** — Memories automatically organize themselves over time based on usage patterns, keeping your memory system fast and relevant
27
+ - **Behavioral Learning** — The system learns what works by tracking action outcomes, extracting success patterns, and transferring knowledge across projects
28
+ - **Enterprise Compliance** — Full access control, immutable audit trails, and retention policy management for GDPR, HIPAA, and EU AI Act
29
+ - **6 New MCP Tools** — `report_outcome`, `get_lifecycle_status`, `set_retention_policy`, `compact_memories`, `get_behavioral_patterns`, `audit_trail`
30
+ - **Improved Search** — Lifecycle-aware recall that automatically promotes relevant memories and filters stale ones
31
+ - **Performance Optimized** — Real-time lifecycle management and access control
32
+
33
+ ### Changed
34
+ - Enhanced ranking algorithm with additional signals for improved relevance
35
+ - Improved search ranking using multiple relevance factors
36
+ - Search results include lifecycle state information
37
+
38
+ ### Fixed
39
+ - Configurable storage limits prevent unbounded memory growth
40
+
41
+ ---
42
+
43
+ ## [2.7.6] - 2026-02-22
44
+
45
+ ### Improved
46
+ - Documentation organization and navigation
47
+
48
+ ---
49
+
19
50
  ## [2.7.4] - 2026-02-16
20
51
 
21
52
  ### Added
22
- - Per-profile learning — each profile has its own preferences and feedback
53
+ - Per-profile learning — each profile learns its own preferences independently
23
54
  - Thumbs up/down and pin feedback on memory cards
24
55
  - Learning data management in Settings (backup + reset)
25
56
  - "What We Learned" summary card in Learning tab
@@ -28,7 +59,6 @@ SuperLocalMemory V2 - Intelligent local memory system for AI coding assistants.
28
59
  - Smarter learning from your natural usage patterns
29
60
  - Recall results improve automatically over time
30
61
  - Privacy notice for all learning features
31
- - Learning and backup databases protected together
32
62
  - All dashboard tabs refresh on profile switch
33
63
 
34
64
  ---
@@ -40,17 +70,14 @@ SuperLocalMemory V2 - Intelligent local memory system for AI coding assistants.
40
70
  - Improved search result relevance across all access methods
41
71
  - Better error handling for optional components
42
72
 
43
- ### Fixed
44
- - Corrected outdated performance references in documentation
45
-
46
73
  ---
47
74
 
48
75
  ## [2.7.1] - 2026-02-16
49
76
 
50
77
  ### Added
51
- - **Learning Dashboard Tab** — New "Learning" tab in the web dashboard showing ranking phase, tech preferences, workflow patterns, source quality, engagement health, and privacy controls
52
- - **Learning API Routes** — `/api/learning/status`, `/api/learning/reset`, `/api/learning/retrain` endpoints for the dashboard
53
- - **One-click Reset** — Reset all learning data directly from the dashboard UI
78
+ - **Learning Dashboard Tab** — View your ranking phase, preferences, workflow patterns, and privacy controls
79
+ - **Learning API** — Endpoints for dashboard learning features
80
+ - **One-click Reset** — Reset all learning data directly from the dashboard
54
81
 
55
82
  ---
56
83
 
@@ -58,55 +85,30 @@ SuperLocalMemory V2 - Intelligent local memory system for AI coding assistants.
58
85
 
59
86
  **Release Type:** Major Feature Release — "Your AI Learns You"
60
87
 
61
- SuperLocalMemory now learns your patterns, adapts to your workflow, and personalizes recall. All processing happens 100% locally — your behavioral data never leaves your machine. GDPR Article 17 compliant by design.
88
+ SuperLocalMemory now learns your patterns, adapts to your workflow, and personalizes recall. All processing happens 100% locally — your behavioral data never leaves your machine.
62
89
 
63
90
  ### Added
64
- - **Adaptive Learning System** — Three-layer learning architecture that detects tech preferences, project context, and workflow patterns across all your projects
65
- - **Personalized Recall Ranking** — Search results re-ranked using learned patterns. Three-phase adaptive system: baseline → rule-based → ML (LightGBM LambdaRank)
66
- - **Synthetic Bootstrap** — ML model works from day 1 by bootstrapping from existing memory patterns. No cold-start degradation.
67
- - **Multi-Channel Feedback** — Tell the system which memories were useful via MCP (`memory_used`), CLI (`slm useful`), or dashboard clicks
68
- - **Source Quality Scoring** — Learns which tools produce the most useful memories using Beta-Binomial Bayesian scoring
69
- - **Workflow Pattern Detection** — Detects your coding workflow sequences (e.g., docs architecture → code → test) using time-weighted sliding-window mining
70
- - **Local Engagement Metrics** — Track memory system health locally with zero telemetry (`slm engagement`)
71
- - **Separate Learning Database** — Behavioral data in `learning.db`, isolated from `memory.db`. One-command erasure: `slm learning reset`
72
- - **3 New MCP Tools** — `memory_used` (feedback signal), `get_learned_patterns` (transparency), `correct_pattern` (user control)
73
- - **2 New MCP Resources** — `memory://learning/status`, `memory://engagement`
74
- - **New CLI Commands** — `slm useful`, `slm learning status/retrain/reset`, `slm engagement`, `slm patterns correct`
75
- - **New Skill** — `slm-show-patterns` for viewing learned preferences in Claude Code and compatible tools
76
- - **Auto Python Installation** — `install.sh` now auto-installs Python 3 on macOS (Homebrew/Xcode) and Linux (apt/dnf) for new users
77
- - **319 Tests** — 229 unit tests + 13 E2E + 14 regression + 19 fresh-install + 42 edge-case tests
78
-
79
- ### Research Foundations
80
- - Two-stage BM25 → re-ranker pipeline (eKNOW 2025)
81
- - LightGBM LambdaRank pairwise ranking (Burges 2010, MO-LightGBM SIGIR 2025)
82
- - Three-phase cold-start mitigation (LREC 2024)
83
- - Time-weighted sequence mining (TSW-PrefixSpan, IEEE 2020)
84
- - Bayesian temporal confidence (MACLA, arXiv:2512.18950)
85
- - Privacy-preserving zero-communication feedback design
86
-
87
- ### Changed
88
- - **MCP Tools** — Now 12 tools (was 9), 6 resources (was 4), 2 prompts
89
- - **Skills** — Now 7 universal skills (was 6)
90
- - **install.sh** — Auto-installs Python if missing, installs learning deps automatically
91
- - **DMG Installer** — Updated to v2.7.0 with learning modules
92
-
93
- ### Dependencies (Optional)
94
- - `lightgbm>=4.0.0` — ML ranking (auto-installed, graceful fallback if unavailable)
95
- - `scipy>=1.9.0` — Statistical functions (auto-installed, graceful fallback if unavailable)
96
-
97
- ### Performance
98
- - Re-ranking adds <15ms latency to recall queries
99
- - Learning DB typically <1MB for 1,000 memories
100
- - Bootstrap model trains in <30 seconds for 1,000 memories
101
- - All BM1-BM6 benchmarks: no regression >10%
91
+ - **Adaptive Learning System** — Detects your tech preferences, project context, and workflow patterns across all your projects
92
+ - **Personalized Recall** — Search results automatically re-ranked based on your learned preferences. Gets smarter over time.
93
+ - **Zero Cold-Start** — Personalization works from day 1 using your existing memory patterns
94
+ - **Multi-Channel Feedback** — Tell the system which memories were useful via MCP, CLI, or dashboard
95
+ - **Source Quality Scoring** — Learns which tools produce the most useful memories
96
+ - **Workflow Detection** — Recognizes your coding workflow sequences and adapts retrieval accordingly
97
+ - **Engagement Metrics** — Track memory system health locally with zero telemetry
98
+ - **Isolated Learning Data** — Behavioral data stored separately from memories. One-command erasure for full GDPR compliance.
99
+ - **3 New MCP Tools** — Feedback signal, pattern transparency, and user correction
100
+ - **2 New MCP Resources** — Learning status and engagement metrics
101
+ - **New CLI Commands** — Learning management, engagement tracking, pattern correction
102
+ - **New Skill** — View learned preferences in Claude Code and compatible tools
103
+ - **Auto Python Installation** — Installer now auto-detects and installs Python for new users
102
104
 
103
105
  ---
104
106
 
105
107
  ## [2.6.5] - 2026-02-16
106
108
 
107
109
  ### Added
108
- - **Interactive Knowledge Graph** - Fully interactive visualization with zoom, pan, and click-to-explore capabilities
109
- - **Mobile & Accessibility Support** - Touch gestures, keyboard navigation, and screen reader compatibility
110
+ - **Interactive Knowledge Graph** Fully interactive visualization with zoom, pan, and click-to-explore
111
+ - **Mobile & Accessibility Support** Touch gestures, keyboard navigation, and screen reader compatibility
110
112
 
111
113
  ---
112
114
 
@@ -115,27 +117,21 @@ SuperLocalMemory now learns your patterns, adapts to your workflow, and personal
115
117
  **Release Type:** Security Hardening & Scalability — "Battle-Tested"
116
118
 
117
119
  ### Added
118
- - **Rate Limiting** - 100 writes/min and 300 reads/min per IP (stdlib-only, no dependencies)
119
- - **API Key Authentication** - Optional API key auth via `~/.claude-memory/api_key` file
120
- - **CI Workflow** - GitHub Actions test pipeline across Python 3.8, 3.10, and 3.12
121
- - **Trust Enforcement** - Agents below 0.3 trust score blocked from write/delete
122
- - **HNSW Vector Index** - O(log n) search with graceful TF-IDF fallback
123
- - **Hybrid Search** - BM25 + Graph + TF-IDF fusion via `SLM_HYBRID_SEARCH=true`
124
- - **SSRF Protection** - Webhook URLs validated against private IP ranges
125
-
126
- ### Changed
127
- - **Graph cap raised to 10,000 memories** (was 5,000) with intelligent random sampling
128
- - **Profile isolation hardened** - All queries enforce `WHERE profile = ?` filtering
129
- - **Bounded write queue** - Max 1,000 pending operations (was unbounded)
130
- - **TF-IDF optimization** - Skip rebuild when memory count changes <5%
131
- - **Error sanitization** - Internal paths and table names stripped from 15 error sites
132
- - **Connection pool capped** - Max 50 read connections
133
-
134
- ### Fixed
135
- - Replaced bare `except:` clauses with specific exception types in hybrid_search.py and cache_manager.py
120
+ - **Rate Limiting** Protection against abuse with configurable thresholds
121
+ - **API Key Authentication** Optional authentication for API access
122
+ - **CI Workflow** Automated testing across multiple Python versions
123
+ - **Trust Enforcement** Untrusted agents blocked from write and delete operations
124
+ - **Advanced Search Index** Faster search at scale with graceful fallback
125
+ - **Hybrid Search** Combined search across multiple retrieval methods
126
+ - **SSRF Protection** Webhook URLs validated against malicious targets
136
127
 
137
- ### Performance
138
- See [wiki Performance Benchmarks](https://superlocalmemory.com/wiki/Performance-Benchmarks) for measured data.
128
+ ### Improved
129
+ - Higher memory graph capacity with intelligent sampling
130
+ - Hardened profile isolation across all queries
131
+ - Bounded resource usage under high load
132
+ - Optimized index rebuilds for large databases
133
+ - Sanitized error messages — no internal details leaked
134
+ - Capped resource pools for stability
139
135
 
140
136
  ---
141
137
 
@@ -143,12 +139,10 @@ See [wiki Performance Benchmarks](https://superlocalmemory.com/wiki/Performance-
143
139
 
144
140
  **Release Type:** Framework Integration — "Plugged Into the Ecosystem"
145
141
 
146
- SuperLocalMemory is now a first-class memory backend for LangChain and LlamaIndex — the two largest AI/LLM frameworks.
147
-
148
142
  ### Added
149
- - **LangChain Integration** - `langchain-superlocalmemory` package for persistent chat history
150
- - **LlamaIndex Integration** - `llama-index-storage-chat-store-superlocalmemory` for ChatMemoryBuffer
151
- - **Session isolation** - Framework memories tagged separately, never appear in normal `slm recall`
143
+ - **LangChain Integration** Persistent chat history for LangChain applications
144
+ - **LlamaIndex Integration** Chat memory storage for LlamaIndex
145
+ - **Session Isolation** Framework memories tagged separately from normal recall
152
146
 
153
147
  ---
154
148
 
@@ -159,44 +153,34 @@ SuperLocalMemory is now a first-class memory backend for LangChain and LlamaInde
159
153
  SuperLocalMemory transforms from passive storage to active coordination layer. Every memory operation now triggers real-time events.
160
154
 
161
155
  ### Added
162
- - **DbConnectionManager** - SQLite WAL mode, write queue, connection pool (fixes "database is locked")
163
- - **Event Bus** - Real-time SSE/WebSocket/Webhook broadcasting with tiered retention (48h/14d/30d)
164
- - **Subscription Manager** - Durable + ephemeral subscriptions with event filters
165
- - **Webhook Dispatcher** - HTTP POST delivery with exponential backoff retry
166
- - **Agent Registry** - Track connected AI agents (protocol, write/recall counters, last seen)
167
- - **Provenance Tracker** - Track memory origin (created_by, source_protocol, trust_score, lineage)
168
- - **Trust Scorer** - Bayesian trust signal collection (silent in v2.5, enforced in v2.6)
169
- - **Dashboard: Live Events tab** - Real-time event stream with filters and stats
170
- - **Dashboard: Agents tab** - Connected agents table with trust scores and protocol badges
171
-
172
- ### Changed
173
- - **memory_store_v2.py** - Replaced 15 direct `sqlite3.connect()` calls with DbConnectionManager
174
- - **mcp_server.py** - Replaced 9 per-call instantiations with shared singleton
175
- - **ui_server.py** - Refactored from 2008-line monolith to 194-line app shell + 9 route modules
176
- - **ui/app.js** - Split from 1588-line monolith to 13 modular files
156
+ - **Reliable Concurrent Access** No more "database is locked" errors under multi-agent workloads
157
+ - **Real-Time Events** Live event broadcasting across all connected tools
158
+ - **Subscriptions** Durable and ephemeral event subscriptions with filters
159
+ - **Webhook Delivery** HTTP notifications with automatic retry on failure
160
+ - **Agent Registry** Track connected AI agents with protocol and activity monitoring
161
+ - **Memory Provenance** Track who created or modified each memory, and from which tool
162
+ - **Trust Scoring** Behavioral trust signals collected per agent
163
+ - **Dashboard: Live Events** Real-time event stream with filters and stats
164
+ - **Dashboard: Agents** Connected agents table with trust scores and protocol badges
177
165
 
178
- ### Testing
179
- - 63 pytest tests + 27 e2e tests + 15 fresh-DB edge cases + 17 backward-compat tests
166
+ ### Improved
167
+ - Refactored core modules for reliability and performance
168
+ - Dashboard modernized with modular architecture
180
169
 
181
170
  ---
182
171
 
183
172
  ## [2.4.2] - 2026-02-11
184
173
 
185
- **Release Type:** Bug Fix
186
-
187
174
  ### Fixed
188
- - Profile isolation bug in UI dashboard - Graph stats now filter by active profile
175
+ - Profile isolation bug in dashboard graph stats now filter by active profile
189
176
 
190
177
  ---
191
178
 
192
179
  ## [2.4.1] - 2026-02-11
193
180
 
194
- **Release Type:** Hierarchical Clustering & Documentation
195
-
196
181
  ### Added
197
- - **Hierarchical Leiden clustering** - Large clusters auto-subdivided up to 3 levels deep
198
- - **Community summaries** - TF-IDF structured reports for every cluster
199
- - Schema migration for `summary`, `parent_cluster_id`, `depth` columns
182
+ - **Hierarchical Clustering** Large knowledge clusters auto-subdivided for finer-grained topic discovery
183
+ - **Cluster Summaries** Structured topic reports for every cluster in the knowledge graph
200
184
 
201
185
  ---
202
186
 
@@ -205,12 +189,12 @@ SuperLocalMemory transforms from passive storage to active coordination layer. E
205
189
  **Release Type:** Profile System & Intelligence
206
190
 
207
191
  ### Added
208
- - **Column-based memory profiles** - Single DB with `profile` column, instant switching via `profiles.json`
209
- - **Auto-backup system** - Configurable interval, retention policy, one-click backup from UI
210
- - **MACLA confidence scorer** - Beta-Binomial Bayesian posterior (arXiv:2512.18950)
211
- - **UI: Profile Management** - Create, switch, delete profiles from dashboard
212
- - **UI: Settings tab** - Auto-backup config, history, profile management
213
- - **UI: Column sorting** - Click headers in Memories table
192
+ - **Memory Profiles** Single database, multiple profiles. Switch instantly from any IDE or CLI.
193
+ - **Auto-Backup** Configurable automatic backups with retention policy
194
+ - **Confidence Scoring** Statistical confidence tracking for learned patterns
195
+ - **Profile Management UI** Create, switch, and delete profiles from the dashboard
196
+ - **Settings Tab** Backup configuration, history, and profile management
197
+ - **Column Sorting** Click headers to sort in Memories table
214
198
 
215
199
  ---
216
200
 
@@ -218,22 +202,22 @@ SuperLocalMemory transforms from passive storage to active coordination layer. E
218
202
 
219
203
  ### Added
220
204
  - `--full` flag to show complete memory content without truncation
221
- - Smart truncation: <5000 chars shown in full, ≥5000 chars truncated to 2000 chars
205
+ - Smart truncation for large memories
222
206
 
223
207
  ### Fixed
224
- - CLI bug: `get` command now uses correct `get_by_id()` method
208
+ - CLI `get` command now retrieves memories correctly
225
209
 
226
210
  ---
227
211
 
228
212
  ## [2.3.5] - 2026-02-09
229
213
 
230
214
  ### Added
231
- - **ChatGPT Connector Support** - `search(query)` and `fetch(id)` MCP tools
232
- - **Streamable HTTP transport** - `slm serve --transport streamable-http`
233
- - **UI enhancements** - Memory detail modal, dark mode, export buttons, search score bars
215
+ - **ChatGPT Connector** Search and fetch memories from ChatGPT via MCP
216
+ - **Streamable HTTP Transport** Additional transport option for MCP connections
217
+ - **Dashboard Enhancements** Memory detail modal, dark mode, export, search score visualization
234
218
 
235
219
  ### Fixed
236
- - XSS vulnerability via inline onclick replaced with safe event delegation
220
+ - Security improvement in dashboard event handling
237
221
 
238
222
  ---
239
223
 
@@ -244,72 +228,53 @@ SuperLocalMemory transforms from passive storage to active coordination layer. E
244
228
  SuperLocalMemory now works across 16+ IDEs and CLI tools.
245
229
 
246
230
  ### Added
247
- - **MCP configs** - Auto-detection for Cursor, Windsurf, Claude Desktop, Continue.dev, Codex, Copilot, Gemini, JetBrains
248
- - **Universal CLI wrapper** - `slm` command works in any terminal
249
- - **Skills installer expansion** - Cursor, VS Code/Copilot auto-configured
250
- - **Tool annotations** - `readOnlyHint`, `destructiveHint`, `openWorldHint` for all MCP tools
231
+ - **Auto-Configuration** Automatic setup for Cursor, Windsurf, Claude Desktop, Continue.dev, Codex, Copilot, Gemini, JetBrains
232
+ - **Universal CLI** `slm` command works in any terminal
233
+ - **Skills Installer** — One-command setup for supported editors
234
+ - **Tool Annotations** — Read-only, destructive, and open-world hints for all MCP tools
251
235
 
252
236
  ---
253
237
 
254
238
  ## [2.2.0] - 2026-02-07
255
239
 
256
- **Release Type:** Feature Release (Optional Search Components)
240
+ **Release Type:** Feature Release Advanced Search
257
241
 
258
242
  ### Added
259
- - **BM25 Search Engine** - Okapi BM25 with <30ms search for 1K memories
260
- - **Query Optimizer** - Spell correction, query expansion, technical term preservation
261
- - **Cache Manager** - LRU cache with TTL, <0.1ms cache hit overhead
262
- - **Hybrid Search System** - BM25 + TF-IDF + Graph fusion, <50ms for 1K memories
263
- - **HNSW Index** - Sub-10ms search for 10K memories (optional: `pip install hnswlib`)
264
- - **Embedding Engine** - Local semantic embeddings with GPU acceleration (optional: `pip install sentence-transformers`)
265
- - **Modular Requirements** - Separate files: `requirements-ui.txt`, `requirements-search.txt`, `requirements-full.txt`
266
- - **Installation Verification** - `verify-install.sh` script for comprehensive health checks
243
+ - **Advanced Search** Faster, more accurate search with multiple retrieval strategies
244
+ - **Query Optimization** Spell correction, query expansion, and technical term preservation
245
+ - **Search Caching** — Frequently-used queries return near-instantly
246
+ - **Combined Search** Results fused from multiple search methods for better relevance
247
+ - **Fast Vector Search** Sub-10ms search at scale (optional)
248
+ - **Local Embeddings** Semantic search with GPU acceleration (optional)
249
+ - **Modular Installation** Install only what you need: core, UI, search, or everything
267
250
 
268
251
  ---
269
252
 
270
253
  ## [2.1.0-universal] - 2026-02-07
271
254
 
272
- **Release Type:** Major Feature Release - Universal Integration
255
+ **Release Type:** Major Feature Release Universal Integration
273
256
 
274
257
  ### Added
275
- - **6 Universal Skills** - remember, recall, list-recent, status, build-graph, switch-profile
276
- - **MCP Server** - 6 tools, 4 resources, 2 prompts for native IDE integration
277
- - **6-layer Attribution Protection** - Source headers, docs, database metadata, runtime banners, license, digital signature
278
- - **11+ IDE Support** - Cursor, Windsurf, Claude Desktop, Continue.dev, Cody, Aider, ChatGPT, Perplexity, Zed, OpenCode, Antigravity
279
-
280
- ### Documentation
281
- - `docs/MCP-MANUAL-SETUP.md` - Manual setup guide for 8+ additional IDEs
282
- - `docs/MCP-TROUBLESHOOTING.md` - Debugging guide with 20+ common issues
283
- - `docs/UNIVERSAL-INTEGRATION.md` - Complete universal strategy (15,000+ words)
258
+ - **6 Universal Skills** remember, recall, list-recent, status, build-graph, switch-profile
259
+ - **MCP Server** Native IDE integration with tools, resources, and prompts
260
+ - **Attribution Protection** — Multi-layer protection ensuring proper credit
261
+ - **11+ IDE Support** Cursor, Windsurf, Claude Desktop, Continue.dev, Cody, Aider, ChatGPT, Perplexity, Zed, OpenCode, Antigravity
284
262
 
285
263
  ---
286
264
 
287
265
  ## [2.0.0] - 2026-02-05
288
266
 
289
- ### Initial Release - Complete Rewrite
267
+ ### Initial Release Complete Rewrite
290
268
 
291
269
  SuperLocalMemory V2 represents a complete architectural rewrite with intelligent knowledge graphs, pattern learning, and enhanced organization.
292
270
 
293
271
  ### Added
294
- - **4-Layer Architecture** - Enhanced Storage, Hierarchical Index, Knowledge Graph, Pattern Learning
295
- - **TF-IDF Entity Extraction** - Automatic entity discovery with frequency weighting
296
- - **Leiden Clustering** - Community detection for automatic thematic grouping
297
- - **Pattern Learning** - Multi-dimensional analysis (frameworks, languages, architecture, security, coding style)
298
- - **Compression System** - Progressive summarization (Tier 1: 0%, Tier 2: 60%, Tier 3: 96%)
299
- - **Profile Management** - Multi-profile support with isolated databases
300
-
301
- ### Performance
302
- - Improved search performance over V1 (see Performance Benchmarks)
303
- - 60-96% storage reduction with compression
304
-
305
- ### Research Foundation
306
- Built on GraphRAG (Microsoft), PageIndex (VectifyAI), MemoryBank (AAAI 2024), A-RAG
307
-
308
- ---
309
-
310
- ## Archive
311
-
312
- See [CHANGELOG-ARCHIVE.md](CHANGELOG-ARCHIVE.md) for detailed release notes from v2.0.0 through v2.4.x.
272
+ - **4-Layer Architecture** Storage, Hierarchical Index, Knowledge Graph, Pattern Learning
273
+ - **Automatic Entity Extraction** Discovers key topics and concepts from your memories
274
+ - **Intelligent Clustering** Automatic thematic grouping of related memories
275
+ - **Pattern Learning** Tracks your preferences across frameworks, languages, architecture, security, and coding style
276
+ - **Storage Optimization** Progressive compression reduces storage by up to 96%
277
+ - **Profile Management** Multi-profile support with isolated data
313
278
 
314
279
  ---
315
280
 
@@ -320,7 +285,7 @@ We use [Semantic Versioning](https://semver.org/):
320
285
  - **MINOR:** New features (backward compatible, e.g., 2.0.0 → 2.1.0)
321
286
  - **PATCH:** Bug fixes (backward compatible, e.g., 2.1.0 → 2.1.1)
322
287
 
323
- **Current Version:** v2.6.5
288
+ **Current Version:** v2.8.0
324
289
  **Website:** [superlocalmemory.com](https://superlocalmemory.com)
325
290
  **npm:** `npm install -g superlocalmemory`
326
291