Skip to content

fix(mcp): tokenized search + ~/notes scope; drop public ROADMAP#12

Merged
anbturki merged 2 commits into
mainfrom
fix/mcp-search-and-scope
Jul 3, 2026
Merged

fix(mcp): tokenized search + ~/notes scope; drop public ROADMAP#12
anbturki merged 2 commits into
mainfrom
fix/mcp-search-and-scope

Conversation

@anbturki

@anbturki anbturki commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Fixes (verified live against a dev binary)

  • Multi-word search returned nothing. search_docs and search_memory matched 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.
  • ~/notes reported scope: project. Ambient resolution tagged any <base>/notes as 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 ~/notes at user scope, 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

  • Remove the public ROADMAP.md, its README section, and its markdownlint glob; roadmap planning now lives internally.

anbturki added 2 commits July 3, 2026 19:54
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.
@anbturki anbturki merged commit 2ec685d into main Jul 3, 2026
2 checks passed
@anbturki anbturki deleted the fix/mcp-search-and-scope branch July 3, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant