superlocalmemory 3.0.0__tar.gz

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 (160) hide show
  1. superlocalmemory-3.0.0/AUTHORS.md +16 -0
  2. superlocalmemory-3.0.0/LICENSE +29 -0
  3. superlocalmemory-3.0.0/NOTICE +63 -0
  4. superlocalmemory-3.0.0/PKG-INFO +304 -0
  5. superlocalmemory-3.0.0/README.md +259 -0
  6. superlocalmemory-3.0.0/pyproject.toml +85 -0
  7. superlocalmemory-3.0.0/setup.cfg +4 -0
  8. superlocalmemory-3.0.0/src/superlocalmemory/__init__.py +0 -0
  9. superlocalmemory-3.0.0/src/superlocalmemory/attribution/__init__.py +9 -0
  10. superlocalmemory-3.0.0/src/superlocalmemory/attribution/mathematical_dna.py +235 -0
  11. superlocalmemory-3.0.0/src/superlocalmemory/attribution/signer.py +153 -0
  12. superlocalmemory-3.0.0/src/superlocalmemory/attribution/watermark.py +189 -0
  13. superlocalmemory-3.0.0/src/superlocalmemory/cli/__init__.py +5 -0
  14. superlocalmemory-3.0.0/src/superlocalmemory/cli/commands.py +245 -0
  15. superlocalmemory-3.0.0/src/superlocalmemory/cli/main.py +89 -0
  16. superlocalmemory-3.0.0/src/superlocalmemory/cli/migrate_cmd.py +55 -0
  17. superlocalmemory-3.0.0/src/superlocalmemory/cli/post_install.py +99 -0
  18. superlocalmemory-3.0.0/src/superlocalmemory/cli/setup_wizard.py +129 -0
  19. superlocalmemory-3.0.0/src/superlocalmemory/compliance/__init__.py +0 -0
  20. superlocalmemory-3.0.0/src/superlocalmemory/compliance/abac.py +204 -0
  21. superlocalmemory-3.0.0/src/superlocalmemory/compliance/audit.py +314 -0
  22. superlocalmemory-3.0.0/src/superlocalmemory/compliance/eu_ai_act.py +131 -0
  23. superlocalmemory-3.0.0/src/superlocalmemory/compliance/gdpr.py +294 -0
  24. superlocalmemory-3.0.0/src/superlocalmemory/compliance/lifecycle.py +158 -0
  25. superlocalmemory-3.0.0/src/superlocalmemory/compliance/retention.py +232 -0
  26. superlocalmemory-3.0.0/src/superlocalmemory/compliance/scheduler.py +148 -0
  27. superlocalmemory-3.0.0/src/superlocalmemory/core/__init__.py +0 -0
  28. superlocalmemory-3.0.0/src/superlocalmemory/core/config.py +391 -0
  29. superlocalmemory-3.0.0/src/superlocalmemory/core/embeddings.py +293 -0
  30. superlocalmemory-3.0.0/src/superlocalmemory/core/engine.py +701 -0
  31. superlocalmemory-3.0.0/src/superlocalmemory/core/hooks.py +65 -0
  32. superlocalmemory-3.0.0/src/superlocalmemory/core/maintenance.py +172 -0
  33. superlocalmemory-3.0.0/src/superlocalmemory/core/modes.py +140 -0
  34. superlocalmemory-3.0.0/src/superlocalmemory/core/profiles.py +234 -0
  35. superlocalmemory-3.0.0/src/superlocalmemory/core/registry.py +117 -0
  36. superlocalmemory-3.0.0/src/superlocalmemory/dynamics/__init__.py +0 -0
  37. superlocalmemory-3.0.0/src/superlocalmemory/dynamics/fisher_langevin_coupling.py +223 -0
  38. superlocalmemory-3.0.0/src/superlocalmemory/encoding/__init__.py +0 -0
  39. superlocalmemory-3.0.0/src/superlocalmemory/encoding/consolidator.py +485 -0
  40. superlocalmemory-3.0.0/src/superlocalmemory/encoding/emotional.py +125 -0
  41. superlocalmemory-3.0.0/src/superlocalmemory/encoding/entity_resolver.py +525 -0
  42. superlocalmemory-3.0.0/src/superlocalmemory/encoding/entropy_gate.py +104 -0
  43. superlocalmemory-3.0.0/src/superlocalmemory/encoding/fact_extractor.py +775 -0
  44. superlocalmemory-3.0.0/src/superlocalmemory/encoding/foresight.py +91 -0
  45. superlocalmemory-3.0.0/src/superlocalmemory/encoding/graph_builder.py +302 -0
  46. superlocalmemory-3.0.0/src/superlocalmemory/encoding/observation_builder.py +160 -0
  47. superlocalmemory-3.0.0/src/superlocalmemory/encoding/scene_builder.py +183 -0
  48. superlocalmemory-3.0.0/src/superlocalmemory/encoding/signal_inference.py +90 -0
  49. superlocalmemory-3.0.0/src/superlocalmemory/encoding/temporal_parser.py +426 -0
  50. superlocalmemory-3.0.0/src/superlocalmemory/encoding/type_router.py +235 -0
  51. superlocalmemory-3.0.0/src/superlocalmemory/hooks/__init__.py +3 -0
  52. superlocalmemory-3.0.0/src/superlocalmemory/hooks/auto_capture.py +111 -0
  53. superlocalmemory-3.0.0/src/superlocalmemory/hooks/auto_recall.py +93 -0
  54. superlocalmemory-3.0.0/src/superlocalmemory/hooks/ide_connector.py +204 -0
  55. superlocalmemory-3.0.0/src/superlocalmemory/hooks/rules_engine.py +99 -0
  56. superlocalmemory-3.0.0/src/superlocalmemory/infra/__init__.py +3 -0
  57. superlocalmemory-3.0.0/src/superlocalmemory/infra/auth_middleware.py +82 -0
  58. superlocalmemory-3.0.0/src/superlocalmemory/infra/backup.py +317 -0
  59. superlocalmemory-3.0.0/src/superlocalmemory/infra/cache_manager.py +267 -0
  60. superlocalmemory-3.0.0/src/superlocalmemory/infra/event_bus.py +381 -0
  61. superlocalmemory-3.0.0/src/superlocalmemory/infra/rate_limiter.py +135 -0
  62. superlocalmemory-3.0.0/src/superlocalmemory/infra/webhook_dispatcher.py +239 -0
  63. superlocalmemory-3.0.0/src/superlocalmemory/learning/__init__.py +0 -0
  64. superlocalmemory-3.0.0/src/superlocalmemory/learning/adaptive.py +172 -0
  65. superlocalmemory-3.0.0/src/superlocalmemory/learning/behavioral.py +490 -0
  66. superlocalmemory-3.0.0/src/superlocalmemory/learning/behavioral_listener.py +94 -0
  67. superlocalmemory-3.0.0/src/superlocalmemory/learning/bootstrap.py +298 -0
  68. superlocalmemory-3.0.0/src/superlocalmemory/learning/cross_project.py +399 -0
  69. superlocalmemory-3.0.0/src/superlocalmemory/learning/database.py +376 -0
  70. superlocalmemory-3.0.0/src/superlocalmemory/learning/engagement.py +323 -0
  71. superlocalmemory-3.0.0/src/superlocalmemory/learning/features.py +138 -0
  72. superlocalmemory-3.0.0/src/superlocalmemory/learning/feedback.py +316 -0
  73. superlocalmemory-3.0.0/src/superlocalmemory/learning/outcomes.py +255 -0
  74. superlocalmemory-3.0.0/src/superlocalmemory/learning/project_context.py +366 -0
  75. superlocalmemory-3.0.0/src/superlocalmemory/learning/ranker.py +155 -0
  76. superlocalmemory-3.0.0/src/superlocalmemory/learning/source_quality.py +303 -0
  77. superlocalmemory-3.0.0/src/superlocalmemory/learning/workflows.py +309 -0
  78. superlocalmemory-3.0.0/src/superlocalmemory/llm/__init__.py +0 -0
  79. superlocalmemory-3.0.0/src/superlocalmemory/llm/backbone.py +316 -0
  80. superlocalmemory-3.0.0/src/superlocalmemory/math/__init__.py +0 -0
  81. superlocalmemory-3.0.0/src/superlocalmemory/math/fisher.py +356 -0
  82. superlocalmemory-3.0.0/src/superlocalmemory/math/langevin.py +398 -0
  83. superlocalmemory-3.0.0/src/superlocalmemory/math/sheaf.py +257 -0
  84. superlocalmemory-3.0.0/src/superlocalmemory/mcp/__init__.py +0 -0
  85. superlocalmemory-3.0.0/src/superlocalmemory/mcp/resources.py +245 -0
  86. superlocalmemory-3.0.0/src/superlocalmemory/mcp/server.py +61 -0
  87. superlocalmemory-3.0.0/src/superlocalmemory/mcp/tools.py +18 -0
  88. superlocalmemory-3.0.0/src/superlocalmemory/mcp/tools_core.py +305 -0
  89. superlocalmemory-3.0.0/src/superlocalmemory/mcp/tools_v28.py +223 -0
  90. superlocalmemory-3.0.0/src/superlocalmemory/mcp/tools_v3.py +286 -0
  91. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/__init__.py +0 -0
  92. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/agentic.py +295 -0
  93. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/ann_index.py +223 -0
  94. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/bm25_channel.py +185 -0
  95. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/bridge_discovery.py +170 -0
  96. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/engine.py +390 -0
  97. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/entity_channel.py +179 -0
  98. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/fusion.py +78 -0
  99. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/profile_channel.py +105 -0
  100. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/reranker.py +154 -0
  101. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/semantic_channel.py +232 -0
  102. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/strategy.py +96 -0
  103. superlocalmemory-3.0.0/src/superlocalmemory/retrieval/temporal_channel.py +175 -0
  104. superlocalmemory-3.0.0/src/superlocalmemory/server/__init__.py +1 -0
  105. superlocalmemory-3.0.0/src/superlocalmemory/server/api.py +248 -0
  106. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/__init__.py +4 -0
  107. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/agents.py +107 -0
  108. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/backup.py +91 -0
  109. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/behavioral.py +127 -0
  110. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/compliance.py +160 -0
  111. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/data_io.py +188 -0
  112. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/events.py +183 -0
  113. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/helpers.py +85 -0
  114. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/learning.py +273 -0
  115. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/lifecycle.py +116 -0
  116. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/memories.py +399 -0
  117. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/profiles.py +219 -0
  118. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/stats.py +346 -0
  119. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/v3_api.py +365 -0
  120. superlocalmemory-3.0.0/src/superlocalmemory/server/routes/ws.py +82 -0
  121. superlocalmemory-3.0.0/src/superlocalmemory/server/security_middleware.py +57 -0
  122. superlocalmemory-3.0.0/src/superlocalmemory/server/ui.py +245 -0
  123. superlocalmemory-3.0.0/src/superlocalmemory/storage/__init__.py +0 -0
  124. superlocalmemory-3.0.0/src/superlocalmemory/storage/access_control.py +182 -0
  125. superlocalmemory-3.0.0/src/superlocalmemory/storage/database.py +594 -0
  126. superlocalmemory-3.0.0/src/superlocalmemory/storage/migrations.py +303 -0
  127. superlocalmemory-3.0.0/src/superlocalmemory/storage/models.py +406 -0
  128. superlocalmemory-3.0.0/src/superlocalmemory/storage/schema.py +726 -0
  129. superlocalmemory-3.0.0/src/superlocalmemory/storage/v2_migrator.py +317 -0
  130. superlocalmemory-3.0.0/src/superlocalmemory/trust/__init__.py +0 -0
  131. superlocalmemory-3.0.0/src/superlocalmemory/trust/gate.py +130 -0
  132. superlocalmemory-3.0.0/src/superlocalmemory/trust/provenance.py +124 -0
  133. superlocalmemory-3.0.0/src/superlocalmemory/trust/scorer.py +347 -0
  134. superlocalmemory-3.0.0/src/superlocalmemory/trust/signals.py +153 -0
  135. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/PKG-INFO +304 -0
  136. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/SOURCES.txt +158 -0
  137. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/dependency_links.txt +1 -0
  138. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/entry_points.txt +2 -0
  139. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/requires.txt +33 -0
  140. superlocalmemory-3.0.0/src/superlocalmemory.egg-info/top_level.txt +1 -0
  141. superlocalmemory-3.0.0/tests/test_auto_hooks.py +118 -0
  142. superlocalmemory-3.0.0/tests/test_behavioral_full.py +108 -0
  143. superlocalmemory-3.0.0/tests/test_cli.py +61 -0
  144. superlocalmemory-3.0.0/tests/test_compliance_full.py +443 -0
  145. superlocalmemory-3.0.0/tests/test_config_system.py +76 -0
  146. superlocalmemory-3.0.0/tests/test_engine_hooks.py +76 -0
  147. superlocalmemory-3.0.0/tests/test_event_bus.py +89 -0
  148. superlocalmemory-3.0.0/tests/test_features.py +103 -0
  149. superlocalmemory-3.0.0/tests/test_final_locomo_mini.py +768 -0
  150. superlocalmemory-3.0.0/tests/test_ide_connector.py +111 -0
  151. superlocalmemory-3.0.0/tests/test_infra.py +267 -0
  152. superlocalmemory-3.0.0/tests/test_learning_advanced.py +80 -0
  153. superlocalmemory-3.0.0/tests/test_learning_collectors.py +84 -0
  154. superlocalmemory-3.0.0/tests/test_llm_provider.py +100 -0
  155. superlocalmemory-3.0.0/tests/test_mcp_server.py +96 -0
  156. superlocalmemory-3.0.0/tests/test_migration.py +128 -0
  157. superlocalmemory-3.0.0/tests/test_post_install.py +328 -0
  158. superlocalmemory-3.0.0/tests/test_ranker.py +76 -0
  159. superlocalmemory-3.0.0/tests/test_trust_full.py +327 -0
  160. superlocalmemory-3.0.0/tests/test_v3_api.py +25 -0
