Code Room
Vibe codingHardvc-g144
Subject Ai human in loopLevel Senior–Staff~21 minCommon in Algorithms & data structures interviewsIndustries Technology, Software development

Question

You're letting an agent help rewrite a critical deploy/rollout script in Bash that manages a blue-green switch over a fleet of load balancers — drain connections, flip traffic, health-check, and roll back on failure. The agent is fast and the script is mostly mechanical, but a bug here takes production down for everyone. Decide the human-in-the-loop checkpoints: what you let it draft freely, what you review before it can run anywhere, and what it must never execute against prod without an explicit human action — and explain the reasoning for each line you draw.

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.