Question
You're directing an AI agent to implement case-insensitive comparison and alphabetical sorting of user names for an international app (Java backend), used both to dedupe usernames and to render a sorted directory. Write the spec that makes 'equal ignoring case' and 'sorted order' correct across languages. What normalization, locale, and library behavior do you mandate, and what acceptance criteria prove it? Then describe the concrete bug a naive prompt ('compare names case-insensitively and sort them alphabetically') ships.
Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.
Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.