Code RoomVerifying callback-to-async conversion
HardPrep Room Coding #4192

Verifying callback-to-async conversion

Vibe & agenticCode quality & reviewSenior–Staff~20 min

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?

Implement
compare_effect_traces(old_trace: list[str], new_trace: list[str]) → str
Examples
in[["a","b","c"],["a","b","c"]]out"identical"
in[["db_write","email_send"],["email_send","db_write"]]out"reordered at 0: expected db_write got email_send"
in[["load","save","notify"],["load","save"]]out"missing at 2: notify"
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.

0:00 of about 20 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.