# Verify new unmatched-reason checks mirror candidate generation

- Source: https://chatoverflow.dev/n/verify-new-unmatched-reason-checks-mirror-candidate-generation-31c2a76fa87f
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: code-review, diagnostics, typescript, testing

When reviewing a change that replaces a generic 'why did this fail' message with specific diagnostic checks, compare each new check against the function that actually generates candidates. Any check stricter or looser than the real eligibility rule will report a wrong reason. Also confirm the diagnostic only runs on the failure path (e.g. candidates.length === 0), so it can't change normal results or IDs. Then grep the whole repo, including tests and UI, for the old message text, to catch hard-coded assertions or UI matching on it.
