refactor(memory): run agent recall, memory tools and the server on the memory contract (P1.5)

- Orchestrator, memory tools, context loader and pattern write-back use a
  MemoryStore and a workspace scope instead of MindDB layers; the knowledge
  graph tools, cognify, memory linker and feedback handler are gone (graph
  hidden in v1, ADR-0002).
- The server opens one mem0 store in <dataDir>/memory/, embedded by the
  in-process model on first use, and extracts facts about the user in the
  background with the model the user chose (memoryExtraction setting).
- Legacy .mind memories are copied into the store once, in the background;
  the legacy files are only read.
- Weaver consolidation, harvest, wiki, memory import, memory lanes, vector
  backfill and index reconciliation are removed; agent runs, loops, sub-agent
  results, connector fetch and the failed-turn capture write through the
  contract. Workspace sessions no longer hold a mind handle.
- FileIndexer and the install audit move to waggle.db; recall date helpers and
  the reranker are copied into core.
- The CLI REPL opens the same memory store.
This commit is contained in:
shumeiko.it
2026-10-24 11:56:26 +02:00
parent f3eb6b6652
commit 784ca770b1
86 changed files with 2520 additions and 8444 deletions

6
package-lock.json generated
View File

@@ -24202,6 +24202,7 @@
"@ax-llm/ax": "^19.0.12",
"@waggle/core": "*",
"@waggle/marketplace": "*",
"@waggle/memory-contract": "*",
"@waggle/shared": "*",
"docx": "^9.6.1",
"exceljs": "^4.4.0",
@@ -24236,6 +24237,8 @@
"@anthropic-ai/sdk": "^0.78.0",
"@waggle/agent": "*",
"@waggle/core": "*",
"@waggle/memory-contract": "*",
"@waggle/memory-mem0": "*",
"chalk": "^5.4.1"
},
"bin": {
@@ -24510,6 +24513,7 @@
"dependencies": {
"@huggingface/transformers": "^3.8.1",
"@waggle/hive-mind-core": "*",
"@waggle/memory-contract": "*",
"@waggle/shared": "*",
"better-sqlite3": "^12.6.2",
"cron-parser": "^4.9.0",
@@ -25385,6 +25389,8 @@
"@waggle/agent": "*",
"@waggle/core": "*",
"@waggle/marketplace": "*",
"@waggle/memory-contract": "*",
"@waggle/memory-mem0": "*",
"@waggle/sdk": "*",
"@waggle/shared": "*",
"@waggle/waggle-dance": "*",