agmem 0.1.1__tar.gz → 0.1.3__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 (145) hide show
  1. {agmem-0.1.1/agmem.egg-info → agmem-0.1.3}/PKG-INFO +157 -16
  2. {agmem-0.1.1 → agmem-0.1.3}/README.md +133 -12
  3. {agmem-0.1.1 → agmem-0.1.3/agmem.egg-info}/PKG-INFO +157 -16
  4. {agmem-0.1.1 → agmem-0.1.3}/agmem.egg-info/SOURCES.txt +55 -1
  5. {agmem-0.1.1 → agmem-0.1.3}/agmem.egg-info/requires.txt +28 -1
  6. agmem-0.1.3/docs/AGMEM_PUBLISHING_SETUP.md +62 -0
  7. {agmem-0.1.1 → agmem-0.1.3}/memvcs/__init__.py +1 -1
  8. {agmem-0.1.1 → agmem-0.1.3}/memvcs/cli.py +45 -31
  9. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/__init__.py +9 -9
  10. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/add.py +83 -76
  11. agmem-0.1.3/memvcs/commands/audit.py +59 -0
  12. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/blame.py +46 -53
  13. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/branch.py +13 -33
  14. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/checkout.py +27 -32
  15. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/clean.py +18 -23
  16. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/clone.py +11 -1
  17. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/commit.py +40 -39
  18. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/daemon.py +109 -76
  19. agmem-0.1.3/memvcs/commands/decay.py +77 -0
  20. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/diff.py +56 -57
  21. agmem-0.1.3/memvcs/commands/distill.py +90 -0
  22. agmem-0.1.3/memvcs/commands/federated.py +53 -0
  23. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/fsck.py +86 -61
  24. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/garden.py +40 -35
  25. agmem-0.1.3/memvcs/commands/gc.py +51 -0
  26. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/graph.py +41 -48
  27. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/init.py +16 -24
  28. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/log.py +25 -40
  29. agmem-0.1.3/memvcs/commands/merge.py +130 -0
  30. agmem-0.1.3/memvcs/commands/pack.py +129 -0
  31. agmem-0.1.3/memvcs/commands/prove.py +66 -0
  32. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/pull.py +31 -1
  33. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/push.py +4 -2
  34. agmem-0.1.3/memvcs/commands/recall.py +145 -0
  35. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/reflog.py +13 -22
  36. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/remote.py +1 -0
  37. agmem-0.1.3/memvcs/commands/repair.py +66 -0
  38. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/reset.py +23 -33
  39. agmem-0.1.3/memvcs/commands/resolve.py +130 -0
  40. agmem-0.1.3/memvcs/commands/resurrect.py +82 -0
  41. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/search.py +3 -4
  42. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/serve.py +2 -1
  43. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/show.py +66 -36
  44. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/stash.py +34 -34
  45. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/status.py +27 -35
  46. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/tag.py +23 -47
  47. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/test.py +30 -44
  48. agmem-0.1.3/memvcs/commands/timeline.py +111 -0
  49. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/tree.py +26 -27
  50. agmem-0.1.3/memvcs/commands/verify.py +110 -0
  51. agmem-0.1.3/memvcs/commands/when.py +115 -0
  52. agmem-0.1.3/memvcs/core/access_index.py +167 -0
  53. agmem-0.1.3/memvcs/core/audit.py +124 -0
  54. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/config_loader.py +3 -1
  55. agmem-0.1.3/memvcs/core/consistency.py +214 -0
  56. agmem-0.1.3/memvcs/core/crypto_verify.py +280 -0
  57. agmem-0.1.3/memvcs/core/decay.py +185 -0
  58. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/diff.py +158 -143
  59. agmem-0.1.3/memvcs/core/distiller.py +277 -0
  60. agmem-0.1.3/memvcs/core/encryption.py +169 -0
  61. agmem-0.1.3/memvcs/core/federated.py +86 -0
  62. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/gardener.py +176 -145
  63. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/hooks.py +48 -14
  64. agmem-0.1.3/memvcs/core/ipfs_remote.py +39 -0
  65. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/knowledge_graph.py +135 -138
  66. agmem-0.1.3/memvcs/core/llm/__init__.py +10 -0
  67. agmem-0.1.3/memvcs/core/llm/anthropic_provider.py +50 -0
  68. agmem-0.1.3/memvcs/core/llm/base.py +27 -0
  69. agmem-0.1.3/memvcs/core/llm/factory.py +30 -0
  70. agmem-0.1.3/memvcs/core/llm/openai_provider.py +36 -0
  71. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/merge.py +260 -170
  72. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/objects.py +110 -101
  73. agmem-0.1.3/memvcs/core/pack.py +92 -0
  74. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/pii_scanner.py +147 -146
  75. agmem-0.1.3/memvcs/core/privacy_budget.py +63 -0
  76. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/refs.py +132 -115
  77. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/remote.py +38 -0
  78. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/repository.py +254 -164
  79. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/schema.py +155 -113
  80. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/staging.py +60 -65
  81. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/storage/__init__.py +20 -18
  82. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/storage/base.py +74 -70
  83. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/storage/gcs.py +70 -68
  84. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/storage/local.py +42 -40
  85. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/storage/s3.py +105 -110
  86. agmem-0.1.3/memvcs/core/temporal_index.py +121 -0
  87. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/test_runner.py +101 -93
  88. agmem-0.1.3/memvcs/core/trust.py +103 -0
  89. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/vector_store.py +56 -36
  90. agmem-0.1.3/memvcs/core/zk_proofs.py +26 -0
  91. {agmem-0.1.1 → agmem-0.1.3}/memvcs/integrations/mcp_server.py +1 -3
  92. {agmem-0.1.1 → agmem-0.1.3}/memvcs/integrations/web_ui/server.py +25 -26
  93. agmem-0.1.3/memvcs/retrieval/__init__.py +22 -0
  94. agmem-0.1.3/memvcs/retrieval/base.py +54 -0
  95. agmem-0.1.3/memvcs/retrieval/pack.py +128 -0
  96. agmem-0.1.3/memvcs/retrieval/recaller.py +105 -0
  97. agmem-0.1.3/memvcs/retrieval/strategies.py +314 -0
  98. {agmem-0.1.1 → agmem-0.1.3}/memvcs/utils/__init__.py +3 -3
  99. {agmem-0.1.1 → agmem-0.1.3}/memvcs/utils/helpers.py +52 -52
  100. {agmem-0.1.1 → agmem-0.1.3}/pyproject.toml +50 -7
  101. agmem-0.1.3/setup.py +64 -0
  102. agmem-0.1.3/tests/test_access_index.py +67 -0
  103. agmem-0.1.3/tests/test_advanced_commands.py +157 -0
  104. agmem-0.1.3/tests/test_audit.py +96 -0
  105. agmem-0.1.3/tests/test_commit_importance.py +47 -0
  106. agmem-0.1.3/tests/test_consistency.py +49 -0
  107. agmem-0.1.3/tests/test_crypto_verify.py +67 -0
  108. agmem-0.1.3/tests/test_decay.py +59 -0
  109. agmem-0.1.3/tests/test_encryption.py +79 -0
  110. agmem-0.1.3/tests/test_llm_provider.py +57 -0
  111. {agmem-0.1.1 → agmem-0.1.3}/tests/test_objects.py +39 -39
  112. agmem-0.1.3/tests/test_pack_gc.py +56 -0
  113. {agmem-0.1.1 → agmem-0.1.3}/tests/test_plan_features.py +15 -2
  114. agmem-0.1.3/tests/test_privacy_budget.py +56 -0
  115. agmem-0.1.3/tests/test_repository.py +88 -0
  116. agmem-0.1.3/tests/test_resolve_helpers.py +53 -0
  117. agmem-0.1.3/tests/test_retrieval.py +134 -0
  118. agmem-0.1.3/tests/test_temporal_index.py +54 -0
  119. agmem-0.1.3/tests/test_trust.py +76 -0
  120. agmem-0.1.1/memvcs/commands/merge.py +0 -88
  121. agmem-0.1.1/setup.py +0 -64
  122. agmem-0.1.1/tests/test_repository.py +0 -90
  123. {agmem-0.1.1 → agmem-0.1.3}/LICENSE +0 -0
  124. {agmem-0.1.1 → agmem-0.1.3}/MANIFEST.in +0 -0
  125. {agmem-0.1.1 → agmem-0.1.3}/agmem.egg-info/dependency_links.txt +0 -0
  126. {agmem-0.1.1 → agmem-0.1.3}/agmem.egg-info/entry_points.txt +0 -0
  127. {agmem-0.1.1 → agmem-0.1.3}/agmem.egg-info/top_level.txt +0 -0
  128. {agmem-0.1.1 → agmem-0.1.3}/docs/CONFIG.md +0 -0
  129. {agmem-0.1.1 → agmem-0.1.3}/docs/GTM.md +0 -0
  130. {agmem-0.1.1 → agmem-0.1.3}/docs/KNOWLEDGE_GRAPH.md +0 -0
  131. {agmem-0.1.1 → agmem-0.1.3}/docs/TEST_REPORT.md +0 -0
  132. {agmem-0.1.1 → agmem-0.1.3}/docs/aux/INSTALL.md +0 -0
  133. {agmem-0.1.1 → agmem-0.1.3}/docs/aux/MARKET_POSITIONING.md +0 -0
  134. {agmem-0.1.1 → agmem-0.1.3}/docs/aux/README.md +0 -0
  135. {agmem-0.1.1 → agmem-0.1.3}/docs/aux/STRESS_TEST_REPORT.md +0 -0
  136. {agmem-0.1.1 → agmem-0.1.3}/examples/basic_workflow.sh +0 -0
  137. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/base.py +0 -0
  138. {agmem-0.1.1 → agmem-0.1.3}/memvcs/commands/mcp.py +0 -0
  139. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/__init__.py +0 -0
  140. {agmem-0.1.1 → agmem-0.1.3}/memvcs/core/constants.py +0 -0
  141. {agmem-0.1.1 → agmem-0.1.3}/memvcs/integrations/__init__.py +0 -0
  142. {agmem-0.1.1 → agmem-0.1.3}/memvcs/integrations/web_ui/__init__.py +0 -0
  143. {agmem-0.1.1 → agmem-0.1.3}/setup.cfg +0 -0
  144. {agmem-0.1.1 → agmem-0.1.3}/tests/test_edge_cases.py +0 -0
  145. {agmem-0.1.1 → agmem-0.1.3}/tests/test_pii.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agmem
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Agentic Memory Version Control System - Git for AI agent memories
5
5
  Home-page: https://github.com/vivek-tiwari-vt/agmem
