Code Room
Vibe codingHardvc-g454
Subject Ai judgment tool fitLevel Senior–Staff~20 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

Your team is about to let an AI agent operate semi-autonomously on production: it can open PRs, and you're debating whether to also let it run database migrations and infra changes (Terraform apply) without a human approving each one. Make the call on where to set the autonomy boundary, and explain the principle that decides which actions an AI may take unattended versus which always require a human gate.

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.