Code Room
Vibe codingHardvc-g580
Subject Ai decompositionLevel Senior–Staff~22 minCommon in Distributed systems interviewsIndustries Computer games, Software development

Question

You're building real-time multiplayer state sync for a small browser game in TypeScript: clients send inputs, a server authoritative loop ticks at a fixed rate, and clients reconcile predicted state with server snapshots. You want an AI agent to do a lot of the work. How do you decompose it, what do you keep, and where do human checkpoints belong?

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.