agent-memory-os 0.2.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 (81) hide show
  1. agent_memory_os-0.2.3/.claude/launch.json +18 -0
  2. agent_memory_os-0.2.3/.claude/settings.local.json +11 -0
  3. agent_memory_os-0.2.3/.gitignore +16 -0
  4. agent_memory_os-0.2.3/CHANGELOG.md +12 -0
  5. agent_memory_os-0.2.3/LICENSE +201 -0
  6. agent_memory_os-0.2.3/NOTICE +5 -0
  7. agent_memory_os-0.2.3/PKG-INFO +148 -0
  8. agent_memory_os-0.2.3/PROGRESS.md +68 -0
  9. agent_memory_os-0.2.3/PROJECT_STATUS.md +134 -0
  10. agent_memory_os-0.2.3/README.md +123 -0
  11. agent_memory_os-0.2.3/SPEC.md +282 -0
  12. agent_memory_os-0.2.3/docs/AgentMemoryOS_README.md +38 -0
  13. agent_memory_os-0.2.3/docs/CANARY_MONITORING_SCHEDULE.md +23 -0
  14. agent_memory_os-0.2.3/docs/HISTORY.md +537 -0
  15. agent_memory_os-0.2.3/docs/INSTALLATION.md +77 -0
  16. agent_memory_os-0.2.3/docs/Memory_Resonance_Prototype.md +13 -0
  17. agent_memory_os-0.2.3/docs/Memory_Resonance_Spec.md +35 -0
  18. agent_memory_os-0.2.3/docs/PROJECT_STATUS.md +38 -0
  19. agent_memory_os-0.2.3/docs/ROADMAP.md +47 -0
  20. agent_memory_os-0.2.3/docs/Shadow_Mode_Timeline.md +34 -0
  21. agent_memory_os-0.2.3/docs/Shadow_Mode_Verification_Report.md +41 -0
  22. agent_memory_os-0.2.3/docs/adr/ADR-0001-turbovec-semantic-sidecar-positioning.md +291 -0
  23. agent_memory_os-0.2.3/docs/blockers/current.md +58 -0
  24. agent_memory_os-0.2.3/docs/evidence/20260609_120837-repo-audit.md +69 -0
  25. agent_memory_os-0.2.3/docs/evidence/20260609_121749-activation-gate-verification.md +98 -0
  26. agent_memory_os-0.2.3/docs/evidence/20260617_221742-webui-availability-triage.md +73 -0
  27. agent_memory_os-0.2.3/docs/evidence/20260617_225724-webui-port-8000-correction.md +57 -0
  28. agent_memory_os-0.2.3/docs/handoffs/20260609_120837-mizuki-to-neo-governance-fill.md +39 -0
  29. agent_memory_os-0.2.3/docs/hermes-activation-gates.md +208 -0
  30. agent_memory_os-0.2.3/docs/plans/20260605_100751-memory-decay-recency-v0.2.md +252 -0
  31. agent_memory_os-0.2.3/docs/plans/20260605_114049-retrieval-foundation-v0.2.1.md +157 -0
  32. agent_memory_os-0.2.3/docs/plans/20260605_143442-version-downgrade-verification.md +245 -0
  33. agent_memory_os-0.2.3/docs/plans/20260608_174539-turbovec-semantic-provider-validation.md +529 -0
  34. agent_memory_os-0.2.3/docs/plans/20260613_dco-technical-design.md +56 -0
  35. agent_memory_os-0.2.3/docs/portfolio-status.md +52 -0
  36. agent_memory_os-0.2.3/docs/project-status/current.md +59 -0
  37. agent_memory_os-0.2.3/docs/reviews/.gitkeep +0 -0
  38. agent_memory_os-0.2.3/docs/reviews/20260609_120837-neo-consistency-review.md +74 -0
  39. agent_memory_os-0.2.3/docs/reviews/20260609_122032-mizuki-portfolio-maintenance.md +46 -0
  40. agent_memory_os-0.2.3/docs/stress-cases/case-01-noisy-truth.md +344 -0
  41. agent_memory_os-0.2.3/pyproject.toml +34 -0
  42. agent_memory_os-0.2.3/scripts/verify_acl_identities.py +170 -0
  43. agent_memory_os-0.2.3/scripts/verify_downgrade_compatibility.py +472 -0
  44. agent_memory_os-0.2.3/src/agent_memory_os/__init__.py +17 -0
  45. agent_memory_os-0.2.3/src/agent_memory_os/cache.py +33 -0
  46. agent_memory_os-0.2.3/src/agent_memory_os/candidates.py +39 -0
  47. agent_memory_os-0.2.3/src/agent_memory_os/cli.py +136 -0
  48. agent_memory_os-0.2.3/src/agent_memory_os/client.py +434 -0
  49. agent_memory_os-0.2.3/src/agent_memory_os/context_pack.py +231 -0
  50. agent_memory_os-0.2.3/src/agent_memory_os/db.py +1520 -0
  51. agent_memory_os-0.2.3/src/agent_memory_os/golden_recall.py +220 -0
  52. agent_memory_os-0.2.3/src/agent_memory_os/hermes_importer.py +193 -0
  53. agent_memory_os-0.2.3/src/agent_memory_os/mcp_server.py +85 -0
  54. agent_memory_os-0.2.3/src/agent_memory_os/memory_resonance.py +225 -0
  55. agent_memory_os-0.2.3/src/agent_memory_os/providers/__init__.py +5 -0
  56. agent_memory_os-0.2.3/src/agent_memory_os/providers/turbovec.py +190 -0
  57. agent_memory_os-0.2.3/src/agent_memory_os/schema.py +172 -0
  58. agent_memory_os-0.2.3/src/agent_memory_os/scoring.py +48 -0
  59. agent_memory_os-0.2.3/src/agent_memory_os/shadow_mode.py +261 -0
  60. agent_memory_os-0.2.3/src/agent_memory_os/web_app.py +423 -0
  61. agent_memory_os-0.2.3/src/agent_memory_os/web_ui.py +1063 -0
  62. agent_memory_os-0.2.3/tests/test_acl_visibility.py +126 -0
  63. agent_memory_os-0.2.3/tests/test_cli.py +14 -0
  64. agent_memory_os-0.2.3/tests/test_context_orchestration.py +121 -0
  65. agent_memory_os-0.2.3/tests/test_context_pack.py +18 -0
  66. agent_memory_os-0.2.3/tests/test_decay_scoring.py +31 -0
  67. agent_memory_os-0.2.3/tests/test_fts_triggers.py +58 -0
  68. agent_memory_os-0.2.3/tests/test_golden_recall.py +122 -0
  69. agent_memory_os-0.2.3/tests/test_hermes_importer.py +67 -0
  70. agent_memory_os-0.2.3/tests/test_memory_client.py +40 -0
  71. agent_memory_os-0.2.3/tests/test_memory_decay_recency.py +117 -0
  72. agent_memory_os-0.2.3/tests/test_memory_enhancements.py +400 -0
  73. agent_memory_os-0.2.3/tests/test_memory_links.py +150 -0
  74. agent_memory_os-0.2.3/tests/test_memory_resonance.py +44 -0
  75. agent_memory_os-0.2.3/tests/test_retrieval_foundation.py +118 -0
  76. agent_memory_os-0.2.3/tests/test_semantic_candidates.py +339 -0
  77. agent_memory_os-0.2.3/tests/test_shadow_mode.py +148 -0
  78. agent_memory_os-0.2.3/tests/test_truth_arbitration.py +186 -0
  79. agent_memory_os-0.2.3/tests/test_turbovec_provider.py +152 -0
  80. agent_memory_os-0.2.3/tests/test_verification_script.py +77 -0
  81. agent_memory_os-0.2.3/tests/test_web_app.py +326 -0
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": "0.0.1",
3
+ "configurations": [
4
+ {
5
+ "name": "webui",
6
+ "runtimeExecutable": "env",
7
+ "runtimeArgs": [
8
+ "PYTHONPATH=src",
9
+ "/private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/python",
10
+ "-m", "agent_memory_os.web_app",
11
+ "--host", "127.0.0.1",
12
+ "--port", "8321",
13
+ "--home", "/private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/webui-demo"
14
+ ],
15
+ "port": 8321
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(PYTHONPATH=src /private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/python -m pytest tests/test_memory_links.py -q)",
5
+ "Bash(PYTHONPATH=src /private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/python -m pytest -q)",
6
+ "Bash(/private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/pip install *)",
7
+ "Bash(PYTHONPATH=src /private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/python -m pytest tests/test_turbovec_provider.py -q)",
8
+ "Bash(PYTHONPATH=src /private/tmp/claude-501/-Users-manfred-Documents-GitHub-agent-memory-os/95920695-7bdd-427e-9e5c-8f61450c4d3a/scratchpad/venv/bin/python -m pytest tests/test_turbovec_provider.py::test_turbovec_provider_rejects_non_uint64_allowlist_ids -q)"
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,16 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .mypy_cache/
5
+ .ruff_cache/
6
+ .venv/
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ *.db
11
+ *.sqlite
12
+ .env
13
+ .DS_Store
14
+ .hermes/
15
+ shadow_recall*.jsonl
16
+ *.pyc
@@ -0,0 +1,12 @@
1
+ # Changelog - Agent Memory OS
2
+
3
+ ## [2026-06-13] Feature: Dynamic Context Orchestration (DCO) & Fixes
4
+ - **Feature**: Implemented Dynamic Context Orchestration (DCO) for active/dormant memory management.
5
+ - **Testing**: Completed precision test suite in `tests/test_context_orchestration.py`, establishing the performance baseline.
6
+ - **Fix**: Resolved `asdict` serialization issue in `client.py`.
7
+ - **Fix**: Corrected `session_id` indexing and prefixing in the memory client to ensure consistent snapshot retrieval.
8
+ - **Fix**: Fixed `SearchResult` schema inconsistency and `AttributeError` in `resonance_search`.
9
+ - **Fix**: Added ISO-to-Unix timestamp conversion for resonance weight calculations.
10
+
11
+ ## [2026-06-12] Initial DCO Scaffolding
12
+ - Defined `ContextSnapshot` schema and basic API signatures.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Bastet Agent Team
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ AgentMemoryOS
2
+ Copyright 2026 Bastet Agent Team
3
+
4
+ This product includes software developed by the Bastet Agent Team
5
+ (https://gitlab.com/hermes-agent-bastet/agent-memory-os).
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-memory-os
3
+ Version: 0.2.3
4
+ Summary: Local-first, MCP-native memory engine for AI agents with RAM cache and context-budgeted recall.
5
+ Author: Bastet Agent Team
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Keywords: ai-agent,local-first,mcp,memory,sqlite
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.11
14
+ Provides-Extra: api
15
+ Requires-Dist: fastapi>=0.115; extra == 'api'
16
+ Requires-Dist: uvicorn>=0.30; extra == 'api'
17
+ Provides-Extra: dev
18
+ Requires-Dist: pytest>=8.0; extra == 'dev'
19
+ Provides-Extra: mcp
20
+ Requires-Dist: mcp>=1.0.0; extra == 'mcp'
21
+ Provides-Extra: semantic
22
+ Requires-Dist: numpy>=1.26; extra == 'semantic'
23
+ Requires-Dist: turbovec==0.7.0; extra == 'semantic'
24
+ Description-Content-Type: text/markdown
25
+
26
+ # AgentMemoryOS
27
+
28
+ A **local-first memory engine for AI agents** — single or multi-agent, with shared and private memories, associative recall, and context-budgeted retrieval. One SQLite file, zero required dependencies, Apache-2.0.
29
+
30
+ ## Why
31
+
32
+ Agents need durable facts, preferences, procedures, and lessons — but prompt-injected memory blocks are small and overflow fast, and cloud memory platforms add latency, cost, and privacy tradeoffs. AgentMemoryOS separates long-term memory from the context window: memories live in a local database, and each prompt receives only the relevant, budgeted slice.
33
+
34
+ ## Features
35
+
36
+ - **Local-first, zero-dependency core** — one SQLite file (FTS5), no server required. `pip install` and go.
37
+ - **Requester-aware ACL** — every agent profile has private, team, and global memories; visibility is a hard gate enforced before ranking, never a soft score.
38
+ - **Dynamic context packs** — token-budgeted, auditable memory selection per prompt (`context_pack_report()` explains every include/exclude decision).
39
+ - **Truth arbitration** — duplicate suppression, contradiction detection (`CONFLICT` markers), and reserved budget for core memories.
40
+ - **Associative recall (resonance)** — an authoritative `memory_links` graph lets related memories surface even when they share no query terms; traversal is ACL-safe (invisible nodes are untraversable).
41
+ - **Hebbian reinforcement** — memories recalled together grow stronger links (`record_recall`, or `auto_reinforce=True` on context packs); unhelpful recalls weaken links and confidence (`helpful=False`).
42
+ - **Per-agent recall profiles** — different agent personas weight memory types differently (an engineer leans on `procedure`, a companion on `preference`); profiles persist in the database and re-weight ranking only, never bypassing ACL.
43
+ - **Memory lifecycle** — exponential/linear decay, pinning, hard expiry, and a write-side `consolidate()` pass that merges duplicates and synthesizes strongly co-recalled clusters into concept memories.
44
+ - **Optional sidecars** — semantic vector candidates (turbovec), MCP server, and a FastAPI Web UI, all behind extras; every candidate rejoins SQLite and passes hard gates before use.
45
+
46
+ ## Install
47
+
48
+ ```bash
49
+ pip install agent-memory-os # core (no dependencies)
50
+ pip install 'agent-memory-os[mcp]' # + MCP server
51
+ pip install 'agent-memory-os[api]' # + Web UI
52
+ pip install 'agent-memory-os[semantic]' # + vector candidate sidecar
53
+ ```
54
+
55
+ Requires Python 3.11+ with SQLite FTS5 (included in standard CPython builds).
56
+
57
+ ## Quickstart
58
+
59
+ ```python
60
+ from agent_memory_os import MemoryClient, RecallProfile
61
+
62
+ client = MemoryClient(home="~/.agent-memory")
63
+
64
+ # Write memories with ownership and visibility
65
+ client.add("User prefers dark mode.", owner="mizuki", type="preference",
66
+ visibility=[]) # private to owner
67
+ client.add("Deploy target is port 8000.", owner="neo", type="environment",
68
+ visibility=["global"]) # visible to every agent
69
+
70
+ # Requester-aware search: each agent sees only what it may see
71
+ hits = client.search("deploy port", requester_agent_id="neo")
72
+
73
+ # Token-budgeted context pack for the prompt, with reinforcement loop closed
74
+ pack = client.context_pack("deploy port", requester_agent_id="neo",
75
+ max_tokens=1200, auto_reinforce=True)
76
+
77
+ # Associate memories; linked memories resonate into future recalls
78
+ a = client.add("Staging deploy failed with database lock.", visibility=["global"])
79
+ b = client.add("Always snapshot before schema changes.", visibility=["global"])
80
+ client.link(a.id, b.id, relation="caused_by", weight=0.8)
81
+
82
+ # Persist an agent persona: soft ranking bias per memory type
83
+ client.save_profile(RecallProfile(agent_id="neo",
84
+ type_weights={"procedure": 1.5, "note": 0.7}))
85
+
86
+ # Periodic hygiene: merge duplicates, synthesize concept memories
87
+ client.consolidate()
88
+ ```
89
+
90
+ ## Architecture
91
+
92
+ ```text
93
+ query
94
+ -> candidate providers (FTS5 | vector sidecar | resonance graph | fallback)
95
+ -> merge/dedupe by stable memory_id
96
+ -> rejoin authoritative rows from SQLite
97
+ -> ACL hard gate -> expires_at hard gate
98
+ -> scoring (relevance x importance x confidence x freshness x reinforcement)
99
+ -> per-agent profile re-weighting (soft)
100
+ -> truth arbitration + context budget allocation
101
+ ```
102
+
103
+ Design invariants:
104
+
105
+ - The SQLite `memories` table is the single source of truth; FTS/vector indexes are disposable and rebuildable (`rebuild_indexes()`).
106
+ - Candidate providers return IDs and scores only — content is always re-read through SQLite behind the ACL and expiry hard gates.
107
+ - Association edges (`memory_links`) are authoritative data, survive index rebuilds, decay when unused, and never let an invisible memory bridge two visible ones.
108
+
109
+ See [SPEC.md](SPEC.md) for the full contract.
110
+
111
+ ## MCP server
112
+
113
+ ```bash
114
+ pip install 'agent-memory-os[mcp]'
115
+ python -m agent_memory_os.mcp_server
116
+ ```
117
+
118
+ Tools: `memory_add`, `memory_search`, `memory_context_pack`, `memory_link`, `memory_update`, `memory_recall_feedback`, `memory_consolidate`.
119
+
120
+ ## Web UI
121
+
122
+ ```bash
123
+ pip install 'agent-memory-os[api]'
124
+ agent-memory-web --host 127.0.0.1 --port 8000 --home ~/.agent-memory-web
125
+ ```
126
+
127
+ The console ships with a stats dashboard (scope/type/relation breakdowns, 14-day activity, most-recalled memories), search and recency browsing (memory cards with in-place editing, feedback, links, and delete actions), an interactive association-graph view, a context-pack preview with per-memory decisions, and add/link/consolidate tools — all driven by a global "acting as" identity.
128
+
129
+ Endpoints: `GET /health`, `GET /api/stats`, `GET /api/dashboard`, `GET|POST /api/memories`, `GET|PATCH|DELETE /api/memories/{id}`, `GET /api/memories/{id}/links`, `GET /api/graph`, `POST /api/links`, `POST /api/recall`, `POST /api/consolidate`, `GET /api/search`, `GET /api/context-pack`.
130
+
131
+ Search, browse, graph, recall feedback, and context-pack accept `requester_agent_id` and enforce the same ACL hard gates as the SDK. Requests without a requester run in unrestricted admin view — bind to localhost only, or require a bearer token on every API route with `--token <secret>` (or `AGENT_MEMORY_WEB_TOKEN`).
132
+
133
+ Note: keep the `--home` database on a local disk. Network filesystems (NFS/SMB) can fail SQLite FTS5 schema creation with `database is locked`.
134
+
135
+ ## Development
136
+
137
+ ```bash
138
+ pip install -e '.[dev]'
139
+ pytest
140
+ ```
141
+
142
+ ## Status
143
+
144
+ Alpha (`0.2.x`). The core contracts above are implemented and covered by the test suite; interfaces may still change before `1.0`. See [PROJECT_STATUS.md](PROJECT_STATUS.md) and [PROGRESS.md](PROGRESS.md) for the evidence-backed state of each feature.
145
+
146
+ ## License
147
+
148
+ [Apache License 2.0](LICENSE)
@@ -0,0 +1,68 @@
1
+ # AgentMemoryOS Progress
2
+
3
+ Last updated: 2026-06-17 22:17:42 CST (+0800)
4
+
5
+ ## Current project status
6
+
7
+ - Status: running
8
+ - Project root: `/mnt/nas/Hermes-Gitlab/agent-memory-os`
9
+ - GitLab remote: `git@gitlab.com:hermes-agent-bastet/agent-memory-os.git`
10
+ - Stable branch: `main`
11
+ - Active worktree branch: `feat/pr3-turbovec-provider`
12
+ - Current HEAD: `b9c26be`
13
+ - `main` / `origin/main` observed during audit: `4c2eb2b`
14
+ - Observed release tags: `v0.1.0-stable`
15
+ - Package metadata version: `0.1.0`
16
+
17
+ ## Completed evidence-backed milestones
18
+
19
+ - completed — MVP / local-first memory baseline exists with SQLite + FTS5 source-of-truth files under `src/agent_memory_os/`.
20
+ - Evidence: tracked files include `src/agent_memory_os/client.py`, `db.py`, `schema.py`, `context_pack.py`, and related tests.
21
+ - completed — Requester-aware ACL and visibility behavior has documented verification evidence.
22
+ - Evidence: `PROJECT_STATUS.md` verification snapshot and `scripts/verify_acl_identities.py`.
23
+ - completed — Retrieval foundation, truth arbitration, memory decay/recency, and shadow-mode test modules exist.
24
+ - Evidence: tracked tests under `tests/test_retrieval_foundation.py`, `tests/test_truth_arbitration.py`, `tests/test_decay_scoring.py`, `tests/test_memory_decay_recency.py`, and `tests/test_shadow_mode.py`.
25
+ - completed — PR3 turbovec provider branch exists as an optional semantic candidate sidecar.
26
+ - Evidence: active branch `feat/pr3-turbovec-provider`, `src/agent_memory_os/providers/turbovec.py`, `tests/test_turbovec_provider.py`, `docs/adr/ADR-0001-turbovec-semantic-sidecar-positioning.md`.
27
+ - completed — Multi-project governance documentation scaffold has been added.
28
+ - Evidence: `PROGRESS.md`, `docs/portfolio-status.md`, `docs/project-status/current.md`, `docs/evidence/`, `docs/blockers/`, `docs/handoffs/`, `docs/reviews/`.
29
+
30
+ - completed — Web UI openability regression fixed and covered by FastAPI smoke tests.
31
+ - Evidence: `src/agent_memory_os/web_app.py`, `tests/test_web_app.py`, `agent-memory-web` script entrypoint in `pyproject.toml`; `PYTHONPATH=src python3 -m pytest -q` passed 73 tests; manual HTTP smoke returned 200 for `/`, `/health`, `/api/stats`, `POST /api/memories`, and `/api/search`.
32
+ - Runtime note: live Web UI should use a local-disk SQLite home such as `/home/hermes/.agent-memory-os-web`; NAS-backed `/mnt/nas/.../data` reproduced `sqlite3.OperationalError: database is locked` during FTS5 schema creation.
33
+ - completed — Memory association layer (v0.2.3): authoritative `memory_links` table, resonance retrieval track, co-recall reinforcement (`record_recall`), and per-agent `RecallProfile` soft re-weighting.
34
+ - Evidence: `src/agent_memory_os/db.py`, `src/agent_memory_os/schema.py`, `src/agent_memory_os/client.py`, `tests/test_memory_links.py` (7 tests including resonance ACL leak-check: invisible nodes are untraversable).
35
+ - completed — FTS trigger latent bug fixed: legacy AFTER UPDATE/DELETE triggers used the FTS5 `'delete'` command (invalid for regular FTS5 tables), so every `update_content()`/`delete()` raised `SQL logic error`. Triggers now use plain `DELETE`, with startup migration for existing databases.
36
+ - Evidence: `src/agent_memory_os/db.py` (`_ensure_valid_fts_triggers`), `tests/test_fts_triggers.py` (3 regression tests, closing the long-standing "tests for update/delete FTS triggers" gap in `PROJECT_STATUS.md`).
37
+ - Verification: `PYTHONPATH=src python3 -m pytest` → `83 passed` at `2026-07-08`.
38
+ - completed — Association layer v2 enhancements (2026-07-10): link decay (90-day half-life on edge activation), hub-node damping (top-8 edges per node), resonance audit paths (`via:<seed>:<relation>`), directional `supersedes` demotion, negative feedback (`record_recall(helpful=False)`), context-pack `auto_reinforce` loop closure, write-time `auto_link`, ERA `derive_links` → `import_links` bridge, persisted `recall_profiles` table with auto-apply per requester, write-side `consolidate()` (duplicate merge + co-recall concept synthesis, visibility-safe), and WAL + busy_timeout for multi-agent deployments.
39
+ - Evidence: `src/agent_memory_os/db.py`, `client.py`, `schema.py`, `memory_resonance.py`, `mcp_server.py`, `tests/test_memory_enhancements.py` (13 tests incl. consolidation visibility leak-check).
40
+ - Verification: `PYTHONPATH=src python3 -m pytest` → `96 passed` at `2026-07-10`.
41
+ - completed — WebUI rework (2026-07-10): requester-aware ACL enforced on `/api/search` and new `/api/context-pack` (previously the API bypassed ACL entirely and leaked private memories); input validation for scope/type/confidence/importance/decay_policy; `visibility`/`expires_at`/`pinned`/`auto_link` accepted on create; association endpoints (`/api/links`, `/api/memories/{id}/links`, `/api/recall`, `/api/consolidate`, `/api/memories/{id}`); shared client with lock instead of per-request client; default port aligned to `8000`.
42
+ - Evidence: `src/agent_memory_os/web_app.py`, `tests/test_web_app.py` (7 tests incl. search/context-pack ACL leak regressions); live uvicorn smoke on `127.0.0.1:8123` verified health/add/search/pack/stats/root and clean shutdown.
43
+ - Verification: `PYTHONPATH=src python3 -m pytest` → `101 passed` at `2026-07-10`.
44
+ - running — WebUI availability triage / temporary runtime recovery corrected at `2026-06-17 22:57:24 CST`.
45
+ - Evidence: `docs/evidence/20260617_225724-webui-port-8000-correction.md`; previous `docs/evidence/20260617_221742-webui-availability-triage.md` is superseded for runtime port selection because it used stale `8765` documentation instead of the expected `8000` endpoint.
46
+ - Current local process: Hermes background session `proc_b629303937b0`, PID `2369731`, binding `127.0.0.1:8000`; `/`, `/health`, and `/api/stats` returned HTTP 200 after restart.
47
+ - Durability caveat: this is an ad-hoc tracked process, not a supervisor/systemd service. WebUI will become unavailable again if this process exits or the host/session is restarted.
48
+ - Deployment caveat: WebUI implementation/test files and script entrypoint are still local working-tree changes/untracked and require review/commit before clean checkout or deployment can rely on them.
49
+
50
+ ## Current non-production constraints
51
+
52
+ - blocked — Hermes default memory backend activation.
53
+ - Completed local prerequisite evidence: downgrade/migration/rollback/index-rebuild/ACL fixture matrix in `docs/evidence/20260609_121749-activation-gate-verification.md`.
54
+ - Remaining blocker: Hermes shadow integration comparison and Mizuki/Product final acceptance are not complete.
55
+ - Required input/evidence: shadow adapter/config diff, comparison logs against current Hermes memory behavior, and Product acceptance.
56
+ - blocked — Production prompt influence from turbovec semantic candidates.
57
+ - Blocker: ADR hold decision keeps PR3 optional-off / shadow-evidence-only.
58
+ - Required input/evidence: golden recall, ACL/expiry, rollback, latency, consistency, killswitch, and product acceptance gates.
59
+ - blocked — Claiming `v0.3-awakened` as an actual release tag.
60
+ - Blocker: `git tag --list` currently shows only `v0.1.0-stable`.
61
+ - Required input/evidence: create/push a matching release tag through normal review/release process, or keep v0.3 language as roadmap/validation.
62
+
63
+ ## Next milestones
64
+
65
+ 1. Complete PR3 review for `feat/pr3-turbovec-provider` with tests and docs evidence.
66
+ 2. Run full test suite on the active branch after current documentation changes.
67
+ 3. Produce activation-gate evidence bundle before any Hermes production/default backend discussion.
68
+ 4. Keep `PROJECT_STATUS.md` and this `PROGRESS.md` updated at each handoff, blocker, review, and release decision.
@@ -0,0 +1,134 @@
1
+ # AgentMemoryOS Project Status
2
+
3
+ ## Intent
4
+
5
+ Build an open-source local-first memory extension similar in spirit to Mem0.ai, optimized for AI agent teams that need durable memory plus RAM-backed fast recall without exhausting prompt context.
6
+
7
+ ## Collaborators
8
+
9
+ - Neo / LittleNEO: engineering implementation, repo bootstrap, tests, GitLab/NAS setup.
10
+ - Mizuki / NaoMizukiLover: product/UX usage scenarios, multi-agent memory needs, media/persona-heavy stress cases.
11
+ - Additional agents may be delegated for architecture review, QA, docs, and integration testing.
12
+
13
+ ## Canonical paths
14
+
15
+ - NAS working tree: `/mnt/nas/Hermes-Gitlab/agent-memory-os`
16
+ - Intended GitLab remote: `git@gitlab.com:hermes-agent-bastet/agent-memory-os.git`
17
+
18
+ ## Current baseline (Physical Audit: 2026-06-09)
19
+
20
+ - **Package metadata**: `agent-memory-os` version `0.1.0` in `pyproject.toml`.
21
+ - **Observed Git release tag**: `v0.1.0-stable` only; no `v0.3-awakened` tag is present in the current working tree.
22
+ - **Branch state**: `main` / `origin/main` currently resolve to `4c2eb2b`; active worktree branch is `feat/pr3-turbovec-provider` at `b9c26be`.
23
+ - **v0.3 / Sovereign Mode stance**: validation/roadmap documentation exists, but production activation and public release claims require matching gate evidence before they are treated as current operational fact.
24
+ - **Core Infrastructure**:
25
+ - SQLite + FTS5 durable store.
26
+ - Requester-aware ACL & Visibility matrix.
27
+ - Memory Decay & Reinforcement (Exponential/Linear).
28
+ - Truth Arbitration & Context Budgeting (v0.2.2 baseline).
29
+ - **v0.3 Advancements**:
30
+ - Sovereign Mode: Autonomous pruning and synthesis.
31
+ - Multi-provider support (Mem0, SuperMemory, RetainDB).
32
+ - Associative/Temporal layers (Prototypes in `tests/test_memory_resonance.py`).
33
+ - **Verification State**: Full test suite exists, but production activation gates are currently **UNVERIFIED** for v0.3 logic.
34
+
35
+ ## Hermes activation status
36
+
37
+ - AgentMemoryOS v0.3.1 is **COMPLETE**. Shadow Mode verified (GO).
38
+ - AgentMemoryOS is now approved for **Early Canary** rollout.
39
+ - Current deployment state: `Phase 2: Early Canary (20% Traffic)`.
40
+ - Runtime stance: `production_injection=true` (Canary only).
41
+ - Recommended runtime mode: `canary / production`.
42
+ - Active shadow profile coverage is expanded to `canary_group`.
43
+ - Production Hermes memory backend transition in progress.
44
+ - Canonical roadmap document: `docs/ROADMAP.md`.
45
+ - Canonical gate document: `docs/hermes-activation-gates.md`.
46
+ - Downgrade verification plan: `docs/plans/20260605_143442-version-downgrade-verification.md`.
47
+
48
+ ### PR3 turbovec semantic sidecar hold decision (2026-06-08)
49
+
50
+ PR3 keeps `turbovec` as an optional, disposable semantic candidate sidecar only:
51
+
52
+ - Default runtime state: **disabled**. `MemoryClient` has no semantic provider unless one is explicitly injected.
53
+ - Approved use: local spike, benchmark, and shadow evidence collection.
54
+ - Not approved: production prompt influence, all-profile activation, or treating vector IDs as memory authority.
55
+ - Required stance: `production_injection=false` until golden recall, ACL/expiry, rollback, latency, consistency, killswitch, and Mizuki/Product acceptance gates pass.
56
+ - Safety boundary: `turbovec` may return candidate IDs and scores only; every candidate must rejoin through SQLite and pass requester-aware ACL plus `expires_at` hard gates before content can be used.
57
+ - Operational caution: if a provider is manually injected into a live client, it participates in retrieval fusion after hard gates; therefore do not wire it into production prompt paths while this hold decision remains active.
58
+
59
+ Required gates before production activation:
60
+
61
+ 1. Shadow Evidence Pack proves clean persisted runtime evidence: ACL leakage is zero, production injection count is zero, latency is acceptable, and recall is at/above target.
62
+ 2. Hermes `MEMORY.md` / `USER.md` importer safety proves idempotent parsing, source separation, stable content hashes, and no duplicate import growth on rerun.
63
+ 3. Version-downgrade verification proves older/stable readers or downgrade simulations can safely read/export newer data without weakening ACL.
64
+ 4. Lossless migration verifies row counts, stable `memory_id` values, deterministic defaults, and rebuildable indexes.
65
+ 5. Rollback safety verifies timestamped backup, restore, and post-restore index rebuild.
66
+ 6. Hermes shadow integration compares AgentMemoryOS outputs against the current Hermes memory path without injecting them into production prompts.
67
+ 7. Multi-profile ACL validation verifies Mizuki / LittleNEO / Guest visibility across search, golden recall, and context-pack paths.
68
+ 8. Golden Recall Query Set proves deterministic recall against reviewer-owned expected/forbidden substrings.
69
+ 9. Mizuki/Product final stress cases and subjective acceptance review the evidence bundle before any default switch.
70
+
71
+ Roadmap lock:
72
+
73
+ - v0.4 Memory Resonance is a future research milestone only.
74
+ - v0.4 must not be described as complete, active canary, production-injected, all-profile activated, or default Hermes memory behavior until v0.3.1 gates pass and a separate documented decision opens the next phase.
75
+
76
+ ## Verification snapshot
77
+
78
+ - Web UI smoke command: `PYTHONPATH=src python3 -m pytest tests/test_web_app.py -q`
79
+ - Web UI smoke result: `2 passed`; manual HTTP smoke returned `200` for `/`, `/health`, `/api/stats`, `POST /api/memories`, and `/api/search` on `127.0.0.1:8765` using local-disk home `/home/hermes/.agent-memory-os-web`. NAS-backed `/mnt/nas/.../data` reproduced SQLite FTS5 `database is locked` and is not recommended for the live DB.
80
+ - Test command: `PYTHONPATH=src python3 -m pytest -q`
81
+ - Result: `73 passed` at `2026-06-17 21:17 CST (+0800)`
82
+ - Truth Arbitration targeted command: `PYTHONPATH=src python3 -m pytest tests/test_truth_arbitration.py -q`
83
+ - Truth Arbitration targeted result: `4 passed` covering core-memory survival under budget pressure, duplicate suppression, contradiction marking, and peer requester private-memory absence in auditable context packs.
84
+ - Retrieval Foundation targeted command: `PYTHONPATH=src python3 -m pytest tests/test_retrieval_foundation.py -q`
85
+ - Retrieval Foundation targeted result: `4 passed` covering zero-hit fallback, ACL-preserving fallback, expired fallback exclusion, and index rebuild/no-loss behavior.
86
+ - ACL targeted command: `PYTHONPATH=src python3 -m pytest tests/test_acl_visibility.py -q`
87
+ - ACL targeted result: `6 passed` including pinned/fresh private-memory non-leak regression checks.
88
+ - Decay targeted command: `PYTHONPATH=src python3 -m pytest tests/test_decay_scoring.py tests/test_memory_decay_recency.py -q`
89
+ - Decay targeted result: `11 passed` covering exponential/linear freshness, reinforcement cap, default schema metadata, invalid-policy rejection, recency-aware ranking, importance-vs-recency arbitration, and expiry hard filtering.
90
+ - Subjective QA command: `PYTHONPATH=src python3 scripts/verify_acl_identities.py --home /tmp/agent-memory-os-mizuki-qa --identity all`
91
+ - Subjective QA result: Mizuki sees `private_emotional_preference`, `team_memory`, `global_memory`; Neo sees `team_memory`, `global_memory`; Guest sees `global_memory`; `leak_check.passed=true`.
92
+ - Live QA re-run command: `PYTHONPATH=src python3 scripts/verify_acl_identities.py --home /tmp/agent-memory-os-mizuki-qa-live --identity all`
93
+ - Live QA re-run result: same visibility matrix passed; `leak_check.passed=true` at `2026-06-05 10:30:38 CST`.
94
+ - Product acceptance: `[AgentMemoryOS/MVP]` requester-aware ACL visibility is officially `Mizuki-Approved` for the `feat: enforce requester-aware memory visibility` baseline.
95
+ - First commit: `d02c22b feat: bootstrap AgentMemoryOS MVP`
96
+ - GitLab URL: `https://gitlab.com/hermes-agent-bastet/agent-memory-os`
97
+
98
+ ## Architecture review notes before v0.2
99
+
100
+ - Clarify which SPEC features are implemented versus planned, especially `visibility` ACL, `expires_at`, audit log, and MCP update/delete/consolidation tools.
101
+ - Add input validation for `scope`, `type`, `confidence`, and `importance`.
102
+ - Add tests for update/delete FTS triggers, expired memory handling, installation/entrypoint smoke test, and precision of multi-term search.
103
+ - Document SQLite FTS5 as a runtime prerequisite.
104
+
105
+ ## Next engineering decisions
106
+
107
+ 1. Complete version-downgrade verification before any Hermes default-backend discussion.
108
+ 2. Define and test migration/rollback scripts with row-count and `memory_id` preservation evidence.
109
+ 3. Refactor v0.2.1 baseline into explicit candidate-provider classes (`FTS5CandidateProvider`, `PinnedRecentFallbackProvider`) while keeping the green tests.
110
+ 4. Expand v0.2.2 Truth Arbitration beyond the baseline allocator: richer near-duplicate detection, contradiction severity, reserved budget buckets, and requester-matrix stress fixtures.
111
+ 5. Define exact Hermes provider/MCP integration point and run it first in shadow mode.
112
+ 6. Choose vector backend for v0.3: `sqlite-vec`, `fastembed`, or Qdrant.
113
+ 7. Add memory dedupe/consolidation flow.
114
+ 8. Add importers for Hermes `MEMORY.md` / `USER.md` and Mem0 export/API.
115
+ 9. Decide whether the default deployment mode is embedded library, local daemon, or both.
116
+
117
+ ## Verification commands
118
+
119
+ \`\`\`bash
120
+ cd /mnt/nas/Hermes-Gitlab/agent-memory-os
121
+ PYTHONPATH=src python3 -m pytest -q
122
+ git status --short --branch
123
+ \`\`\`
124
+
125
+ ## Project-local documentation
126
+
127
+ The project history and stress-case definitions are now documented inside this repository, not only in the external wiki:
128
+
129
+ - `docs/HISTORY.md`: project journey, planning, completed work, pending work, decisions, code-level contracts, and recovery order.
130
+ - `docs/ROADMAP.md`: authoritative v0.3.1 → v0.4 sequencing, runtime stance, and forbidden overclaim list.
131
+ - `docs/hermes-activation-gates.md`: deployment status, non-default decision, production activation gates, shadow-mode rules, and evidence bundle requirements.
132
+ - `docs/plans/20260605_114049-retrieval-foundation-v0.2.1.md`: hybrid retrieval safety layer, source-of-truth contract, bounded fallback, index rebuild/no-data-loss contract, and TDD acceptance matrix.
133
+ - `docs/plans/20260605_143442-version-downgrade-verification.md`: downgrade/compatibility test matrix, rollback expectations, and acceptance criteria before Hermes activation.
134
+ - `docs/stress-cases/case-01-noisy-truth.md`: `[Mizuki/StressCase] Case 01: 喧囂中的真理`, fixture design, requester matrix, budget acceptance criteria, and suggested pytest tests.