Skip to content

test(eval): defer clozapine-wcc-abbreviation-threshold golden case#227

Merged
BigSimmo merged 3 commits into
mainfrom
claude/defer-clozapine-wcc-golden-case
Jul 3, 2026
Merged

test(eval): defer clozapine-wcc-abbreviation-threshold golden case#227
BigSimmo merged 3 commits into
mainfrom
claude/defer-clozapine-wcc-golden-case

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Removes the clozapine-wcc-abbreviation-threshold golden retrieval case: query classification for the WCC phrasing is already correct on main, but the withhold-action evidence for that phrasing doesn't yet rank into the top-5 retrieval results — a ranking, not routing, gap.
  • Updates the corresponding CI-14 abbreviation-case unit test to expect just the passing clozapine-cbc-abbreviation-threshold case.

Context

This was mined out of an old uncommitted worktree (claude/rag-reindex) that had drifted well behind main — its other changes (WCC/white-cell routing regex, a reindex-eval-gate unsupported_count skip condition) turned out to already be shipped on main in equal or more complete form. This is the one piece that wasn't: the golden-case deferral itself. Note the underlying ranking gap claim (chunk not surfacing top-5) is carried over from the original commit's reasoning and hasn't been independently re-verified against a live retrieval run in this PR.

Test plan

  • npx vitest run tests/eval-retrieval.test.ts — 7/7 pass
  • npx vitest run tests/eval-retrieval.test.ts tests/clinical-search.test.ts tests/rag-eval-cases.test.ts — 56/56 pass
  • Confirmed no other references to the removed case ID anywhere in the repo
  • Live golden retrieval eval against production Supabase+OpenAI to re-confirm the ranking gap (not run here — flagging as a good follow-up before/при closing this out)

🤖 Generated with Claude Code

Query classification for the WCC phrasing is already correct (routing to
table_threshold already recognizes wcc/white cell as clozapine monitoring
terms), but the withhold-action evidence for that phrasing doesn't yet
rank into the top-5 retrieval results — a ranking, not routing, gap.
Excluding the case from the golden fixture until that's addressed avoids
carrying a known-unvalidated case in the regression suite; the passing
clozapine-cbc-abbreviation-threshold case is kept.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@BigSimmo
BigSimmo enabled auto-merge (squash) July 3, 2026 08:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 073a305291

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/eval-retrieval.test.ts
@BigSimmo
BigSimmo disabled auto-merge July 3, 2026 08:25
BigSimmo and others added 2 commits July 3, 2026 16:44
…al case

Addresses review feedback on #227: removing the WCC golden case from the
fixture also silently dropped classification-coverage for it, not just the
ranking check that actually needed deferring. Adds a standalone assertion
that the WCC clozapine phrasing still classifies as table_threshold, so a
future classifier regression is still caught.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@BigSimmo
BigSimmo enabled auto-merge (squash) July 3, 2026 09:13
@BigSimmo
BigSimmo merged commit b1e7bf8 into main Jul 3, 2026
4 checks passed
@BigSimmo
BigSimmo deleted the claude/defer-clozapine-wcc-golden-case branch July 5, 2026 11:43
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