Skip to content

Turn the thread search evals into ranking tests - #5021

Merged
brsbl merged 2 commits into
mainfrom
bb/thread-search-ranking-tests-thr_tm8utsbqpb
Oct 6, 2026
Merged

brsbl merged 2 commits into
mainfrom
bb/thread-search-ranking-tests-thr_tm8utsbqpb

Conversation

@brsbl

@brsbl brsbl commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The search ranking evals behind #5003 ran only once, by hand, against a copy of a real workspace. Nothing kept checking them, so a later change could quietly bring back the old ordering.

What changed

  • A new db test runs those evals against a built-in synthetic workspace.
  • The workspace uses the eval titles plus newer distractor threads whose messages repeat the query words.
  • For each of 14 queries, the test checks the expected title matches in order and that the rest follow by most recent activity.
  • It also checks the results are exactly the threads containing every word, and that every highlight covers a query word.
  • New cases cover accents ("cafe" → "Café sync"), a hyphenated query whose words appear in separate messages ("plugin-sdk"), a fallback-only title, and a titled thread's fallback.
  • The timing cases are left out because they would be flaky in CI.

How you verified

  • Remote CI: passed on ca442c6, including all 14 ranking cases. One unrelated Windows provider-parity flake passed on rerun. Run
  • Slop Cop on 62c0256: no blockers. The old bm25 query fails 9 of the 14 cases; three test-tightening follow-ups were fixed in ca442c6.

Follows #5003.

BB-Thread: ⌘K improvements

🤖 Generated with Claude Code

AGENT GENERATED

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@brsbl
brsbl merged commit c205d81 into main Oct 6, 2026
74 of 75 checks passed
@brsbl
brsbl deleted the bb/thread-search-ranking-tests-thr_tm8utsbqpb branch October 6, 2026 19:23
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