@@ -0,0 +1,16 @@
1
+ # Authors
2
+
3
+ ## Research Initiative
4
+
5
+ **Qualixar** — Advancing Agent Development Through Research
6
+
7
+ SuperLocalMemory is a Qualixar research initiative.
8
+
9
+ ## Creator
10
+
11
+ Varun Pratap Bhardwaj ([@varun369](https://github.com/varun369)) — Solution Architect & Original Creator
12
+ - ORCID: 0009-0002-8726-4289
13
+
14
+ ## Contributors
15
+
16
+ See [GitHub contributors](https://github.com/varun369/SuperLocalMemoryV2/graphs/contributors).
@@ -0,0 +1,29 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Varun Pratap Bhardwaj / Qualixar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ ATTRIBUTION NOTICE:
16
+ This software contains novel mathematical methods described in:
17
+ - arXiv:2603.02240 (SuperLocalMemory V2 — Bayesian Trust Defense)
18
+ - Zenodo DOI: 10.5281/zenodo.19038659 (SuperLocalMemory V3 — Information-Geometric Foundations)
19
+
20
+ Academic use MUST cite the relevant paper.
21
+ Commercial use MUST retain this notice, the NOTICE file, and visible attribution.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
@@ -0,0 +1,63 @@
1
+ SuperLocalMemory V3
2
+ Copyright (c) 2026 Varun Pratap Bhardwaj / Qualixar
3
+ https://qualixar.com | https://varunpratap.com
4
+
5
+ This product includes novel algorithms first described in peer-reviewed
6
+ publications by the author:
7
+
8
+ MATHEMATICAL FOUNDATIONS (Novel — Zero Prior Work)
9
+ ===================================================
10
+
11
+ 1. Fisher-Rao Information Geometry for Agent Memory Retrieval
12
+ - Geodesic similarity metric on statistical manifolds
13
+ - Graduated ramp from cosine to Fisher-Rao distance
14
+ - O(d) computational complexity
15
+ - First application to agent memory systems
16
+
17
+ 2. Sheaf Cohomology for Memory Consistency Verification
18
+ - Čech cohomology on knowledge graphs
19
+ - H¹(G,F) ≠ 0 detects contradictions algebraically
20
+ - First application to agent memory consistency
21
+
22
+ 3. Riemannian Langevin Dynamics for Memory Lifecycle
23
+ - Gradient flow on information-geometric manifolds
24
+ - Provably convergent to stationary distribution
25
+ - Self-organizing Active→Warm→Cold→Archived lifecycle
26
+ - First application to agent memory systems
27
+
28
+ ARCHITECTURAL INNOVATIONS
29
+ =========================
30
+
31
+ 4. Four-Channel Hybrid Retrieval with Weighted RRF Fusion
32
+ 5. Scene Clustering via Temporal-Semantic Coherence
33
+ 6. Bridge Discovery via Steiner Tree Approximation
34
+ 7. Cross-Encoder Energy-Weighted Blended Reranking
35
+ 8. Eleven-Step Structured Ingestion Pipeline
36
+ 9. Three Operating Modes (Zero-LLM / Local-LLM / Cloud-Augmented)
37
+ 10. Mathematical DNA — Coupled-Parameter Integrity Verification
38
+
39
+ PUBLICATIONS
40
+ ============
41
+
42
+ - V3 Paper: "SuperLocalMemory V3: Information-Geometric Foundations for
43
+ Zero-LLM Enterprise Agent Memory"
44
+ Zenodo DOI: 10.5281/zenodo.19038659
45
+ arXiv: Submitted March 2026 (cs.AI, cs.IR, cs.LG)
46
+
47
+ - V2 Paper: "SuperLocalMemory: Privacy-Preserving Multi-Agent Memory with
48
+ Bayesian Trust Defense Against Memory Poisoning"
49
+ arXiv: 2603.02240
50
+
51
+ PRIOR ART TIMESTAMPS
52
+ =====================
53
+
54
+ All algorithms are timestamped via:
55
+ 1. Zenodo DOI (CERN) — permanent citable artifact
56
+ 2. arXiv preprint — public timestamp
57
+ 3. GitHub commit history — Microsoft-backed timestamps
58
+ 4. npm registry — public package timestamps
59
+
60
+ Academic use MUST cite the relevant paper.
61
+ Commercial use MUST retain this notice and visible attribution.
62
+
63
+ Part of Qualixar — The Complete Agent Development Platform
@@ -0,0 +1,304 @@
1
+ Metadata-Version: 2.4
2
+ Name: superlocalmemory
3
+ Version: 3.0.0
4
+ Summary: Information-geometric agent memory with mathematical guarantees
5
+ Author-email: Varun Pratap Bhardwaj <admin@superlocalmemory.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://superlocalmemory.com
8
+ Project-URL: Repository, https://github.com/qualixar/superlocalmemory
9
+ Project-URL: Documentation, https://github.com/qualixar/superlocalmemory/wiki
10
+ Project-URL: Issues, https://github.com/qualixar/superlocalmemory/issues
11
+ Keywords: ai-memory,mcp-server,local-first,agent-memory,information-geometry,privacy-first,eu-ai-act
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: NOTICE
16
+ License-File: AUTHORS.md
17
+ Requires-Dist: httpx>=0.24.0
18
+ Requires-Dist: numpy<3.0.0,>=1.26.0
19
+ Requires-Dist: scipy<2.0.0,>=1.12.0
20
+ Requires-Dist: networkx>=3.0
21
+ Requires-Dist: mcp>=1.0.0
22
+ Requires-Dist: python-dateutil>=2.9.0.post0
23
+ Requires-Dist: rank-bm25>=0.2.2
24
+ Requires-Dist: vadersentiment>=3.3.2
25
+ Provides-Extra: search
26
+ Requires-Dist: sentence-transformers<4.0.0,>=2.5.0; extra == "search"
27
+ Requires-Dist: torch>=2.2.0; extra == "search"
28
+ Requires-Dist: scikit-learn<2.0.0,>=1.3.0; extra == "search"
29
+ Requires-Dist: geoopt>=0.5.0; extra == "search"
30
+ Provides-Extra: ui
31
+ Requires-Dist: fastapi<1.0.0,>=0.109.0; extra == "ui"
32
+ Requires-Dist: uvicorn[standard]<1.0.0,>=0.27.0; extra == "ui"
33
+ Requires-Dist: python-multipart<1.0.0,>=0.0.6; extra == "ui"
34
+ Provides-Extra: learning
35
+ Requires-Dist: lightgbm<5.0.0,>=4.0.0; extra == "learning"
36
+ Provides-Extra: performance
37
+ Requires-Dist: diskcache<6.0.0,>=5.6.0; extra == "performance"
38
+ Requires-Dist: orjson<4.0.0,>=3.9.0; extra == "performance"
39
+ Provides-Extra: full
40
+ Requires-Dist: superlocalmemory[learning,performance,search,ui]; extra == "full"
41
+ Provides-Extra: dev
42
+ Requires-Dist: pytest>=8.0; extra == "dev"
43
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
44
+ Dynamic: license-file
45
+
46
+ <p align="center">
47
+ <img src="https://superlocalmemory.com/assets/logo-mark.png" alt="SuperLocalMemory" width="200"/>
48
+ </p>
49
+
50
+ <h1 align="center">SuperLocalMemory V3</h1>
51
+ <p align="center"><strong>Information-Geometric Agent Memory with Mathematical Guarantees</strong></p>
52
+
53
+ <p align="center">
54
+ The first agent memory system with mathematically grounded retrieval, lifecycle management, and consistency verification. Four-channel hybrid retrieval. Three operating modes. EU AI Act compliant.
55
+ </p>
56
+
57
+ <p align="center">
58
+ <a href="https://superlocalmemory.com"><img src="https://img.shields.io/badge/Website-superlocalmemory.com-ff6b35?style=for-the-badge" alt="Website"/></a>
59
+ <a href="https://arxiv.org/abs/2603.02240"><img src="https://img.shields.io/badge/arXiv-2603.02240-b31b1b?style=for-the-badge&logo=arxiv&logoColor=white" alt="arXiv Paper"/></a>
60
+ <a href="https://zenodo.org/records/19038659"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.19038659-blue?style=for-the-badge&logo=doi&logoColor=white" alt="V3 DOI"/></a>
61
+ </p>
62
+
63
+ <p align="center">
64
+ <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"/></a>
65
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT License"/></a>
66
+ <a href="#three-operating-modes"><img src="https://img.shields.io/badge/EU_AI_Act-Compliant-brightgreen?style=flat-square" alt="EU AI Act"/></a>
67
+ <a href="#"><img src="https://img.shields.io/badge/tests-1400+-brightgreen?style=flat-square" alt="1400+ Tests"/></a>
68
+ <a href="#"><img src="https://img.shields.io/badge/platform-Mac_|_Linux_|_Windows-blue?style=flat-square" alt="Cross Platform"/></a>
69
+ <a href="https://github.com/qualixar/superlocalmemory/wiki"><img src="https://img.shields.io/badge/Wiki-Documentation-blue?style=flat-square" alt="Wiki"/></a>
70
+ </p>
71
+
72
+ ---
73
+
74
+ ## What is SuperLocalMemory?
75
+
76
+ SuperLocalMemory gives AI assistants persistent, structured memory that survives across sessions. Unlike simple vector stores, V3 uses **information geometry** to provide mathematically grounded retrieval, automatic contradiction detection, and self-organizing memory lifecycle management.
77
+
78
+ **Works with:** Claude, Cursor, Windsurf, VS Code Copilot, Continue, Cody, ChatGPT Desktop, Gemini CLI, JetBrains, Zed, and 17+ AI tools via MCP.
79
+
80
+ > **Upgrading from V2 (2.8.6)?** V3 is a complete architectural reinvention — new mathematical engine, new retrieval pipeline, new storage schema. Your existing data is preserved but requires migration. After installing V3, run `slm migrate` to upgrade your data. Read the [Migration Guide](docs/migration-from-v2.md) before upgrading. Backup is created automatically.
81
+
82
+ ### Key Results
83
+
84
+ | Metric | Score | Context |
85
+ |:-------|:-----:|:--------|
86
+ | LoCoMo (Mode A, zero-LLM) | **62.3%** | Highest zero-LLM score. No cloud dependency. |
87
+ | LoCoMo (Mode C, full) | **~78%** | Competitive with funded systems ($10M+) |
88
+ | Math layer improvement | **+12.7pp** | Average gain from mathematical foundations |
89
+ | Multi-hop improvement | **+12pp** | 50% vs 38% (math on vs off) |
90
+
91
+ ---
92
+
93
+ ## Three Operating Modes
94
+
95
+ | Mode | What | LLM Required? | EU AI Act | Best For |
96
+ |:----:|:-----|:-------------:|:---------:|:---------|
97
+ | **A** | Local Guardian | No | Compliant | Privacy-first, air-gapped, enterprise |
98
+ | **B** | Smart Local | Local only (Ollama) | Compliant | Enhanced quality, data stays local |
99
+ | **C** | Full Power | Cloud (optional) | Partial | Maximum accuracy, research |
100
+
101
+ **Mode A** is the only agent memory that operates with **zero cloud dependency** while achieving competitive retrieval accuracy. All data stays on your device. No API keys required.
102
+
103
+ ---
104
+
105
+ ## Architecture
106
+
107
+ ```
108
+ Query ──► Strategy Classifier ──► 4 Parallel Channels:
109
+ ├── Semantic (Fisher-Rao graduated similarity)
110
+ ├── BM25 (keyword matching, k1=1.2, b=0.75)
111
+ ├── Entity Graph (spreading activation, 3 hops)
112
+ └── Temporal (date-aware retrieval)
113
+
114
+ RRF Fusion (k=60)
115
+
116
+ Scene Expansion + Bridge Discovery
117
+
118
+ Cross-Encoder Reranking
119
+
120
+ ◄── Top-K Results with channel scores
121
+ ```
122
+
123
+ ### Mathematical Foundations (Novel Contributions)
124
+
125
+ 1. **Fisher-Rao Retrieval Metric** — Similarity scoring derived from the Fisher information structure of diagonal Gaussian families. Graduated ramp from cosine to Fisher-information-weighted scoring over the first 10 accesses per memory.
126
+
127
+ 2. **Sheaf Cohomology for Consistency** — Algebraic topology detects contradictions between facts by computing coboundary norms on the knowledge graph. Non-trivial restriction maps amplify disagreements along discriminative subspaces.
128
+
129
+ 3. **Riemannian Langevin Lifecycle** — Memory positions evolve on the Poincare ball via a discretized Langevin SDE. Frequently accessed memories stay near the origin (ACTIVE); neglected memories diffuse toward the boundary (ARCHIVED). The potential is modulated by access frequency, age, and importance.
130
+
131
+ ---
132
+
133
+ ## Quick Start
134
+
135
+ ### Install via npm (recommended)
136
+
137
+ ```bash
138
+ npm install -g superlocalmemory
139
+ slm setup
140
+ ```
141
+
142
+ ### Install via pip
143
+
144
+ ```bash
145
+ pip install superlocalmemory
146
+ # or with all features:
147
+ pip install "superlocalmemory[full]"
148
+ ```
149
+
150
+ ### First Use
151
+
152
+ ```bash
153
+ # Store a memory
154
+ slm remember "Alice works at Google as a Staff Engineer"
155
+
156
+ # Recall
157
+ slm recall "What does Alice do?"
158
+
159
+ # Check status
160
+ slm status
161
+
162
+ # Switch modes
163
+ slm mode a # Zero-LLM (default)
164
+ slm mode b # Local Ollama
165
+ slm mode c # Full power
166
+ ```
167
+
168
+ ### MCP Integration (Claude, Cursor, etc.)
169
+
170
+ Add to your IDE's MCP config:
171
+
172
+ ```json
173
+ {
174
+ "mcpServers": {
175
+ "superlocalmemory": {
176
+ "command": "slm",
177
+ "args": ["mcp"]
178
+ }
179
+ }
180
+ }
181
+ ```
182
+
183
+ 24 MCP tools available: `remember`, `recall`, `search`, `fetch`, `list_recent`, `get_status`, `build_graph`, `switch_profile`, `health`, `consistency_check`, `recall_trace`, and more.
184
+
185
+ ---
186
+
187
+ ## V3 Engine Features
188
+
189
+ ### Retrieval (4-Channel Hybrid)
190
+ - Semantic similarity with Fisher-Rao information geometry
191
+ - BM25 keyword matching (persisted tokens, survives restart)
192
+ - Entity graph with spreading activation (3-hop, decay=0.7)
193
+ - Temporal date-aware retrieval with interval support
194
+ - RRF fusion (k=60) + cross-encoder reranking
195
+
196
+ ### Intelligence
197
+ - 11-step ingestion pipeline (entity resolution, fact extraction, emotional tagging, scene building, sheaf consistency)
198
+ - Adaptive learning with LightGBM-based ranking (3-phase bootstrap)
199
+ - Behavioral pattern detection (query habits, entity preferences, active hours)
200
+ - Outcome tracking for retrieval feedback loops
201
+
202
+ ### Trust & Compliance
203
+ - Bayesian Beta distribution trust scoring (per-agent, per-fact)
204
+ - Trust gates (block low-trust agents from writing/deleting)
205
+ - ABAC (Attribute-Based Access Control) with DB-persisted policies
206
+ - GDPR Article 15/17 compliance (full export + complete erasure)
207
+ - EU AI Act data sovereignty (Mode A: zero cloud, data stays local)
208
+ - Tamper-proof hash-chain audit trail (SHA-256 linked entries)
209
+ - Data provenance tracking (who created what, when, from where)
210
+
211
+ ### Infrastructure
212
+ - 17-tab web dashboard (trust visualization, math health, recall lab)
213
+ - 17+ IDE integrations with pre-built configs
214
+ - Profile isolation (16+ independent memory spaces)
215
+ - V2 to V3 migration tool (zero data loss, rollback support)
216
+ - Auto-capture and auto-recall hooks for Claude Code
217
+
218
+ ---
219
+
220
+ ## Benchmarks
221
+
222
+ Evaluated on the [LoCoMo benchmark](https://arxiv.org/abs/2402.09714) (Long Conversation Memory):
223
+
224
+ ### Mode A Ablation (conv-30, 81 questions, zero-LLM)
225
+
226
+ | Configuration | Micro Avg | Multi-Hop | Open Domain |
227
+ |:-------------|:---------:|:---------:|:-----------:|
228
+ | Full (all layers) | **62.3%** | **50%** | **78%** |
229
+ | Math layers off | 59.3% | 38% | 70% |
230
+ | Entity channel off | 56.8% | 38% | 73% |
231
+ | BM25 channel off | 53.2% | 23% | 71% |
232
+ | Cross-encoder off | 31.8% | 17% | — |
233
+
234
+ ### Competitive Landscape
235
+
236
+ | System | Score | LLM Required | Open Source | EU AI Act |
237
+ |:-------|:-----:|:------------:|:-----------:|:---------:|
238
+ | EverMemOS | 92.3% | Yes | No | No |
239
+ | MemMachine | 91.7% | Yes | No | No |
240
+ | Hindsight | 89.6% | Yes | No | No |
241
+ | **SLM V3 Mode C** | **~78%** | Optional | **Yes** | Partial |
242
+ | **SLM V3 Mode A** | **62.3%** | **No** | **Yes** | **Yes** |
243
+ | Mem0 ($24M) | 34.2% F1 | Yes | Partial | No |
244
+
245
+ *SLM V3 is the only system offering a fully local mode with mathematical guarantees and EU AI Act compliance.*
246
+
247
+ ---
248
+
249
+ ## Research Papers
250
+
251
+ ### V3: Information-Geometric Foundations
252
+ > **SuperLocalMemory V3: Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory**
253
+ > Varun Pratap Bhardwaj (2026)
254
+ > [Zenodo DOI: 10.5281/zenodo.19038659](https://zenodo.org/records/19038659)
255
+
256
+ ### V2: Architecture & Engineering
257
+ > **SuperLocalMemory: A Structured Local Memory Architecture for Persistent AI Agent Context**
258
+ > Varun Pratap Bhardwaj (2026)
259
+ > [arXiv:2603.02240](https://arxiv.org/abs/2603.02240) | [Zenodo DOI: 10.5281/zenodo.18709670](https://zenodo.org/records/18709670)
260
+
261
+ ---
262
+
263
+ ## Project Structure
264
+
265
+ ```
266
+ superlocalmemory/
267
+ ├── src/superlocalmemory/ # Python package (17 sub-packages)
268
+ │ ├── core/ # Engine, config, modes, profiles
269
+ │ ├── retrieval/ # 4-channel retrieval + fusion + reranking
270
+ │ ├── math/ # Fisher-Rao, Sheaf, Langevin
271
+ │ ├── encoding/ # 11-step ingestion pipeline
272
+ │ ├── storage/ # SQLite with WAL, FTS5, migrations
273
+ │ ├── trust/ # Bayesian scoring, gates, provenance
274
+ │ ├── compliance/ # GDPR, EU AI Act, ABAC, audit chain
275
+ │ ├── learning/ # Adaptive ranking, behavioral patterns
276
+ │ ├── mcp/ # MCP server (24 tools, 6 resources)
277
+ │ ├── cli/ # CLI with setup wizard
278
+ │ └── server/ # Dashboard API + UI server
279
+ ├── tests/ # 1400+ tests
280
+ ├── ui/ # 17-tab web dashboard
281
+ ├── ide/ # IDE configs for 17+ tools
282
+ ├── docs/ # Documentation
283
+ └── pyproject.toml # Modern Python packaging
284
+ ```
285
+
286
+ ---
287
+
288
+ ## Contributing
289
+
290
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
291
+
292
+ ## License
293
+
294
+ MIT License. See [LICENSE](LICENSE).
295
+
296
+ ## Attribution
297
+
298
+ Part of [Qualixar](https://qualixar.com) | Author: [Varun Pratap Bhardwaj](https://varunpratap.com)
299
+
300
+ ---
301
+
302
+ <p align="center">
303
+ <sub>Built with mathematical rigor. Not in the race — here to help everyone build better AI memory systems.</sub>
304
+ </p>
@@ -0,0 +1,259 @@
1
+ <p align="center">
2
+ <img src="https://superlocalmemory.com/assets/logo-mark.png" alt="SuperLocalMemory" width="200"/>
3
+ </p>
4
+
5
+ <h1 align="center">SuperLocalMemory V3</h1>
6
+ <p align="center"><strong>Information-Geometric Agent Memory with Mathematical Guarantees</strong></p>
7
+
8
+ <p align="center">
9
+ The first agent memory system with mathematically grounded retrieval, lifecycle management, and consistency verification. Four-channel hybrid retrieval. Three operating modes. EU AI Act compliant.
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://superlocalmemory.com"><img src="https://img.shields.io/badge/Website-superlocalmemory.com-ff6b35?style=for-the-badge" alt="Website"/></a>
14
+ <a href="https://arxiv.org/abs/2603.02240"><img src="https://img.shields.io/badge/arXiv-2603.02240-b31b1b?style=for-the-badge&logo=arxiv&logoColor=white" alt="arXiv Paper"/></a>
15
+ <a href="https://zenodo.org/records/19038659"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.19038659-blue?style=for-the-badge&logo=doi&logoColor=white" alt="V3 DOI"/></a>
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"/></a>
20
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT License"/></a>
21
+ <a href="#three-operating-modes"><img src="https://img.shields.io/badge/EU_AI_Act-Compliant-brightgreen?style=flat-square" alt="EU AI Act"/></a>
22
+ <a href="#"><img src="https://img.shields.io/badge/tests-1400+-brightgreen?style=flat-square" alt="1400+ Tests"/></a>
23
+ <a href="#"><img src="https://img.shields.io/badge/platform-Mac_|_Linux_|_Windows-blue?style=flat-square" alt="Cross Platform"/></a>
24
+ <a href="https://github.com/qualixar/superlocalmemory/wiki"><img src="https://img.shields.io/badge/Wiki-Documentation-blue?style=flat-square" alt="Wiki"/></a>
25
+ </p>
26
+
27
+ ---
28
+
29
+ ## What is SuperLocalMemory?
30
+
31
+ SuperLocalMemory gives AI assistants persistent, structured memory that survives across sessions. Unlike simple vector stores, V3 uses **information geometry** to provide mathematically grounded retrieval, automatic contradiction detection, and self-organizing memory lifecycle management.
32
+
33
+ **Works with:** Claude, Cursor, Windsurf, VS Code Copilot, Continue, Cody, ChatGPT Desktop, Gemini CLI, JetBrains, Zed, and 17+ AI tools via MCP.
34
+
35
+ > **Upgrading from V2 (2.8.6)?** V3 is a complete architectural reinvention — new mathematical engine, new retrieval pipeline, new storage schema. Your existing data is preserved but requires migration. After installing V3, run `slm migrate` to upgrade your data. Read the [Migration Guide](docs/migration-from-v2.md) before upgrading. Backup is created automatically.
36
+
37
+ ### Key Results
38
+
39
+ | Metric | Score | Context |
40
+ |:-------|:-----:|:--------|
41
+ | LoCoMo (Mode A, zero-LLM) | **62.3%** | Highest zero-LLM score. No cloud dependency. |
42
+ | LoCoMo (Mode C, full) | **~78%** | Competitive with funded systems ($10M+) |
43
+ | Math layer improvement | **+12.7pp** | Average gain from mathematical foundations |
44
+ | Multi-hop improvement | **+12pp** | 50% vs 38% (math on vs off) |
45
+
46
+ ---
47
+
48
+ ## Three Operating Modes
49
+
50
+ | Mode | What | LLM Required? | EU AI Act | Best For |
51
+ |:----:|:-----|:-------------:|:---------:|:---------|
52
+ | **A** | Local Guardian | No | Compliant | Privacy-first, air-gapped, enterprise |
53
+ | **B** | Smart Local | Local only (Ollama) | Compliant | Enhanced quality, data stays local |
54
+ | **C** | Full Power | Cloud (optional) | Partial | Maximum accuracy, research |
55
+
56
+ **Mode A** is the only agent memory that operates with **zero cloud dependency** while achieving competitive retrieval accuracy. All data stays on your device. No API keys required.
57
+
58
+ ---
59
+
60
+ ## Architecture
61
+
62
+ ```
63
+ Query ──► Strategy Classifier ──► 4 Parallel Channels:
64
+ ├── Semantic (Fisher-Rao graduated similarity)
65
+ ├── BM25 (keyword matching, k1=1.2, b=0.75)
66
+ ├── Entity Graph (spreading activation, 3 hops)
67
+ └── Temporal (date-aware retrieval)
68
+
69
+ RRF Fusion (k=60)
70
+
71
+ Scene Expansion + Bridge Discovery
72
+
73
+ Cross-Encoder Reranking
74
+
75
+ ◄── Top-K Results with channel scores
76
+ ```
77
+
78
+ ### Mathematical Foundations (Novel Contributions)
79
+
80
+ 1. **Fisher-Rao Retrieval Metric** — Similarity scoring derived from the Fisher information structure of diagonal Gaussian families. Graduated ramp from cosine to Fisher-information-weighted scoring over the first 10 accesses per memory.
81
+
82
+ 2. **Sheaf Cohomology for Consistency** — Algebraic topology detects contradictions between facts by computing coboundary norms on the knowledge graph. Non-trivial restriction maps amplify disagreements along discriminative subspaces.
83
+
84
+ 3. **Riemannian Langevin Lifecycle** — Memory positions evolve on the Poincare ball via a discretized Langevin SDE. Frequently accessed memories stay near the origin (ACTIVE); neglected memories diffuse toward the boundary (ARCHIVED). The potential is modulated by access frequency, age, and importance.
85
+
86
+ ---
87
+
88
+ ## Quick Start
89
+
90
+ ### Install via npm (recommended)
91
+
92
+ ```bash
93
+ npm install -g superlocalmemory
94
+ slm setup
95
+ ```
96
+
97
+ ### Install via pip
98
+
99
+ ```bash
100
+ pip install superlocalmemory
101
+ # or with all features:
102
+ pip install "superlocalmemory[full]"
103
+ ```
104
+
105
+ ### First Use
106
+
107
+ ```bash
108
+ # Store a memory
109
+ slm remember "Alice works at Google as a Staff Engineer"
110
+
111
+ # Recall
112
+ slm recall "What does Alice do?"
113
+
114
+ # Check status
115
+ slm status
116
+
117
+ # Switch modes
118
+ slm mode a # Zero-LLM (default)
119
+ slm mode b # Local Ollama
120
+ slm mode c # Full power
121
+ ```
122
+
123
+ ### MCP Integration (Claude, Cursor, etc.)
124
+
125
+ Add to your IDE's MCP config:
126
+
127
+ ```json
128
+ {
129
+ "mcpServers": {
130
+ "superlocalmemory": {
131
+ "command": "slm",
132
+ "args": ["mcp"]
133
+ }
134
+ }
135
+ }
136
+ ```
137
+
138
+ 24 MCP tools available: `remember`, `recall`, `search`, `fetch`, `list_recent`, `get_status`, `build_graph`, `switch_profile`, `health`, `consistency_check`, `recall_trace`, and more.
139
+
140
+ ---
141
+
142
+ ## V3 Engine Features
143
+
144
+ ### Retrieval (4-Channel Hybrid)
145
+ - Semantic similarity with Fisher-Rao information geometry
146
+ - BM25 keyword matching (persisted tokens, survives restart)
147
+ - Entity graph with spreading activation (3-hop, decay=0.7)
148
+ - Temporal date-aware retrieval with interval support
149
+ - RRF fusion (k=60) + cross-encoder reranking
150
+
151
+ ### Intelligence
152
+ - 11-step ingestion pipeline (entity resolution, fact extraction, emotional tagging, scene building, sheaf consistency)
153
+ - Adaptive learning with LightGBM-based ranking (3-phase bootstrap)
154
+ - Behavioral pattern detection (query habits, entity preferences, active hours)
155
+ - Outcome tracking for retrieval feedback loops
156
+
157
+ ### Trust & Compliance
158
+ - Bayesian Beta distribution trust scoring (per-agent, per-fact)
159
+ - Trust gates (block low-trust agents from writing/deleting)
160
+ - ABAC (Attribute-Based Access Control) with DB-persisted policies
161
+ - GDPR Article 15/17 compliance (full export + complete erasure)
162
+ - EU AI Act data sovereignty (Mode A: zero cloud, data stays local)
163
+ - Tamper-proof hash-chain audit trail (SHA-256 linked entries)
164
+ - Data provenance tracking (who created what, when, from where)
165
+
166
+ ### Infrastructure
167
+ - 17-tab web dashboard (trust visualization, math health, recall lab)
168
+ - 17+ IDE integrations with pre-built configs
169
+ - Profile isolation (16+ independent memory spaces)
170
+ - V2 to V3 migration tool (zero data loss, rollback support)
171
+ - Auto-capture and auto-recall hooks for Claude Code
172
+
173
+ ---
174
+
175
+ ## Benchmarks
176
+
177
+ Evaluated on the [LoCoMo benchmark](https://arxiv.org/abs/2402.09714) (Long Conversation Memory):
178
+
179
+ ### Mode A Ablation (conv-30, 81 questions, zero-LLM)
180
+
181
+ | Configuration | Micro Avg | Multi-Hop | Open Domain |
182
+ |:-------------|:---------:|:---------:|:-----------:|
183
+ | Full (all layers) | **62.3%** | **50%** | **78%** |
184
+ | Math layers off | 59.3% | 38% | 70% |
185
+ | Entity channel off | 56.8% | 38% | 73% |
186
+ | BM25 channel off | 53.2% | 23% | 71% |
187
+ | Cross-encoder off | 31.8% | 17% | — |
188
+
189
+ ### Competitive Landscape
190
+
191
+ | System | Score | LLM Required | Open Source | EU AI Act |
192
+ |:-------|:-----:|:------------:|:-----------:|:---------:|
193
+ | EverMemOS | 92.3% | Yes | No | No |
194
+ | MemMachine | 91.7% | Yes | No | No |
195
+ | Hindsight | 89.6% | Yes | No | No |
196
+ | **SLM V3 Mode C** | **~78%** | Optional | **Yes** | Partial |
197
+ | **SLM V3 Mode A** | **62.3%** | **No** | **Yes** | **Yes** |
198
+ | Mem0 ($24M) | 34.2% F1 | Yes | Partial | No |
199
+
200
+ *SLM V3 is the only system offering a fully local mode with mathematical guarantees and EU AI Act compliance.*
201
+
202
+ ---
203
+
204
+ ## Research Papers
205
+
206
+ ### V3: Information-Geometric Foundations
207
+ > **SuperLocalMemory V3: Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory**
208
+ > Varun Pratap Bhardwaj (2026)
209
+ > [Zenodo DOI: 10.5281/zenodo.19038659](https://zenodo.org/records/19038659)
210
+
211
+ ### V2: Architecture & Engineering
212
+ > **SuperLocalMemory: A Structured Local Memory Architecture for Persistent AI Agent Context**
213
+ > Varun Pratap Bhardwaj (2026)
214
+ > [arXiv:2603.02240](https://arxiv.org/abs/2603.02240) | [Zenodo DOI: 10.5281/zenodo.18709670](https://zenodo.org/records/18709670)
215
+
216
+ ---
217
+
218
+ ## Project Structure
219
+
220
+ ```
221
+ superlocalmemory/
222
+ ├── src/superlocalmemory/ # Python package (17 sub-packages)
223
+ │ ├── core/ # Engine, config, modes, profiles
224
+ │ ├── retrieval/ # 4-channel retrieval + fusion + reranking
225
+ │ ├── math/ # Fisher-Rao, Sheaf, Langevin
226
+ │ ├── encoding/ # 11-step ingestion pipeline
227
+ │ ├── storage/ # SQLite with WAL, FTS5, migrations
228
+ │ ├── trust/ # Bayesian scoring, gates, provenance
229
+ │ ├── compliance/ # GDPR, EU AI Act, ABAC, audit chain
230
+ │ ├── learning/ # Adaptive ranking, behavioral patterns
231
+ │ ├── mcp/ # MCP server (24 tools, 6 resources)
232
+ │ ├── cli/ # CLI with setup wizard
233
+ │ └── server/ # Dashboard API + UI server
234
+ ├── tests/ # 1400+ tests
235
+ ├── ui/ # 17-tab web dashboard
236
+ ├── ide/ # IDE configs for 17+ tools
237
+ ├── docs/ # Documentation
238
+ └── pyproject.toml # Modern Python packaging
239
+ ```
240
+
241
+ ---
242
+
243
+ ## Contributing
244
+
245
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
246
+
247
+ ## License
248
+
249
+ MIT License. See [LICENSE](LICENSE).
250
+
251
+ ## Attribution
252
+
253
+ Part of [Qualixar](https://qualixar.com) | Author: [Varun Pratap Bhardwaj](https://varunpratap.com)
254
+
255
+ ---
256
+
257
+ <p align="center">
258
+ <sub>Built with mathematical rigor. Not in the race — here to help everyone build better AI memory systems.</sub>
259
+ </p>