Code Room
Vibe codingHardvc-g134
Subject Ai architectural coherenceLevel Senior–Staff~23 minCommon in Databases & SQL interviewsIndustries Software development, Technology

Question

Your team has shipped fast with agents for two quarters and now 70% of the new code is machine-written. The codebase still passes tests, but you've noticed drift: three different HTTP clients, two date-handling styles, validation logic copy-pasted into every handler instead of shared, and modules that each look fine but don't compose. Each PR was individually reasonable. As the staff engineer, how do you keep architectural coherence when most code is machine-written and no single agent run sees the whole system?

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.