6
6
  Author: agmem Team
@@ -10,19 +10,19 @@ Project-URL: Homepage, https://github.com/vivek-tiwari-vt/agmem
10
10
  Project-URL: Documentation, https://github.com/vivek-tiwari-vt/agmem#readme
11
11
  Project-URL: Repository, https://github.com/vivek-tiwari-vt/agmem
12
12
  Project-URL: Bug Tracker, https://github.com/vivek-tiwari-vt/agmem/issues
13
- Keywords: ai,agent,memory,version-control,git,vcs,llm
13
+ Keywords: ai,agent,memory,version-control,git,vcs,llm,merkle,audit,encryption,differential-privacy,trust,multi-agent
14
14
  Classifier: Development Status :: 3 - Alpha
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: License :: OSI Approved :: MIT License
17
17
  Classifier: Operating System :: OS Independent
18
18
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.8
20
19
  Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
24
23
  Classifier: Topic :: Software Development :: Version Control
25
24
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
+ Classifier: Topic :: Security :: Cryptography
26
26
  Requires-Python: >=3.8
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: LICENSE
@@ -30,9 +30,12 @@ Requires-Dist: PyYAML>=6.0.0
30
30
  Provides-Extra: dev
31
31
  Requires-Dist: pytest>=7.0.0; extra == "dev"
32
32
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
33
- Requires-Dist: black>=22.0.0; extra == "dev"
33
+ Requires-Dist: black==24.10.0; extra == "dev"
34
34
  Requires-Dist: flake8>=5.0.0; extra == "dev"
35
35
  Requires-Dist: mypy>=1.0.0; extra == "dev"
36
+ Provides-Extra: llm
37
+ Requires-Dist: openai>=1.0.0; extra == "llm"
38
+ Requires-Dist: anthropic>=0.18.0; extra == "llm"
36
39
  Provides-Extra: mcp
37
40
  Requires-Dist: mcp>=1.0.0; extra == "mcp"
