Code RoomArchitectural drift at scale
HardPrep Room Coding #4095

Architectural drift at scale

Vibe & agenticDatabases & SQLSenior–Staff~23 min

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?

Implement
find_convention_violations(usage_lines: list[str], canonical_lines: list[str]) → list[str]
Examples
in[["billing|http|axios","billing|date|dayjs","search|http|fetchWrapper","reports|http|axios"],["http=axios","date=dayjs"]]out["search|http|fetchWrapper"]
in[["a|validation|inline","b|validation|shared_validator","a|logging|winston"],["validation=shared_validator"]]out["a|validation|inline"]
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 23 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.