Skip to main content

Integration Effort

## §5 — Integration Effort Estimate (D3 / AC#3)

| Framework | hours | dependencies | blocking_tasks | hooks_touched | agents_touched | settings_json_deltas | risk_factors |
|-----------|-------|--------------|----------------|---------------|----------------|---------------------|--------------|
| Mem0 self-hosted | S (0h remaining — deployed) | Qdrant, Ollama, mem0ai-2.0.1 venv, server.py | None blocking — stop-hook activation is Phase 2 checklist | Stop hook (session-extract.js), UserPromptSubmit (session-start inject) | discover.js (wired), boot.sh (MEMORY_AUTO_INJECT=0 default) | Add Stop hook to settings.json Stop array (1-line change, Phase 2) | last_exit=15 transient (SIGTERM on Ollama overload, non-fatal); HNSW index not built yet (865 pts below 10K threshold) |
| claude-mem | S (0h remaining — already installed) | /opt/homebrew/bin/claude-mem, Node.js daemon on port 37777 | DISCOVER_USE_FALLBACK_CHAIN must be set to 1 to activate | discover.js lines 742-788 (already coded) | None additional | No settings.json change needed; ENV var only | AGPL-3.0 license (copyleft — evaluate if commercial use is restricted); no semantic recall for L3b |
| mem-search | N/A — NOT VIABLE | — | — | — | — | — | — |
| Memipalace | N/A — NOT VIABLE | — | — | — | — | — | — |
| LightRAG-resurrect | L (>80h across multiple MCs) | MC #99093 closure (file_path fix), Semaphore(2) asyncio patch, 121K re-ingest pipeline, cross-VM access (vm-alai-lightrag ↔ vm-alai-support) | MC #99093 is hard blocker; asyncio patch requires freeze capture (next overnight drain event) | lightrag-health.sh (auto-restart), discover.js (searchLightRAG already at lines 815-823) | discover.js LightRAG fallback (L3c already coded) | No settings.json change needed (discover.js driven) | Asyncio starvation recurs if Semaphore not patched; 5,596 processed docs = limited recall until backlog clears; cross-VM TCP/CF-tunnel path adds latency |

**Concrete LightRAG effort checklist (for reference):**
1. /Users/makinja/system/tools/lightrag-health.sh: add auto-restart block (~50 lines) — 2h
2. Capture py-spy dump on next freeze overnight — wait 12-24h
3. Patch lightrag/api/routers/document.py Semaphore(2) — 4h
4. MC #99093: bookstack-enrich.js re-ingest with file_path URLs — 8-16h separate MC
5. Cross-VM access design (Azure VNet peering or CF tunnel rule) — 4-8h
6. discover.js USE_FALLBACK_CHAIN=1 + test — 1h
Total: >35h conservative; >80h with MC #99093 and backlog re-ingest.

EVIDENCE (Mem0 integration_effort=S): /Users/makinja/system/mem0/server.py on disk 6320 bytes; com.alai.mem0-server LaunchAgent running; discover.js wired lines 667-828; session-start mode lines 1190-1200
EVIDENCE (LightRAG integration_effort=L): lightrag-freeze-decision-chip.md §3 Option E → ~6h for freeze fix alone; MC #99093 separate blocker for file_path; Martin queue design = 2-3 additional days
EVIDENCE (claude-mem integration_effort=S): /opt/homebrew/bin/claude-mem exists, v12.5.0; discover.js lines 742-788 already coded; only ENV var DISCOVER_USE_FALLBACK_CHAIN=1 needed

---