38
41
  Provides-Extra: vector
@@ -47,14 +50,27 @@ Requires-Dist: google-cloud-storage>=2.0.0; extra == "cloud"
47
50
  Provides-Extra: gardener
48
51
  Requires-Dist: scikit-learn>=1.3.0; extra == "gardener"
49
52
  Requires-Dist: openai>=1.0.0; extra == "gardener"
53
+ Provides-Extra: anthropic
54
+ Requires-Dist: anthropic>=0.18.0; extra == "anthropic"
50
55
  Provides-Extra: pii
51
56
  Requires-Dist: presidio-analyzer>=2.2.0; extra == "pii"
52
57
  Provides-Extra: daemon
53
58
  Requires-Dist: watchdog>=3.0.0; extra == "daemon"
54
59
  Provides-Extra: graph
55
60
  Requires-Dist: networkx>=3.0; extra == "graph"
61
+ Provides-Extra: pack
62
+ Requires-Dist: tiktoken>=0.5.0; extra == "pack"
63
+ Provides-Extra: distill
64
+ Requires-Dist: openai>=1.0.0; extra == "distill"
65
+ Provides-Extra: verify
66
+ Requires-Dist: openai>=1.0.0; extra == "verify"
67
+ Provides-Extra: crypto
68
+ Requires-Dist: cryptography>=41.0.0; extra == "crypto"
69
+ Provides-Extra: ipfs
70
+ Requires-Dist: requests>=2.28.0; extra == "ipfs"
56
71
  Provides-Extra: all
57
72
  Requires-Dist: mcp>=1.0.0; extra == "all"
73
+ Requires-Dist: cryptography>=41.0.0; extra == "all"
58
74
  Requires-Dist: sqlite-vec>=0.1.0; extra == "all"
59
75
  Requires-Dist: sentence-transformers>=2.0.0; extra == "all"
60
76
  Requires-Dist: fastapi>=0.100.0; extra == "all"
@@ -63,8 +79,12 @@ Requires-Dist: boto3>=1.34.0; extra == "all"
63
79
  Requires-Dist: google-cloud-storage>=2.0.0; extra == "all"
64
80
  Requires-Dist: scikit-learn>=1.3.0; extra == "all"
65
81
  Requires-Dist: openai>=1.0.0; extra == "all"
82
+ Requires-Dist: anthropic>=0.18.0; extra == "all"
66
83
  Requires-Dist: watchdog>=3.0.0; extra == "all"
67
84
  Requires-Dist: networkx>=3.0; extra == "all"
85
+ Requires-Dist: tiktoken>=0.5.0; extra == "all"
86
+ Requires-Dist: presidio-analyzer>=2.2.0; extra == "all"
87
+ Requires-Dist: requests>=2.28.0; extra == "all"
68
88
  Dynamic: author
69
89
  Dynamic: home-page
70
90
  Dynamic: license-file
@@ -72,6 +92,7 @@ Dynamic: requires-python
72
92
 
73
93
  # agmem - Agentic Memory Version Control System
74
94
 
