Repository navigation
fix(llama): support embedding-only managed setup - #130883
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 8:28 AM ET / 12:28 UTC. ClawSweeper reviewWhat this changesThis PR adds a consented embedding-only managed llama.cpp setup path for local memory search, preserving existing chat setup and treating an empty configured model inventory as authoritative. Merge readinessKeep open: current main still skips managed setup below the chat RAM floor, while the current head addresses both prior blockers and has no remaining actionable correctness finding. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe llama.cpp plugin’s guided setup writes a managed local server configuration used by the provider catalog and local-memory embedding runtime. Its chosen plan controls model downloads, the server preset, and whether existing chat routing remains available. flowchart LR
A[Local memory intent] --> B[Guided llama.cpp setup]
B --> C{Chat or embedding-only plan}
C --> D[Managed server preset]
D --> E[Persisted provider inventory]
E --> F[Model catalog]
E --> G[Local embedding runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +83, Tests +276, Docs +18. Total +377 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the explicit setup-plan and preset-policy boundaries, with the persisted model inventory authoritative and exact-head CI completing before merge. Do we have a high-confidence way to reproduce the issue? Yes—current main has a deterministic low-RAM early return in Is this the best way to solve the issue? Yes—the explicit chat versus embedding-only plan and explicit preset policy repair the setup owner without changing the schema or adding a parallel provider path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f04a622c1f35. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
The maintainer-approved contract intentionally treats an explicit empty managed model inventory as embedding-only. |
Allow low-memory local-memory setups to install only the verified managed server and embedding model while preserving every configured chat route. Co-authored-by: Ayaan Zaidi <[email protected]>
Problem
Guided managed llama.cpp setup stopped below the 16 GiB chat-model RAM floor, even when
memory.search.providerexplicitly requested local embeddings. The operator sawSetup skipped, andopenclaw memory status --deepcould not initialize local memory.Fixes #128880.
Root cause
Managed setup had one hard-coded success shape: chat plus embeddings. The setup result always selected a llama.cpp chat model, the provider builder always restored the default chat catalog row, and the shared preset API could not distinguish preserving chat from intentionally removing it.
Fix
models: []and no default-model change.Production code is +179/-96 lines (net +83). The added capability needs an explicit setup plan and two owner-boundary contracts; the preset refactor itself is net negative. The approved product contract makes an explicit empty managed inventory intentional.
Proof
node scripts/run-vitest.mjs extensions/llama-cpp --reporter=verbose: 12 files and 132 tests passed.mainat3ee363fc084showedSetup skippedandmemory status --deepfailed because managed local embeddings were unavailable.bbd1d79a4c8obtained explicit embedding-only consent, downloaded one verified 328,577,056-byte GGUF, preservedopenai/gpt-5.4, savedmodels: [], and generated an embedding-only preset.