Repository navigation
fix(memory): load configured providers for CLI search - #119186
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:28 AM ET / 14:28 UTC. ClawSweeper reviewWhat this changesThe PR makes memory CLI commands load the selected memory backend and configured embedding-provider plugins so fresh searches use the same allowed provider setup as Gateway indexing. Merge readinessNo blocking correctness finding. Current main still skips plugin activation for fresh memory CLI reads, while this PR adds a narrow, policy-preserving registry scope; it remains necessary for maintainer review and the exact-head build artifact gate. Priority: P1 Review scores
Verification
How this fits togetherCLI memory commands resolve startup policy before searching the local memory index. Gateway startup already maps configured embedding providers to plugin owners; this change gives fresh CLI processes the same narrow runtime activation path. flowchart LR
A[CLI memory command] --> B[Command startup policy]
B --> C[Pre-action bootstrap]
D[Configured memory settings] --> E[Scoped memory registry]
C --> E
E --> F[Selected backend and provider plugins]
F --> G[Memory search or status result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +42, Tests +203. Total +245 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the dedicated memory scope, preserve canonical plugin policy, and merge after the exact head completes its artifact and GitHub merge gates. Do we have a high-confidence way to reproduce the issue? Yes, at source level: configure a plugin-owned embedding provider, index through Gateway, then run a fresh memory search on current main; the current startup policy prevents that provider registry from loading. This review did not execute the live setup. Is this the best way to solve the issue? Yes. A command-policy-selected, manifest-derived scope fixes the owner boundary without loading every plugin or duplicating provider ownership inside memory commands. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 52954a1fa8f4. LabelsLabel 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 (6 earlier review cycles)
|
2ec89af to
af50418
Compare
|
@clawsweeper re-review Exact repaired head Proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper rank-up move is already satisfied on the reviewed head
No rank-up move is being skipped; the durable review's “pre-final-head” characterization is stale relative to the evidence already recorded in the PR body. |
1e66fd8 to
9f40997
Compare
|
@clawsweeper re-review Final rebased head Proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…licy-config-20260804 * origin/main: fix(memory): load configured providers for CLI search (#119186)
* origin/main: fix(agents): protect private memory in shared chats (#119198) perf(cli): skip absent gateway workspace dotenv (#119227) fix(agents): observe native provider prompt egress (#119219) fix(feishu): report bot identity retry failures (#102185) fix(memory): load configured providers for CLI search (#119186) fix(discord): count retained speech bytes test(discord): isolate exact speech overflow test(discord): cover exact speech overflow fix(discord): bound realtime exact speech
* origin/main: fix(agents): protect private memory in shared chats (#119198) perf(cli): skip absent gateway workspace dotenv (#119227) fix(agents): observe native provider prompt egress (#119219) fix(feishu): report bot identity retry failures (#102185) fix(memory): load configured providers for CLI search (#119186) fix(discord): count retained speech bytes test(discord): isolate exact speech overflow test(discord): cover exact speech overflow fix(discord): bound realtime exact speech
* fix(memory): activate configured providers in CLI commands * fix(memory): resolve configured embedding provider owners * test(memory): keep metadata mock unset by default * fix(memory): preserve plugin allowlist policy * test(memory): classify plugin-owned root command
* origin/main: fix(agents): protect private memory in shared chats (openclaw#119198) perf(cli): skip absent gateway workspace dotenv (openclaw#119227) fix(agents): observe native provider prompt egress (openclaw#119219) fix(feishu): report bot identity retry failures (openclaw#102185) fix(memory): load configured providers for CLI search (openclaw#119186) fix(discord): count retained speech bytes test(discord): isolate exact speech overflow test(discord): cover exact speech overflow fix(discord): bound realtime exact speech
What Problem This Solves
Fixes an issue where
openclaw memory searchand read-onlymemory statuscommands could ignore configured plugin-owned memory embedding providers. The Gateway could index successfully with the configured provider, while a later CLI process fell back to a different provider identity and returned no matches.Why This Change Was Made
Memory CLI commands now load a narrow registry containing only the selected memory backend and manifest owners for configured memory embedding providers. The scope is discovery-only: canonical allowlist, deny, and explicit-disable policy remains authoritative and identical to Gateway startup.
User Impact
Users can search memory from a fresh CLI process with the same allowed provider configuration used by the Gateway. Read-only memory commands do not activate unrelated or unallowlisted plugins.
Evidence
ORBIT-22with provideropenai, thenmemory searchinitializedopenai-compatibleand returned no result.9f40997c7f3879ebd9a3a4256df9281d3b6c615f.check:changedpassed in 10m13s: https://github.com/openclaw/openclaw/actions/runs/30917644057af50418f94e2d75ca08a5c3eb532f3082cf2c1d0; the only later change classifies the plugin-ownedmemoryroot in the catalog consistency test.thread-memory-isolationpassed for OpenClaw and Codex, then passed three additional bounded repetitions on the same Testbox: https://github.com/openclaw/openclaw/actions/runs/30914390530plugins.allowremains inactive in both Gateway and fresh CLI startup.