95
+ [![PyPI version](https://img.shields.io/pypi/v/agmem.svg)](https://pypi.org/project/agmem/)
75
96
  [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
76
97
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77
98
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
@@ -99,16 +120,31 @@ agmem solves all of these problems with a familiar Git-like interface.
99
120
  - ✅ **Branch/tag names with `/`** — Git-style refs: `feature/test`, `releases/v1` (path-validated)
100
121
  - ✅ **Content-addressable storage** — SHA-256 deduplication like Git
101
122
  - ✅ **Memory-type-aware merging** — Episodic append, semantic consolidate, procedural prefer-new
102
- - ✅ **Remote (file://)** — `clone`, `push`, `pull`, `remote`; pull merges into current branch
123
+ - ✅ **Remote (file://)** — `clone`, `push`, `pull`, `remote`; pull merges into current branch; push conflict detection (non–fast-forward reject)
103
124
  - ✅ **Search** — Semantic with `agmem[vector]`, or plain text over `current/` when vector deps missing
104
125
  - ✅ **Knowledge graph** — `agmem graph` from wikilinks/tags; `--no-similarity`, `--format d3`, `--serve` (optional `agmem[web]`)
105
- - ✅ **Integrity** — `agmem fsck`; path/ref/hash validation throughout (no path traversal)
126
+ - ✅ **Integrity** — `agmem fsck` (objects, refs, vector store, Merkle/signature); `agmem verify --crypto`; path/ref/hash validation (no path traversal)
127
+ - ✅ **Cryptographic commit verification** — Merkle tree over blobs; Ed25519 signing of root; verify on checkout, pull, `verify`, `fsck`; Merkle proofs for single-blob verification
128
+ - ✅ **Encryption at rest** — Optional AES-256-GCM with Argon2id key derivation; hash-then-encrypt preserves deduplication
129
+ - ✅ **Tamper-evident audit trail** — Append-only hash-chained log (init, add, commit, checkout, merge, push, pull, config); `agmem audit` and `agmem audit --verify`
130
+ - ✅ **Multi-agent trust** — Trust store (full / conditional / untrusted) per public key; applied on pull/merge; clone copies remote keys
131
+ - ✅ **Conflict resolution** — `agmem resolve` with ours/theirs/both; conflicts persisted in `.mem/merge/`; path-safe
132
+ - ✅ **Differential privacy** — Epsilon/delta budget in `.mem/privacy_budget.json`; `--private` on `agmem distill` and `agmem garden` when enabled
133
+ - ✅ **Pack files & GC** — `agmem gc` (reachable from refs, prune loose, optional repack); pack format and index in core
134
+ - ✅ **Multi-provider LLM** — OpenAI and Anthropic via `memvcs.core.llm`; config/repo or env; used by gardener, distiller, consistency, merge
135
+ - ✅ **Temporal querying** — Point-in-time and range queries in temporal index; frontmatter timestamps
136
+ - ✅ **Federated collaboration** — `agmem federated push|pull` (stub) for coordinator-based summary sharing
137
+ - ✅ **Zero-knowledge proofs** — `agmem prove` (stub) for keyword containment and memory freshness
138
+ - ✅ **Daemon health** — Periodic Merkle verification in daemon loop; safe auto-remediation hooks
139
+ - ✅ **GPU acceleration** — Vector store detects GPU for embedding model when available
106
140
  - ✅ **Optional** — `serve`, `daemon` (watch + auto-commit), `garden` (episode archival), MCP server; install extras as needed
107
141
 
108
142
  ## Quick Start
109
143
 
110
144
  ### Installation
111
145
 
146
+ **From PyPI** ([pypi.org/project/agmem](https://pypi.org/project/agmem/)):
147
+
112
148
  ```bash
113
149
  pip install agmem
114
150
  ```
@@ -219,12 +255,18 @@ All commands are listed below. Highlights: **`agmem blame <file>`** (who changed
219
255
 
220
256
  | Command | Description |
221
257
  |---------|-------------|
222
- | `agmem clone <url> [dir]` | Clone repo (file:// URLs); path-validated |
258
+ | `agmem clone <url> [dir]` | Clone repo (file:// URLs); path-validated; copies remote public keys |
223
259
  | `agmem remote add <name> <url>` | Add remote |
224
260
  | `agmem remote show` | List remotes |
225
- | `agmem push <remote> <branch>` | Push branch (refs validated) |
226
- | `agmem pull [--remote <name>] [--branch <b>]` | Fetch and merge into current branch |
227
- | `agmem fsck` | Check objects, refs, optional vector store |
261
+ | `agmem push <remote> <branch>` | Push branch (refs validated); rejects non–fast-forward |
262
+ | `agmem pull [--remote <name>] [--branch <b>]` | Fetch and merge into current branch; optional crypto/trust checks |
263
+ | `agmem fsck` | Check objects, refs, optional vector store, Merkle roots and signatures |
264
+ | `agmem verify [ref]` | Belief consistency (contradictions); use `--crypto` to verify commit Merkle/signature |
265
+ | `agmem audit [--verify] [--max n]` | Show tamper-evident audit log; `--verify` checks hash chain |
266
+ | `agmem resolve [path]` | Resolve merge conflicts (ours/theirs/both); path under `current/` |
267
+ | `agmem gc [--dry-run] [--prune-days n]` | Garbage collection: delete unreachable loose objects; optional repack |
268
+ | `agmem prove --memory <path> --property keyword\|freshness --value <v> [-o out]` | Generate ZK proofs (stub) |
269
+ | `agmem federated push\|pull` | Federated collaboration (stub; requires coordinator in config) |
228
270
 
229
271
  ### Optional (install extras)
230
272
 
@@ -293,7 +335,81 @@ Configure in `.mem/config.json` (e.g. `archive_dir`, consolidation thresholds).
293
335
  agmem fsck
294
336
  ```
295
337
 
296
- Verifies objects, refs, and (if installed) the vector store. Run after cloning or if something looks wrong.
338
+ Verifies objects, refs, and (if installed) the vector store. When commit metadata includes `merkle_root` and optionally `signature`, fsck also runs cryptographic verification. Run after cloning or if something looks wrong.
339
+
340
+ ---
341
+
342
+ ## Security, trust & advanced features
343
+
344
+ The following 18 capabilities are implemented (or stubbed) per the agmem features implementation plan. They are grouped by tier.
345
+
346
+ ### Tier 1 — Security and trust
347
+
348
+ | # | Feature | Description |
349
+ |---|---------|-------------|
350
+ | **1** | **Cryptographic commit verification** | Merkle tree over commit blobs; Ed25519 signing of Merkle root; verification on checkout, pull, `agmem verify --crypto`, and `agmem fsck`. Merkle proofs for single-blob verification. Keys: `.mem/keys/`; private key from env `AGMEM_SIGNING_PRIVATE_KEY` or `AGMEM_SIGNING_PRIVATE_KEY_FILE`. Old commits without `merkle_root` are unverified. |
351
+ | **2** | **Encryption at rest** | Optional AES-256-GCM for object contents; key from passphrase via Argon2id; hash-then-encrypt preserves deduplication. Config in `.mem/encryption.json` or repo config; opt-in. |
352
+ | **3** | **Tamper-evident audit trail** | Append-only, hash-chained log in `.mem/audit/` for init, add, commit, checkout, merge, push, pull, config. **Commands:** `agmem audit` (show entries), `agmem audit --verify` (verify chain). |
353
+
354
+ ### Tier 2 — Multi-agent collaboration
355
+
356
+ | # | Feature | Description |
357
+ |---|---------|-------------|
358
+ | **4** | **Multi-agent trust and identity** | Trust store (full / conditional / untrusted) per public key; applied on pull and merge. Clone copies remote public keys; user adds them to trust store. Identity = keypair (same as commit signing). |
359
+ | **5** | **Federated memory collaboration** | Agents share summaries or aggregated updates via a coordinator. **Command:** `agmem federated push` / `agmem federated pull` (stub). Config: `federated.enabled`, `coordinator_url`. |
360
+ | **6** | **Conflict resolution interface** | Structured resolution: ours / theirs / both per path. **Command:** `agmem resolve [path]`. Conflicts persisted in `.mem/merge/conflicts.json`; path traversal protected. |
361
+
362
+ ### Tier 3 — Privacy
363
+
364
+ | # | Feature | Description |
365
+ |---|---------|-------------|
366
+ | **7** | **Differential privacy** | Epsilon/delta budget per repo in `.mem/privacy_budget.json`. **Usage:** `agmem distill --private`, `agmem garden --private`; blocks when budget exceeded. Config: `differential_privacy.max_epsilon`, `delta`. |
367
+ | **8** | **Zero-knowledge proofs** | zk-SNARK-style proofs for keyword containment and memory freshness. **Command:** `agmem prove --memory <path> --property keyword|freshness --value <v> [-o out]` (stub). |
368
+
369
+ ### Tier 4 — Storage and distribution
370
+
371
+ | # | Feature | Description |
372
+ |---|---------|-------------|
373
+ | **9** | **Decentralized storage (IPFS)** | Push/pull via IPFS CIDs; pinning and gateway fallback. Stub in `memvcs.core.ipfs_remote`; optional dependency. |
374
+ | **10** | **Pack files and garbage collection** | Pack loose objects into pack file + index; GC deletes unreachable objects. **Command:** `agmem gc [--dry-run] [--prune-days n]`. Config: `gc_prune_days` (default 90). |
375
+ | **11** | **Enhanced cloud remote operations** | Push conflict detection: non–fast-forward push rejected with a clear message. S3/GCS remotes and distributed locking in storage layer. |
376
+
377
+ ### Tier 5 — Intelligence and retrieval
378
+
379
+ | # | Feature | Description |
380
+ |---|---------|-------------|
381
+ | **12** | **Multi-provider LLM** | `memvcs.core.llm`: OpenAI and Anthropic; factory by config or env. Used by gardener, distiller, consistency checker, merge. Credentials via env (e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`). |
382
+ | **13** | **Enhanced semantic compression** | Multi-stage pipeline (chunk → fact extraction → dedup → embed → tiered storage); hybrid retrieval. Docstrings and design in distiller/vector store. |
383
+ | **14** | **Temporal querying and time-travel** | Point-in-time and range queries in `memvcs.core.temporal_index`; frontmatter timestamps; “state at T” resolution. |
384
+ | **15** | **Cross-memory relationship graph** | Knowledge graph extended with co-occurrence, semantic similarity, causal and entity edges; incremental updates. Docstrings in `knowledge_graph.py`. |
385
+
386
+ ### Tier 6 — Operations and maintenance
387
+
388
+ | # | Feature | Description |
389
+ |---|---------|-------------|
390
+ | **16** | **Automated memory health monitoring** | Daemon runs periodic Merkle verification; safe auto-remediation hooks; unsafe actions alert only. |
391
+ | **17** | **GPU-accelerated operations** | Vector store detects GPU for embedding model (e.g. sentence-transformers with CUDA/Metal); transparent CPU fallback. |
392
+ | **18** | **Test suite and quality** | Broad tests: object store, merge, crypto (Merkle, proofs, verify), trust, privacy budget, pack/GC, resolve helpers, encryption, LLM provider; CI with coverage. |
393
+
394
+ ### New files and config (summary)
395
+
396
+ | Addition | Purpose |
397
+ |----------|---------|
398
+ | `memvcs/core/crypto_verify.py` | Merkle build/verify, Ed25519 sign/verify, Merkle proofs |
399
+ | `memvcs/core/audit.py` | Tamper-evident audit append and verify |
400
+ | `memvcs/core/trust.py` | Trust store (key → level) |
401
+ | `memvcs/core/privacy_budget.py` | Epsilon/delta budget for DP |
402
+ | `memvcs/core/pack.py` | Pack format, index, GC |
403
+ | `memvcs/core/encryption.py` | AES-256-GCM, Argon2id, config |
404
+ | `memvcs/core/llm/` | LLM provider interface and OpenAI/Anthropic |
405
+ | `memvcs/core/zk_proofs.py` | ZK proof stubs |
406
+ | `memvcs/core/federated.py` | Federated push/pull stubs |
407
+ | `.mem/audit/` | Audit log |
408
+ | `.mem/keys/` | Public (and optional private) keys |
409
+ | `.mem/trust/` or config | Trust store |
410
+ | `.mem/privacy_budget.json` | DP budget state |
411
+ | `.mem/merge/conflicts.json` | Unresolved merge conflicts |
412
+ | Commit `metadata` | `merkle_root`, `signature` |
297
413
 
298
414
  ---
299
415
 
@@ -442,10 +558,20 @@ Repository configuration is stored in `.mem/config.json`:
442
558
  "summarizer_model": "default",
443
559
  "max_episode_size": 1048576,
444
560
  "consolidation_threshold": 100
561
+ },
562
+ "differential_privacy": {
563
+ "max_epsilon": 1.0,
564
+ "delta": 1e-5
565
+ },
566
+ "federated": {
567
+ "enabled": false,
568
+ "coordinator_url": ""
445
569
  }
446
570
  }
447
571
  ```
448
572
 
573
+ Optional sections: **`differential_privacy`** (for `--private` on distill/garden); **`federated`** (for `agmem federated`); **`signing`** (public key for commit verification); trust store under `.mem/trust/` or config; encryption in `.mem/encryption.json` when enabled.
574
+
449
575
  ### agmem config (cloud and PII)
450
576
 
451
577
  Optional user/repo config for S3/GCS and PII hooks:
@@ -507,13 +633,17 @@ mypy memvcs/
507
633
  - [x] Basic commands (init, add, commit, status, log, diff, show, reset, tag, stash, reflog, blame, tree, clean)
508
634
  - [x] HEAD~n resolution; branch/tag names with `/` (Git-style)
509
635
  - [x] Branching and checkout; merging with memory-type-aware strategies
510
- - [x] Remote operations (clone, push, pull, remote) — file:// URLs; pull merges into current branch
636
+ - [x] Remote operations (clone, push, pull, remote) — file:// URLs; pull merges into current branch; push conflict detection
511
637
  - [x] Search — semantic with `agmem[vector]`, plain text fallback
512
638
  - [x] Knowledge graph (`agmem graph`) — wikilinks, tags, optional similarity; `--no-similarity`, `--serve`
513
- - [x] Integrity (`agmem fsck`); path/ref/hash validation (security)
639
+ - [x] Integrity (`agmem fsck`); path/ref/hash validation; Merkle/signature verification
514
640
  - [x] Web UI (`agmem serve`); MCP server (`agmem mcp`); daemon (`agmem daemon`); garden (`agmem garden`)
515
- - [ ] Garbage collection
516
- - [ ] Pack files for efficiency
641
+ - [x] Cryptographic commit verification (Merkle tree, Ed25519 signing, verify on checkout/pull/fsck)
642
+ - [x] Tamper-evident audit trail (`agmem audit`); multi-agent trust store; conflict resolution (`agmem resolve`)
643
+ - [x] Encryption at rest (optional AES-256-GCM); differential privacy budget (`--private` on distill/garden)
644
+ - [x] Pack files and garbage collection (`agmem gc`); ZK proofs and federated stubs (`agmem prove`, `agmem federated`)
645
+ - [x] Multi-provider LLM (OpenAI, Anthropic); temporal range queries; daemon health checks; GPU detection; test suite and CI
646
+ - [ ] IPFS remote (stub in place); full ZK circuits and federated coordinator
517
647
 
518
648
  ## Integrations
519
649
 
@@ -606,8 +736,10 @@ agmem graph --serve # Serve knowledge graph UI (same extra)
606
736
 
607
737
  - **Full history:** `agmem log`, `agmem reflog`
608
738
  - **Line-level attribution:** `agmem blame <file>` — see which commit and author last changed each line (e.g. `agmem blame current/semantic/user-preferences.md`)
739
+ - **Tamper-evident audit:** `agmem audit` and `agmem audit --verify` for hash-chained operation log
740
+ - **Cryptographic verification:** `agmem verify --crypto` and `agmem fsck` for Merkle roots and Ed25519 signatures
609
741
  - **Visual audit:** `agmem serve` for browser-based history and diff viewer
610
- - **Integrity:** `agmem fsck` to verify objects and refs
742
+ - **Integrity:** `agmem fsck` to verify objects, refs, and commit signatures
611
743
 
612
744
  ## Ecosystem Plugin Patterns
613
745
 
@@ -639,6 +771,15 @@ Or connect via MCP and call `memory_add` from your agent.
639
771
  3. Write via `agmem add` + `agmem commit` or MCP `memory_add`
640
772
  4. Optional: Use `agmem search` for semantic retrieval
641
773
 
774
+ ## Links
775
+
776
+ - **PyPI:** [pypi.org/project/agmem](https://pypi.org/project/agmem/) — `pip install agmem`
777
+
778
+ **GitHub repo (About):** Use this description and topics in your repo’s **About** (gear → Description & topics):
779
+
780
+ - **Description:** Git for AI agent memories. Version control for episodic logs, semantic knowledge, and procedural workflows.
781
+ - **Topics:** `ai` `agent` `memory` `version-control` `git` `vcs` `llm` `python`
782
+
642
783
  ## Contributing
643
784
 
644
785
  Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
@@ -1,5 +1,6 @@
1
1
  # agmem - Agentic Memory Version Control System
2
2
 
3
+ [![PyPI version](https://img.shields.io/pypi/v/agmem.svg)](https://pypi.org/project/agmem/)
3
4
  [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
4
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
6
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
@@ -27,16 +28,31 @@ agmem solves all of these problems with a familiar Git-like interface.
27
28
  - ✅ **Branch/tag names with `/`** — Git-style refs: `feature/test`, `releases/v1` (path-validated)
28
29
  - ✅ **Content-addressable storage** — SHA-256 deduplication like Git
29
30
  - ✅ **Memory-type-aware merging** — Episodic append, semantic consolidate, procedural prefer-new
30
- - ✅ **Remote (file://)** — `clone`, `push`, `pull`, `remote`; pull merges into current branch
31
+ - ✅ **Remote (file://)** — `clone`, `push`, `pull`, `remote`; pull merges into current branch; push conflict detection (non–fast-forward reject)
31
32
  - ✅ **Search** — Semantic with `agmem[vector]`, or plain text over `current/` when vector deps missing
32
33
  - ✅ **Knowledge graph** — `agmem graph` from wikilinks/tags; `--no-similarity`, `--format d3`, `--serve` (optional `agmem[web]`)
33
- - ✅ **Integrity** — `agmem fsck`; path/ref/hash validation throughout (no path traversal)
34
+ - ✅ **Integrity** — `agmem fsck` (objects, refs, vector store, Merkle/signature); `agmem verify --crypto`; path/ref/hash validation (no path traversal)
35
+ - ✅ **Cryptographic commit verification** — Merkle tree over blobs; Ed25519 signing of root; verify on checkout, pull, `verify`, `fsck`; Merkle proofs for single-blob verification
36
+ - ✅ **Encryption at rest** — Optional AES-256-GCM with Argon2id key derivation; hash-then-encrypt preserves deduplication
37
+ - ✅ **Tamper-evident audit trail** — Append-only hash-chained log (init, add, commit, checkout, merge, push, pull, config); `agmem audit` and `agmem audit --verify`
38
+ - ✅ **Multi-agent trust** — Trust store (full / conditional / untrusted) per public key; applied on pull/merge; clone copies remote keys
39
+ - ✅ **Conflict resolution** — `agmem resolve` with ours/theirs/both; conflicts persisted in `.mem/merge/`; path-safe
40
+ - ✅ **Differential privacy** — Epsilon/delta budget in `.mem/privacy_budget.json`; `--private` on `agmem distill` and `agmem garden` when enabled
41
+ - ✅ **Pack files & GC** — `agmem gc` (reachable from refs, prune loose, optional repack); pack format and index in core
42
+ - ✅ **Multi-provider LLM** — OpenAI and Anthropic via `memvcs.core.llm`; config/repo or env; used by gardener, distiller, consistency, merge
43
+ - ✅ **Temporal querying** — Point-in-time and range queries in temporal index; frontmatter timestamps
44
+ - ✅ **Federated collaboration** — `agmem federated push|pull` (stub) for coordinator-based summary sharing
45
+ - ✅ **Zero-knowledge proofs** — `agmem prove` (stub) for keyword containment and memory freshness
46
+ - ✅ **Daemon health** — Periodic Merkle verification in daemon loop; safe auto-remediation hooks
47
+ - ✅ **GPU acceleration** — Vector store detects GPU for embedding model when available
34
48
  - ✅ **Optional** — `serve`, `daemon` (watch + auto-commit), `garden` (episode archival), MCP server; install extras as needed
35
49
 
36
50
  ## Quick Start
37
51
 
38
52
  ### Installation
39
53
 
54
+ **From PyPI** ([pypi.org/project/agmem](https://pypi.org/project/agmem/)):
55
+
40
56
  ```bash
41
57
  pip install agmem
42
58
  ```
@@ -147,12 +163,18 @@ All commands are listed below. Highlights: **`agmem blame <file>`** (who changed
147
163
 
148
164
  | Command | Description |
149
165
  |---------|-------------|
150
- | `agmem clone <url> [dir]` | Clone repo (file:// URLs); path-validated |
166
+ | `agmem clone <url> [dir]` | Clone repo (file:// URLs); path-validated; copies remote public keys |
151
167
  | `agmem remote add <name> <url>` | Add remote |
152
168
  | `agmem remote show` | List remotes |
153
- | `agmem push <remote> <branch>` | Push branch (refs validated) |
154
- | `agmem pull [--remote <name>] [--branch <b>]` | Fetch and merge into current branch |
155
- | `agmem fsck` | Check objects, refs, optional vector store |
169
+ | `agmem push <remote> <branch>` | Push branch (refs validated); rejects non–fast-forward |
170
+ | `agmem pull [--remote <name>] [--branch <b>]` | Fetch and merge into current branch; optional crypto/trust checks |
171
+ | `agmem fsck` | Check objects, refs, optional vector store, Merkle roots and signatures |
172
+ | `agmem verify [ref]` | Belief consistency (contradictions); use `--crypto` to verify commit Merkle/signature |
173
+ | `agmem audit [--verify] [--max n]` | Show tamper-evident audit log; `--verify` checks hash chain |
174
+ | `agmem resolve [path]` | Resolve merge conflicts (ours/theirs/both); path under `current/` |
175
+ | `agmem gc [--dry-run] [--prune-days n]` | Garbage collection: delete unreachable loose objects; optional repack |
176
+ | `agmem prove --memory <path> --property keyword\|freshness --value <v> [-o out]` | Generate ZK proofs (stub) |
177
+ | `agmem federated push\|pull` | Federated collaboration (stub; requires coordinator in config) |
156
178
 
157
179
  ### Optional (install extras)
158
180
 
@@ -221,7 +243,81 @@ Configure in `.mem/config.json` (e.g. `archive_dir`, consolidation thresholds).
221
243
  agmem fsck
222
244
  ```
223
245
 
224
- Verifies objects, refs, and (if installed) the vector store. Run after cloning or if something looks wrong.
246
+ Verifies objects, refs, and (if installed) the vector store. When commit metadata includes `merkle_root` and optionally `signature`, fsck also runs cryptographic verification. Run after cloning or if something looks wrong.
247
+
248
+ ---
249
+
250
+ ## Security, trust & advanced features
251
+
252
+ The following 18 capabilities are implemented (or stubbed) per the agmem features implementation plan. They are grouped by tier.
253
+
254
+ ### Tier 1 — Security and trust
255
+
256
+ | # | Feature | Description |
257
+ |---|---------|-------------|
258
+ | **1** | **Cryptographic commit verification** | Merkle tree over commit blobs; Ed25519 signing of Merkle root; verification on checkout, pull, `agmem verify --crypto`, and `agmem fsck`. Merkle proofs for single-blob verification. Keys: `.mem/keys/`; private key from env `AGMEM_SIGNING_PRIVATE_KEY` or `AGMEM_SIGNING_PRIVATE_KEY_FILE`. Old commits without `merkle_root` are unverified. |
259
+ | **2** | **Encryption at rest** | Optional AES-256-GCM for object contents; key from passphrase via Argon2id; hash-then-encrypt preserves deduplication. Config in `.mem/encryption.json` or repo config; opt-in. |
260
+ | **3** | **Tamper-evident audit trail** | Append-only, hash-chained log in `.mem/audit/` for init, add, commit, checkout, merge, push, pull, config. **Commands:** `agmem audit` (show entries), `agmem audit --verify` (verify chain). |
261
+
262
+ ### Tier 2 — Multi-agent collaboration
263
+
264
+ | # | Feature | Description |
265
+ |---|---------|-------------|
266
+ | **4** | **Multi-agent trust and identity** | Trust store (full / conditional / untrusted) per public key; applied on pull and merge. Clone copies remote public keys; user adds them to trust store. Identity = keypair (same as commit signing). |
267
+ | **5** | **Federated memory collaboration** | Agents share summaries or aggregated updates via a coordinator. **Command:** `agmem federated push` / `agmem federated pull` (stub). Config: `federated.enabled`, `coordinator_url`. |
268
+ | **6** | **Conflict resolution interface** | Structured resolution: ours / theirs / both per path. **Command:** `agmem resolve [path]`. Conflicts persisted in `.mem/merge/conflicts.json`; path traversal protected. |
269
+
270
+ ### Tier 3 — Privacy
271
+
272
+ | # | Feature | Description |
273
+ |---|---------|-------------|
274
+ | **7** | **Differential privacy** | Epsilon/delta budget per repo in `.mem/privacy_budget.json`. **Usage:** `agmem distill --private`, `agmem garden --private`; blocks when budget exceeded. Config: `differential_privacy.max_epsilon`, `delta`. |
275
+ | **8** | **Zero-knowledge proofs** | zk-SNARK-style proofs for keyword containment and memory freshness. **Command:** `agmem prove --memory <path> --property keyword|freshness --value <v> [-o out]` (stub). |
276
+
277
+ ### Tier 4 — Storage and distribution
278
+
279
+ | # | Feature | Description |
280
+ |---|---------|-------------|
281
+ | **9** | **Decentralized storage (IPFS)** | Push/pull via IPFS CIDs; pinning and gateway fallback. Stub in `memvcs.core.ipfs_remote`; optional dependency. |
282
+ | **10** | **Pack files and garbage collection** | Pack loose objects into pack file + index; GC deletes unreachable objects. **Command:** `agmem gc [--dry-run] [--prune-days n]`. Config: `gc_prune_days` (default 90). |
283
+ | **11** | **Enhanced cloud remote operations** | Push conflict detection: non–fast-forward push rejected with a clear message. S3/GCS remotes and distributed locking in storage layer. |
284
+
285
+ ### Tier 5 — Intelligence and retrieval
286
+
287
+ | # | Feature | Description |
288
+ |---|---------|-------------|
289
+ | **12** | **Multi-provider LLM** | `memvcs.core.llm`: OpenAI and Anthropic; factory by config or env. Used by gardener, distiller, consistency checker, merge. Credentials via env (e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`). |
290
+ | **13** | **Enhanced semantic compression** | Multi-stage pipeline (chunk → fact extraction → dedup → embed → tiered storage); hybrid retrieval. Docstrings and design in distiller/vector store. |
291
+ | **14** | **Temporal querying and time-travel** | Point-in-time and range queries in `memvcs.core.temporal_index`; frontmatter timestamps; “state at T” resolution. |
292
+ | **15** | **Cross-memory relationship graph** | Knowledge graph extended with co-occurrence, semantic similarity, causal and entity edges; incremental updates. Docstrings in `knowledge_graph.py`. |
293
+
294
+ ### Tier 6 — Operations and maintenance
295
+
296
+ | # | Feature | Description |
297
+ |---|---------|-------------|
298
+ | **16** | **Automated memory health monitoring** | Daemon runs periodic Merkle verification; safe auto-remediation hooks; unsafe actions alert only. |
299
+ | **17** | **GPU-accelerated operations** | Vector store detects GPU for embedding model (e.g. sentence-transformers with CUDA/Metal); transparent CPU fallback. |
300
+ | **18** | **Test suite and quality** | Broad tests: object store, merge, crypto (Merkle, proofs, verify), trust, privacy budget, pack/GC, resolve helpers, encryption, LLM provider; CI with coverage. |
301
+
302
+ ### New files and config (summary)
303
+
304
+ | Addition | Purpose |
305
+ |----------|---------|
306
+ | `memvcs/core/crypto_verify.py` | Merkle build/verify, Ed25519 sign/verify, Merkle proofs |
307
+ | `memvcs/core/audit.py` | Tamper-evident audit append and verify |
308
+ | `memvcs/core/trust.py` | Trust store (key → level) |
309
+ | `memvcs/core/privacy_budget.py` | Epsilon/delta budget for DP |
310
+ | `memvcs/core/pack.py` | Pack format, index, GC |
311
+ | `memvcs/core/encryption.py` | AES-256-GCM, Argon2id, config |
312
+ | `memvcs/core/llm/` | LLM provider interface and OpenAI/Anthropic |
313
+ | `memvcs/core/zk_proofs.py` | ZK proof stubs |
314
+ | `memvcs/core/federated.py` | Federated push/pull stubs |
315
+ | `.mem/audit/` | Audit log |
316
+ | `.mem/keys/` | Public (and optional private) keys |
317
+ | `.mem/trust/` or config | Trust store |
318
+ | `.mem/privacy_budget.json` | DP budget state |
319
+ | `.mem/merge/conflicts.json` | Unresolved merge conflicts |
320
+ | Commit `metadata` | `merkle_root`, `signature` |
225
321
 
226
322
  ---
227
323
 
@@ -370,10 +466,20 @@ Repository configuration is stored in `.mem/config.json`:
370
466
  "summarizer_model": "default",
371
467
  "max_episode_size": 1048576,
372
468
  "consolidation_threshold": 100
469
+ },
470
+ "differential_privacy": {
471
+ "max_epsilon": 1.0,
472
+ "delta": 1e-5
473
+ },
474
+ "federated": {
475
+ "enabled": false,
476
+ "coordinator_url": ""
373
477
  }
374
478
  }
375
479
  ```
376
480
 
481
+ Optional sections: **`differential_privacy`** (for `--private` on distill/garden); **`federated`** (for `agmem federated`); **`signing`** (public key for commit verification); trust store under `.mem/trust/` or config; encryption in `.mem/encryption.json` when enabled.
482
+
377
483
  ### agmem config (cloud and PII)
378
484
 
379
485
  Optional user/repo config for S3/GCS and PII hooks:
@@ -435,13 +541,17 @@ mypy memvcs/
435
541
  - [x] Basic commands (init, add, commit, status, log, diff, show, reset, tag, stash, reflog, blame, tree, clean)
436
542
  - [x] HEAD~n resolution; branch/tag names with `/` (Git-style)
437
543
  - [x] Branching and checkout; merging with memory-type-aware strategies
438
- - [x] Remote operations (clone, push, pull, remote) — file:// URLs; pull merges into current branch
544
+ - [x] Remote operations (clone, push, pull, remote) — file:// URLs; pull merges into current branch; push conflict detection
439
545
  - [x] Search — semantic with `agmem[vector]`, plain text fallback
440
546
  - [x] Knowledge graph (`agmem graph`) — wikilinks, tags, optional similarity; `--no-similarity`, `--serve`
441
- - [x] Integrity (`agmem fsck`); path/ref/hash validation (security)
547
+ - [x] Integrity (`agmem fsck`); path/ref/hash validation; Merkle/signature verification
442
548
  - [x] Web UI (`agmem serve`); MCP server (`agmem mcp`); daemon (`agmem daemon`); garden (`agmem garden`)
443
- - [ ] Garbage collection
444
- - [ ] Pack files for efficiency
549
+ - [x] Cryptographic commit verification (Merkle tree, Ed25519 signing, verify on checkout/pull/fsck)
550
+ - [x] Tamper-evident audit trail (`agmem audit`); multi-agent trust store; conflict resolution (`agmem resolve`)
551
+ - [x] Encryption at rest (optional AES-256-GCM); differential privacy budget (`--private` on distill/garden)
552
+ - [x] Pack files and garbage collection (`agmem gc`); ZK proofs and federated stubs (`agmem prove`, `agmem federated`)
553
+ - [x] Multi-provider LLM (OpenAI, Anthropic); temporal range queries; daemon health checks; GPU detection; test suite and CI
554
+ - [ ] IPFS remote (stub in place); full ZK circuits and federated coordinator
445
555
 
446
556
  ## Integrations
447
557
 
@@ -534,8 +644,10 @@ agmem graph --serve # Serve knowledge graph UI (same extra)
534
644
 
535
645
  - **Full history:** `agmem log`, `agmem reflog`
536
646
  - **Line-level attribution:** `agmem blame <file>` — see which commit and author last changed each line (e.g. `agmem blame current/semantic/user-preferences.md`)
647
+ - **Tamper-evident audit:** `agmem audit` and `agmem audit --verify` for hash-chained operation log
648
+ - **Cryptographic verification:** `agmem verify --crypto` and `agmem fsck` for Merkle roots and Ed25519 signatures
537
649
  - **Visual audit:** `agmem serve` for browser-based history and diff viewer
538
- - **Integrity:** `agmem fsck` to verify objects and refs
650
+ - **Integrity:** `agmem fsck` to verify objects, refs, and commit signatures
539
651
 
540
652
  ## Ecosystem Plugin Patterns
541
653
 
@@ -567,6 +679,15 @@ Or connect via MCP and call `memory_add` from your agent.
567
679
  3. Write via `agmem add` + `agmem commit` or MCP `memory_add`
568
680
  4. Optional: Use `agmem search` for semantic retrieval
569
681
 
682
+ ## Links
683
+
684
+ - **PyPI:** [pypi.org/project/agmem](https://pypi.org/project/agmem/) — `pip install agmem`
685
+
686
+ **GitHub repo (About):** Use this description and topics in your repo’s **About** (gear → Description & topics):
687
+
688
+ - **Description:** Git for AI agent memories. Version control for episodic logs, semantic knowledge, and procedural workflows.
689
+ - **Topics:** `ai` `agent` `memory` `version-control` `git` `vcs` `llm` `python`
690
+
570
691
  ## Contributing
571
692
 
572
693
  Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.