Question
An AI agent wrote a TypeScript function `parseRetryAfter(header: string): number` that turns an HTTP `Retry-After` header into a delay in milliseconds. The header can be either a number of seconds or an HTTP-date. You want to expose a bug with as few test inputs as possible. Which 2-3 inputs do you pick, and what bug is each one hunting for?
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.