Code Room
Vibe codingHardvc-g143
Subject Ai architectural coherenceLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

Over a quarter, agents have filled out a service where each feature lives in its own module — and each module is fine, but they leak: business logic seeps into HTTP controllers, the DB schema is queried directly from three layers, and there's no clear domain boundary anymore because no single agent run ever 'owned' the architecture. The system works and ships. As the staff engineer, how do you reassert clean abstraction boundaries across a largely machine-written codebase, and what do you change about HOW you delegate so the boundaries hold next quarter?

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.