Repository navigation
refactor(memory): remove normalization of fixed search defaults - #130655
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Both authenticated Codex review passes completed with no P0–P3 findings, including the separate published-head review of Ordinary exact-head CI passed without retries. I inspected the actual Linux job logs: the resolver's 46 cases passed with pinned Vitest 4.1.11; production core/UI/plugin type checks, typed lint, and formatting passed. All 65 plugin-config shards and the aggregate CI gate passed. This closes the stale-local-dependency limitation recorded above; the earlier local full-gate failure remains a historical failure, not a claimed local success. The unchanged supplemental proof includes 48 focused resolver/cron/real SQLite manager tests and a 1,904-vector differential using actual numeric helpers and controlled dependency boundaries. It is not authenticated provider evidence. Resolved signatures, property order, explicit undefined fields, nested object freshness, source ordering, provider/secret behavior and storage semantics remain unchanged. Production net −74 lines; tests net +1. The completed ClawSweeper review found no patch or security defects and requests only normal maintainer review, which is complete. No Rank-up moves were requested. Its generic stored-data-model flag is not a migration change: this two-file diff changes no schema, indexes, retention, database paths, or storage semantics. The resolved values are equivalent and the existing real SQLite manager proof passes, so no migration is needed. Native preparation passed with the mandatory hosted-Testbox gate at the unchanged reviewed head, without a push or rebase. Separate pre-existing type/documentation drift was recorded for follow-up: the batch-enabled default comment and the unused store.cache type block; neither is changed by this frozen patch. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 11:41 PM ET / August 27, 2026, 03:41 UTC. ClawSweeper reviewWhat this changesThe PR removes redundant normalization around fixed memory-search defaults and adds coverage that successive resolver calls return isolated default objects. Merge readinessNo patch defect found: the cleanup preserves the fixed defaults, their downstream consumption, and fresh returned objects; current main has not subsumed it, and this maintainer-authored PR remains open for normal merge handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe memory-search resolver combines user-configurable provider and query settings with fixed indexing defaults. Its result feeds the Memory Core plugin’s indexing, batch embedding, sync, diagnostics, and search behavior. flowchart LR
A[OpenClaw configuration] --> B[Memory-search resolver]
C[Fixed indexing defaults] --> B
B --> D[Resolved search settings]
D --> E[Memory Core manager]
E --> F[Batch embedding]
E --> G[Sync and search]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -74, Tests +1. Total -73 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the direct fixed-default implementation once the exact PR head completes the normal repository merge gates. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a behavior-preserving cleanup, and the relevant resolver contract is covered by focused source and test evidence. Is this the best way to solve the issue? Yes: direct construction is the smallest maintainable implementation because the removed values are fixed internally and their former configuration paths are rejected by the schema. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e593842b8a3c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Maintainer-requested cleanup: memory-search configuration still carried private normalization paths for retired tuning options, even though those paths receive only fixed constants or
undefined. That made the resolver look configurable where it is not and rebuilt the same settings twice.Why This Change Was Made
Return the existing per-call chunking, sync, hybrid-ranking, and cache objects directly, and use the existing named remote-batch timing defaults. Remove the two unreachable batch-normalization helpers and the unused private sync arguments. The remaining configurable minimum score is still clamped.
Public configuration and SDK types, provider selection, credential handling, default values, source ordering, and storage behavior are unchanged. Nested defaults remain freshly allocated for every call, including the separate sync-only resolver. Explicit
undefinedfields remain present.User Impact
No user-visible behavior change or new configuration option. Production LOC: +10/-84 (net -74). Tests: +16/-15; the redundant timeout-only assertion is replaced with mutation-isolation coverage, while the existing full sync-default assertion is strengthened to strict equality.
AI-assisted with Codex.
Evidence
node scripts/run-vitest.mjs src/agents/memory-search.test.ts src/cron/isolated-agent/run.memory-search-config-preserved.test.ts extensions/memory-core/src/tools.real-manager.test.ts;node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/memory-search.ts src/agents/memory-search.test.ts; canonicalcheck-changed, static Madge, and runtime import-cycle scripts.Independent full-source precommit Codex review passed with no P0-P3 findings. The separate published-head review and exact-head CI remain required before landing.