Problem
tokenize("AI") yields [] (short-token filter), and empty tokens match everything: a query of only short tokens returns the first 10 cases by number, presented as matches.
Where
src/search.ts (length filter + tokens.length === 0 fallback).
Acceptance
Add a failing test first asserting searchCases(corpus, "AI") returns [] (or explicit no-match) rather than unrelated cases. Then fix.
Problem
tokenize("AI")yields[](short-token filter), and empty tokens match everything: a query of only short tokens returns the first 10 cases by number, presented as matches.Where
src/search.ts(length filter +tokens.length === 0fallback).Acceptance
Add a failing test first asserting
searchCases(corpus, "AI")returns[](or explicit no-match) rather than unrelated cases. Then fix.