fix(mcp): tokenized search + ~/notes scope; drop public ROADMAP#12
Merged
Conversation
Multi-word queries in search_docs and search_memory matched the whole query as one substring, so a query like "coturn flags" scored zero unless the words were adjacent. Tokenize the query and require every term to match somewhere (AND), summing per-term field scores; a single word behaves as before. Snippets now locate the earliest matching term. Separately, ambient workspace resolution tagged any <base>/notes as a project workspace, so walking up to the home directory mislabeled the user default ~/notes as project - inconsistent with the registry, which reports user. Skip the home directory in the walk-up so ~/notes stays user scope.
Remove the public roadmap file, its README section, and its markdownlint glob. Roadmap planning now lives outside the repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes (verified live against a dev binary)
search_docsandsearch_memorymatched the entire query as a single substring, so "coturn flags" scored zero unless the words were adjacent. Now tokenized: every whitespace term must match somewhere (AND), scores sum per term, single-word queries unchanged. Snippets locate the earliest matching term.~/notesreportedscope: project. Ambient resolution tagged any<base>/notesas a project workspace, so walking up to the home dir mislabeled the user default. Now the home dir is skipped in the walk-up, keeping~/notesatuserscope, consistent with the registry.Regression tests: memory + docs multi-word (with AND semantics), and home-notes-stays-user-scope. Full suite green (75 core tests, clippy -D warnings, fmt, 43 frontend).
Also
ROADMAP.md, its README section, and its markdownlint glob; roadmap planning now lives internally.