Repository navigation
Conversation
|
Updated after CI/proof feedback:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed June 21, 2026, 11:42 AM ET / 15:42 UTC. Summary PR surface: Source +99, Tests +324. Total +423 across 7 files. Reproducibility: yes. at source level. Current main stores paths as UNINDEXED FTS metadata and writes only chunk body text into the indexed FTS column, matching the linked filename/date-token miss. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 this PR as the canonical repair if maintainers accept path-prefixed FTS payloads; otherwise replace it with a separate path-index strategy before merge. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main stores paths as UNINDEXED FTS metadata and writes only chunk body text into the indexed FTS column, matching the linked filename/date-token miss. Is this the best way to solve the issue? Yes, if maintainers accept the FTS payload/ranking compatibility tradeoff. The patch stays inside memory-core, keeps snippets body-only, and covers legacy self-heal; the main alternative is a separate path-FTS design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2804c24dc6e5. Label changesLabel justifications:
Evidence reviewedPR surface: Source +99, Tests +324. Total +423 across 7 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
|
|
Pushed a follow-up commit (
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pushed What changed
Why this is the right gate
Regression coverage (all green)
Validation runs Risk
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pushed What changed
Why it preserves the rebuild gate
Regression coverage
Validation Risk
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
No code changes. Co-authored-by: Cursor <[email protected]>
…n upgrade Existing clean memory indexes built before openclaw#94135 wrote chunk body only into chunks_fts.text and skipped reindex on unchanged file hashes, so filename/date queries still returned textScore: 0 after upgrade until the user forced a reindex. Add ftsTextFormat to MemoryIndexMeta and treat indexes whose stored format does not match the current path-prefixed-v1 payload as identity-dirty, so the existing CLI sync path triggers a rebuild on the next memory search. Fixes openclaw#94102 review feedback (clawsweeper P1).
Extend the FTS payload format identity gate so legacy body-only chunks_fts.text rows rebuild on the default `reason: "search"` path used by manager.search / memory_search, not only `reason: "cli"` and forced syncs. Provider/model/scope mismatches keep the existing pause behavior — only the FTS payload format is safe to self-heal, because rebuilding chunks_fts rows never discards embeddings or chunk content. Adds isMemoryIndexFtsTextFormatOnlyMismatch() that re-runs identity with the configured ftsTextFormat pinned to whatever the index already has; if that returns valid, only the FTS payload differs and the rebuild trigger fires. Addresses ClawSweeper review P1 on PR openclaw#94135 (refs openclaw#94102).
3b47a4a to
d551617
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Superseded by #96052 — rebased on latest main with fresh negative-control proof and corrected PR body headings. |
What Problem This Solves
memory_searchFTS indexed only chunk body text. Queries for date-like filename stems (e.g.2026-06-17-1649) returned unrelated files withtextScore: 0even when the target file was indexed and content search worked.textcolumn at index time (${entry.path}\n${chunk.text}) so filename/date tokens participate in hybrid keyword ranking. Keyword-search snippets and lexical density scoring strip the indexed path prefix back off.memory_search.Evidence
Before (negative control —
git checkout origin/main -- extensions/memory-core/src/memory/):After (fix applied):
All memory-core tests (3 files):
Behavior probe — filename token query:
Snippet cleanliness guard (snippet is chunk body, not the path line):