{"key":"brain_enhancement_project_2026_04_07","title":"Brain Enhancement Project — MemPalace-Inspired Upgrades","content":"Project document created 2026-04-07 outlining four proposed enhancements to the Brain memory system, inspired by analysis of Milla Jovovich and Ben Sigman's MemPalace project.\n\nFull spec saved to: D:\\Jason\\Documents\\AI\\brain-enhancement-project.md\n\nThe four proposals in priority order:\n\n1. ChromaDB Semantic Search Layer — Add ChromaDB as a parallel retrieval backend alongside Postgres. Postgres stays canonical; ChromaDB handles vector embeddings via sentence-transformers/all-MiniLM-L6-v2 (local, no API key). New /memories/semantic endpoint and semantic_search MCP tool. New memcli reindex management command. Estimated: 1 session (3-5 hours).\n\n2. Two-Level Namespace Hierarchy — Add domain and topic as first-class indexed fields on the memories table (Alembic migration 0003). Domain taxonomy: homelab, haip, arena, genealogy, ohio_history, stoned_ai, personal, learning, business, memory_system, general. Scoped search via domain/topic filters on all REST and MCP endpoints. Backfill script to classify existing memories. Estimated: 1 session (2-4 hours).\n\n3. HAIP Conversation Miner — New project at /home/svc-admin/ai-projects/projects/haip-brain-miner/ on svc-ai. Systemd timer runs every 30 minutes, queries HAIP agent_invocations from svc-db-01, filters for significance (length > 200 chars, novelty check, not trivial), chunks and writes to Brain with source=haip_miner. Solves the core problem that HAIP turn data never flows back into Brain. Estimated: 2 sessions (4-8 hours).\n\n4. Token Budget Enforcement and Agent Identity Cards — Alembic migration 0004 adds summary, token_count, and memory_type fields. Memories over 500 tokens get a compact summary generated at write time (via local Llama 3 8B on svc-ai). MCP retrieval returns summary by default, full content on request. New identity_card memory_type for per-agent compact bootstrap payloads under 200 tokens. New get_identity_card MCP tool. Wire into HAIP orchestrator turn initialization. Estimated: 1-2 sessions (3-6 hours).\n\nKey implementation hosts: svc-dev (Brain API/MCP/DB), svc-ai (miner, identity card generation).\nKey reference memories: brain_project_implementation_handoff_2026_03_22, brain_operator_runbook_2026_03_22, homelab_ai_platform_architecture_context_2026_04_03.","summary":"Project document created 2026-04-07 outlining four proposed enhancements to the Brain memory system, inspired by analysis of Milla Jovovich and Ben Sigman's MemPalace project.\n\nFull spec saved to: D:\\Jason\\Documents\\AI\\brain-enhancement-project.md\n\nThe four proposals in priority order:\n\n1. ChromaDB Semantic Search Layer — Add ChromaDB as a parallel retrieval backend alongside Postgres. Postgres stays canonical; ChromaDB handles vector embeddings via sentence-transformers/all-MiniLM-L6-v2 (local, no API key). New /memories/semantic endpoint and semantic_search MCP tool. New memcli reindex management command. Estimated: 1 session (3-5 hours).\n\n2. Two-Level Namespace Hierarchy — Add domain and topic as first-class indexed fields on the memories table (Alembic migration 0003). Domain taxonomy: homelab, haip, arena, genealogy, ohio_history, stoned_ai, personal, learning, business, memory_system, general. Scoped search via domain/topic filters on all REST and MCP endpoints. Backfill script to classify existing memories. Estimated: 1 session (2-4 hours).\n\n3. HAIP Conversation Miner — New project at /home/svc-admin/ai-projects/projects/haip-brain-miner/ on svc-ai. Systemd timer runs every 30 minutes, queries HAIP agent_invocations from svc-db-01, filters for significance (length > 200 chars, novelty check, not trivial), chunks and writes to Brain with source=haip_miner. Solves the core problem that HAIP turn data never flows back into Brain. Estimated: 2 sessions (4-8 hours).\n\n4. Token Budget Enforcement and Agent Identity Cards — Alembic migration 0004 adds summary, token_count, and memory_type fields. Memories over 500 tokens get a compact summary generated at write time (via local Llama 3 8B on svc-ai). MCP retrieval returns summary by default, full content on request. New identity_card memory_type for per-agent compact bootstrap payloads under 200 tokens. New get_identity_card MCP tool. Wire into HAIP orchestrator turn initialization. Estimated: 1-2 sessions (3-6 hours).\n\nKey implementation hosts: svc-dev (Brain API/MCP/DB), svc-ai (miner, identity card generation).\nKey reference memories: brain_project_implementation_handoff_2026_03_22, brain_operator_runbook_2026_03_22, homelab_ai_platform_architecture_context_2026_04_03.","status":"active","namespace":"projects","namespace_name":"projects","namespace_tier":"shared","tags":[]}