Repository navigation
fix(memory-wiki): ignore structural markers in query text - #128105
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 12:50 AM ET / 04:50 UTC. ClawSweeper reviewWhat this changesThe memory-wiki plugin stops standalone structural HTML comments from affecting search matches, rankings, and displayed excerpts. Merge readinessThe focused repair is correct: it removes standalone internal markers from the shared body representation used for matching and snippets. This maintainer-owned PR remains open for normal exact-head CI resolution. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherMemory-wiki reads Markdown vault pages, scores them against a query, and returns snippets to the agent tool, CLI, and Gateway API. The changed normalization sits between page text and those result fields so internal formatting comments do not become search content. flowchart LR
A[Markdown wiki pages] --> B[Page metadata and body]
B --> C[Search candidate scoring]
C --> D[Remove standalone structural markers]
D --> E[Ranked results and snippets]
E --> F[Agent wiki search tool]
E --> G[CLI and Gateway API]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +162. Total +167 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared line-anchored normalization and merge once the exact PR head has green required checks. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main leaves standalone structural comments in both the snippet candidate pool and raw-body scoring, matching the linked report's mechanism. Is this the best way to solve the issue? Yes—the shared normalization is the narrowest maintainable fix because both affected paths consume the same page-body representation while metadata, managed content, and inline marker prose remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 663f4e796d30. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
436bb92 to
fd91301
Compare
|
Merged via squash.
|
Summary
Fixes #128017
Reported by @mrdcn.
Testing
node scripts/run-vitest.mjs extensions/memory-wiki/src/query.test.tsfailed because the snippet was<!-- openclaw:human:start -->90/90passed)450/450passed58/58passedextensions/acpxandextensions/cua-computer+10/-4(net+6); tests:+163/-0Punchcard-Session: crisp-timber-harbor-p1