Ranked findings from this diff

Prompt

Review this diff for #language#. Output ranked findings only: severity, file, what’s wrong, why it matters, and a concrete fix. Categories: correctness, edge cases, API shape, tests, secrets. Do not rewrite the whole module. Do not invent files that are not in the diff.
Diff:
#diff#