Code Room
Vibe codingHardvc-g234
Subject Ai verificationLevel Senior–Staff~20 minCommon in Code quality & review interviewsIndustries Software development

Question

An AI agent migrated a 2,000-line legacy module from callbacks to async/await across a Node service, asserting 'pure mechanical conversion, no behavior change.' It's too large to read carefully and the test suite is thin. You can't ship it on faith but you also can't rewrite the tests for 2,000 lines first. How do you get enough confidence to verify behavior preservation, and what's the async-specific regression you're hunting for?

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.

Describe your solution

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.