Question
An AI agent wrote a 40-character Python regex to validate and parse international phone numbers for a signup form, and it works on every example you tried. You don't fully understand the regex — the lookaheads and the optional country-code group are opaque to you. It's about to gate every new user. How do you verify it's correct and safe before merging, without just trusting that it parsed your handful of test numbers correctly?
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.