feat(system): DPLAN-0170 memory system fix — vectorization, dedup, config rename, rollover hook

Co-Authored-By: @devpulse <devpulse@aipass>
This commit is contained in:
AIOSAI
2026-05-10 15:54:46 -07:00
co-authored by @devpulse
parent b0bf6a393a
commit f8d3874fbe
24 changed files with 254 additions and 677 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ def print_help() -> None:
console.print("[bold]WORKFLOW:[/bold]")
console.print(" 1. Detect files exceeding limits (line count or entry count)")
console.print(" 2. Extract oldest entries")
console.print(" 3. Generate embeddings via sentence-transformers")
console.print(" 3. Generate embeddings via fastembed")
console.print(" 4. Store vectors in local + global ChromaDB")
console.print()
+1 -6
View File
@@ -1501,13 +1501,8 @@ def bootstrap_from_jsonl(max_sessions: int = 8) -> None:
for i, jsonl_path in enumerate(sessions, 1):
# Derive branch name from parent directory
branch_dir = jsonl_path.parent.name
# New layout: -home-patrick-Projects-AIPass-src-aipass-<branch>
# Layout: -home-patrick-Projects-AIPass-src-aipass-<branch>
branch_name = branch_dir.rsplit("-aipass-", 1)[-1].replace("-", "_").upper()
# Legacy layout fallback
if branch_name.startswith("AIPASS_CORE_"):
branch_name = branch_name.replace("AIPASS_CORE_", "")
if branch_name.startswith("AIPASS_OS_"):
branch_name = branch_name.replace("AIPASS_OS_", "")
file_size_kb = jsonl_path.stat().st_size / 1024
console.print(
+2 -2
View File
@@ -13,7 +13,7 @@ Checks whether a plan has been vectorized in ChromaDB.
Purpose:
Thin orchestration layer - calls chroma_subprocess via subprocess
to query the flow_flow_plans collection for a given plan label.
to query the flow_plans collection for a given plan label.
"""
import subprocess
@@ -261,7 +261,7 @@ def print_help() -> None:
console.print(" [dim]drone @memory verify HPLAN-0001[/dim]")
console.print()
console.print("[bold]HOW IT WORKS:[/bold]")
console.print(" 1. Query the flow_flow_plans ChromaDB collection")
console.print(" 1. Query the flow_plans ChromaDB collection")
console.print(" 2. Filter entries by source_file metadata matching the plan label")
console.print(" 3. Report vectorization status and chunk count")
console.print()