Code Room
Vibe codingHardvc-g483
Subject Ai verificationLevel Senior–Staff~20 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

An AI agent changed the default timezone handling in a shared `formatTimestamp` utility to fix a bug where one customer saw times in UTC instead of their local zone. The targeted bug is fixed. This utility is imported by 40+ modules across billing, notifications, audit logs, and analytics. How do you confirm the change didn't silently break adjacent features — and what's the trap of relying on the test suite passing?

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.