hermes
|
ced3b2c2c6
|
refactor: split memory_system.py into submodules (#1277)
Tests / lint (pull_request) Failing after 34s
Tests / test (pull_request) Has been skipped
Extract 1543-line monolith into 5 focused modules:
- memory/db.py (213 lines): DB connection, schema, migrations, data classes
- memory/crud.py (395 lines): CRUD operations, personal facts, reflections
- memory/semantic.py (300 lines): SemanticMemory + MemorySearcher
- memory/consolidation.py (301 lines): HotMemory + VaultMemory
- memory/tools.py (253 lines): Tool functions (search, read, store, forget)
memory_system.py (177 lines) remains as thin orchestrator with full
re-exports — all existing imports continue to work unchanged.
No module exceeds 400 lines. All 647 unit tests pass.
|
2026-03-23 22:17:38 -04:00 |
|