Repository navigation
Conversation
16fe772 to
2c3cafa
Compare
|
@clawsweeper re-review Updated: rebased on latest main, PR body with ## What Problem This Solves + ## Evidence, fresh proof with negative control, CI green. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 7:44 AM ET / 11:44 UTC. Summary Reproducibility: yes. The canonical issue provides a concrete CLI query where a healthy indexed exact filename stem loses to semantic neighbors, with content-search and index-health controls isolating the ranking defect. Review metrics: 2 noteworthy metrics.
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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Ship the separate path-FTS design as a clean current-main patch containing only the 11 intended memory, SDK, test, and documentation files, with exact-head installed-CLI proof that exact paths, basenames, stems, duplicate names, body relevance, snippets, temporal decay, and restart/backfill behavior remain correct. Do we have a high-confidence way to reproduce the issue? Yes. The canonical issue provides a concrete CLI query where a healthy indexed exact filename stem loses to semantic neighbors, with content-search and index-health controls isolating the ranking defect. Is this the best way to solve the issue? Yes for the focused architecture: a separate path index preserves chunk-body FTS bytes, BM25, snippets, embeddings, and cache identity better than prefixing paths into body text. No for the current branch shape, which is not a safe merge vehicle. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d5fe0c5e73d9. Label changesLabel changes:
Label justifications:
Evidence reviewedSecurity concerns:
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
Review history (6 earlier review cycles)
|
|
@clawsweeper review Ready for review — all 4 PR body sections complete, CI green, negative control proof included, vitest 53/53 passed. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(memory): rank filename and path matches This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Landed the credited replacement in #104449 as The final implementation keeps this PR as its base, then extends it with a separate path FTS index, bounded exact/non-exact candidate handling, Unicode and fallback controls, stable row identity, transactional v1-to-v2 migration, and exact-head Linux/package proof. We used a maintainer-owned replacement because GitHub's verified branch editor could update this fork's tree but could not rewrite its stale ancestry onto current Thank you, @Pick-cat, for the original fix and test direction. For future PRs, keeping “Allow edits by maintainers” enabled helps with ordinary fixups; ancestry rewrites can still require a credited replacement. |
What Problem This Solves
memory_searchindexed only chunk bodies. Exact filename and date-stem queries such as2026-06-17-1649could therefore behave like vector-only semantic searches and omit the indexed file whose basename exactly matched the query.Fixes #94102.
Why This Change Was Made
The maintainer rewrite keeps path retrieval separate from body retrieval instead of prefixing every chunk's FTS payload with its path. A one-row-per-source path FTS index is maintained from the canonical source table and rebuilt transactionally during shadow publication.
Search carries one closed specificity tier (
full path > basename > stem > partial) through FTS-only and hybrid ranking. Exact identifiers remain ahead of semantic neighbors, while body/vector relevance orders duplicates within the same tier. Unicode normalization, short trigram terms, source scoping, temporal decay, MMR, existing-database backfill,VACUUMrowid changes, and duplicate basenames beyond the candidate cap have dedicated regressions.This design leaves body FTS bytes, BM25 scores, snippets, embeddings, and embedding-cache identity unchanged; existing indexes gain only the derived path table and do not re-embed. The path table constant and canonical trigger owners cross the bundled-plugin boundary through the existing public memory SDK subpath; its pinned surface budget advances by exactly three exports, two callable.
User Impact
Searching an exact memory path, basename, filename stem, generated timestamp, or partial path now surfaces the intended memory file before unrelated semantic neighbors. Body searches keep their existing ranking and snippets, with no new configuration or reindex requirement.
Evidence
33b3208573164354cc451fb41fdd83d0849637f3.run_0f73781a787a, 121/121 across path/body search, hybrid/FTS-only ranking, schema startup and mutation triggers, shadow publication, duplicate basenames, Unicode NFC/NFD, CJK, temporal decay, and MMR.run_40cef702f5df, all 15 touched paths, routed lanes, types, lint, and guards green.run_b31ccb13999f; tarball integrity and global install passed, OpenClaw2026.7.2 (33b3208), providernone.run_ee24ec1fa100; duplicate filename/full-path/stem ordering, byte-identical body results across processes, zero false positives, vectors/cache disabled, and unchanged body-index fingerprint passed.satisfies_contractat confidence0.97; 231 duplicate basenames, Unicode NFC/NFD, clean body snippets, human/JSON parity, restart stability, and filename/body mutation probes all passed.oxfmt,oxlint, andgit diff --check: clean.Co-authored-by: Pick-cat [email protected]