Code Room
Vibe codingHardvc-g457
Subject Ai decompositionLevel Senior–Staff~24 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

An AI agent is migrating a payments service from a synchronous charge flow to an idempotent, queue-based one in Java. The agent can produce a lot of correct-looking code fast. Decide where in this multi-step migration a human MUST review before the agent proceeds, and where you can let it run autonomously. Justify each gate by what's at stake if the agent is wrong there.

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.