Repository navigation
fix(doctor): report missing managed local embedding setup - #123575
fuller-stack-dev merged 104 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 9:27 PM ET / August 16, 2026, 01:27 UTC. ClawSweeper reviewWhat this changesAdds an opt-in Doctor lint check that detects when an existing Memory Core semantic index uses local embeddings without managed llama.cpp setup. Merge readinessKeep open for maintainer review. The latest head appears to address the prior deferred-snapshot finding, but this is a substantial new, default-disabled readiness capability and installed-provider policy contract rather than a narrow established-behavior repair. Priority: P2 Review scores
Verification
How this fits togetherDoctor lint reads configuration, Memory Core’s existing index metadata, and provider-owned setup policy to emit structured readiness findings. Upgrade supervisors can consume that output before deciding whether to replace a running Gateway. flowchart LR
A[Upgrade supervisor] --> B[Doctor lint command]
B --> C[Memory Core index check]
C --> D[Provider setup policy]
D --> E[Structured readiness finding]
E --> F[Cutover decision]
Decision needed
Why: The source supports the proposed ownership split, but deciding whether this single provider cutover requirement merits a new generic installed-provider policy hook is product and compatibility direction, not a mechanical correctness choice. Before merge
Agent review detailsSecurityNone. PR surfaceSource +635, Tests +1357, Docs +7. Total +1999 across 29 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If maintainers sponsor this pre-cutover capability, retain the default-disabled, provider-owned predicate and prove a freshly merged head preserves both ordinary lint behavior and immutable inspection under live writer contention. Do we have a high-confidence way to reproduce the issue? No high-confidence reviewer-side execution was performed in this read-only review. Source establishes the runtime prerequisite and the PR body supplies claimed packaged before/after evidence, but that exact setup was not independently run here. Is this the best way to solve the issue? Unclear. The provider-owned predicate and Memory Core relevance split are coherent, but maintainers must decide whether the generic provider-policy contract is the right permanent layer for this one pre-cutover workflow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7f93011562db. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (25 earlier review cycles; latest 8 shown)
|
# Conflicts: # extensions/memory-core/src/migration/doctor-vector-index-provider.test-support.ts # extensions/memory-core/src/migration/doctor-vector-index-provider.ts
|
Addressing the valid prior review finding at
The contract remains authoritative only for declared deterministic startup |
# Conflicts: # src/entry.compile-cache.ts
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact public head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Related: #67407
Problem
An external upgrade supervisor can stop a healthy Gateway before the selected
OpenClaw target exposes a deterministic startup blocker. With an existing
semantic index and
memory.search.provider=local, static config validationpasses while direct startup refuses readiness when managed llama.cpp provider
configuration is missing.
Merged #124041 restores installed llama.cpp provider runtime compatibility.
Merged #124110 keeps broad Doctor lint off writable migration paths. The
existing models-auth CLI performs the supported consentful setup. None of those
surfaces provides the passive exact-target signal needed before cutover.
Contract
1with one structuredmanaged-llama-cpp-setupfinding when anexisting semantic index selects local embeddings but managed llama.cpp
configuration is missing.
0with no finding when managed setup exists, no semantic index exists,or the selected memory provider is not local.
This is one declared deterministic startup prerequisite, not universal Gateway
readiness. The check is default-disabled, so ordinary
doctor --lintselectionand exit behavior remain unchanged.
Ownership And Scope
existing registry-aware provider public surface; it does not bundle or load
llama.cpp directly.
requirement. Unrelated Doctor lint remains available under writer contention.
services, contact model endpoints, or change provider/default-model
selection.
Why This Is Still Needed
#124041 fixes the runtime SDK/import path after upgrade, but it does not expose
missing managed local-embedding setup before the old Gateway is stopped.
#124110 removes broad Doctor migration writes, but it does not identify this
provider-owned prerequisite. OCM still needs a structured exact-target signal;
scraping Gateway error text would duplicate OpenClaw policy and remain too late
for safe cutover.
Exact-Head Proof
config validate --jsonexited0; direct Gatewaystartup exited
1for missing managed llama.cpp setup.afe8c2d82d84efc153b2958be2b99813285d1f39.90edb0296dcd53cc2b06706ed5675419c2f2d0b3.2585edba2efda9ff50e6bed0a6de8cfaef8254fc.3972915155bfbcd63537b9c0d3414b2f2639d6cb0f5ba32216d4805187b850df.ea50e44cb0d51324125b7159cc31cf27b7775dffdfc5ba31b4603356eca87c09.9e11c57c02ef517af20689382eb47d31d817e1c651c868e1b170bc98e26e4952.1with deterministic structured JSON and themodels-auth remediation. Configured, non-local, and no-index controls exited
0. Missing provider exited1with the distinctmemory-embedding-provider-pluginrequirement.sidecars, provider artifacts, provider selection, and primary model remained
unchanged.
0twice while an active globalSQLite writer was running.
1, exposed no listener, and reportedthe same startup prerequisite.
omitted/default plugin-validation regression also passed.
pnpm deadcode:full, exact package build, tarball integrity/import graph,formatting, and
git diff --checkpassed.tbx_01m044f7730jddhz5m8mrpj28d, Actions run31920657551.patch is correct,confidence
0.86; TruffleHog clean).HOME,OPENCLAW_CONFIG_PATH, andOPENCLAW_STATE_DIR.READY FOR /prepare-prwith zero findings.OCM Integration
Run the exact target binary and environment before quiescing the old Gateway.
Block on the structured finding and present
requirement,target, andfixHint. Do not scrape human error strings, invoke setup automatically,substitute unfiltered Doctor, or treat a clean result from this single check as
universal startup readiness.
Release-note impact: external supervisors can detect missing managed local
embedding setup before stopping a healthy Gateway.
AI-assisted: yes. No agent transcript is included.