feat(memory): support qmd query rerank toggle#90304
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 4, 2026, 10:21 PM ET / 02:21 UTC. Summary PR surface: Source +20, Tests +213, Docs +7, Generated 0. Total +240 across 14 files. Reproducibility: not applicable. this is an opt-in feature PR, not a bug reproduction request. Source inspection shows current main has no config path for QMD no-rerank behavior, and the branch adds that path. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the config-level opt-in after maintainers explicitly accept the documented QMD 2.1+ requirement or add a small capability guard for older QMD installs, while keeping default reranking behavior unchanged. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an opt-in feature PR, not a bug reproduction request. Source inspection shows current main has no config path for QMD no-rerank behavior, and the branch adds that path. Is this the best way to solve the issue? Yes, the config-level opt-in is a narrow maintainable solution for the linked request because it preserves QMD defaults and limits the new parameter to query mode. The remaining maintainer choice is whether a docs-only QMD 2.1+ floor is enough or a runtime guard should be added. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against de68623ffed7. Label changesLabel justifications:
Evidence reviewedPR surface: Source +20, Tests +213, Docs +7, Generated 0. Total +240 across 14 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
5038cf4 to
66048d0
Compare
66048d0 to
17857ea
Compare
17857ea to
69053c2
Compare
|
Merge note: Relevant PR checks are passing for the QMD config/memory/docs surface. The only red CI lane is check-additional-boundaries-bcd, which fails on existing origin/main qa-lab web raw fetch usage in extensions/qa-lab/web/src/app.ts and is outside this pull request touched files. Local verification completed:
Live behavior proof completed with isolated OpenClaw state and qmd 2.5.3: openclaw memory status reported backend qmd, memory index completed, memory search returned the fixture hits, and the QMD wrapper log showed OpenClaw spawned query with --no-rerank for memory.qmd.searchMode=query plus memory.qmd.rerank=false. Squash merging pinned to head SHA 69053c2. |
Opened on behalf of Onur Solmaz (@osolmaz).
AI-assisted contribution prepared from the
codex/61834-qmd-no-rerankbranch.Summary
QMD can run
querymode without reranking, but OpenClaw had no config path for that option. This addsmemory.qmd.rerank: falseso users can keep QMD query mode while skipping the slower reranker.Fixes #61834.
What Changed
memory.qmd.rerankto config types, schema, labels, help, and generated config baseline.--no-rerankwhenmemory.qmd.searchModeisqueryandmemory.qmd.rerankisfalse.rerank: falsefor defaultqmd.queryand explicitsearchTool: "query"configurations.search,vsearch, and non-query custom mcporter search tool overrides unchanged.Real behavior proof
memory.qmd.rerank: false.docscollectionopenclaw-docs.qmd query "lex: memory qmd" --no-rerank --format json -n 2 -c openclaw-docs, plus focused OpenClaw Vitest coverage for direct CLI args, MCP args, config schema, and resolved config.qmd://openclaw-docs/concepts/memory-qmd.mdandqmd://openclaw-docs/reference/memory-config.md; OpenClaw unit tests verify directqmd queryincludes--no-rerankand MCPqmd.queryreceivesrerank:false.memory.qmd.rerank:false.Verification
pnpm docs:listnode scripts/run-vitest.mjs packages/memory-host-sdk/src/host/backend-config.test.tsnode scripts/run-vitest.mjs src/config/schema.test.ts src/config/schema.help.quality.test.tsnode scripts/run-vitest.mjs extensions/memory-core/src/memory/qmd-manager.test.tsOPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs extensions/memory-core/src/memory/qmd-manager.test.ts packages/memory-host-sdk/src/host/backend-config.test.ts src/config/schema.test.ts src/config/schema.help.quality.test.tspnpm config:docs:checkpnpm docs:check-mdxpnpm format:docs:checkgit diff --checkcodex review --base origin/mainqmd query "lex: memory qmd" --no-rerank --format json -n 2 -c openclaw-docsNote: repo-wide
pnpm format:checkis not green on this checkout because of 125 pre-existing formatting issues outside this branch. I ran targetedoxfmton the touched TypeScript files instead.