fix(ranking): replace 60% prefix stem with 4-char + half-length stems#58
Merged
Merged
Conversation
expandTokens was generating 'authenti' (60% of 'authentication') instead of 'auth', causing pack to return 0 items for long English query words. Replace the single 60% stem with two fixed-length stems: - 4-char stem: catches root prefixes (auth, conf, init, user) - half-length stem: floor(len * 0.5) catches mid-length matches e.g. 'config' (6) from 'configuration' (13) Add 8 new unit tests covering prefix stemming, camelCase expansion, no-over-match guard, and cross-file ranking without knowledge atoms. Also includes adapter parity fixes from this session: - windsurf, gemini: add agentSkillFiles (skill file parity with copilot/cursor/cline) - gemini: switch from bulletWorkflow to numberedWorkflow - claude-code: Stop hook runs kgraph stale then session end --conclude - pack: warn when needs-review/stale atoms served in context (P1) - pack: warn when maps are behind HEAD (P4) - tests: integration-registry and integrate tests updated for new adapter behaviour 233/233 tests passing.
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.
expandTokens was generating 'authenti' (60% of 'authentication') instead of 'auth', causing pack to return 0 items for long English query words.
Replace the single 60% stem with two fixed-length stems:
Add 8 new unit tests covering prefix stemming, camelCase expansion, no-over-match guard, and cross-file ranking without knowledge atoms.
Also includes adapter parity fixes from this session:
233/233 tests passing.