dedup only removes consecutive duplicates, so two equal ids that were not adjacent would have passed. Follow-up to the review note on #5. generated with Claude Code