Code Room
Vibe codingMedium
Question
A test in your Go integration suite is flaky. You asked an agent to fix it and it 'fixed' it by inserting time.Sleep(500 * time.Millisecond) before the assertion. CI is green now. Walk through why you'd reject this, how you'd re-steer the agent toward the real fix, and when you'd stop prompting and dig in yourself.
What a strong answer looks like
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.
Learn the concepts
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.
Run or narrate your approach, then ask the coach.