Code RoomAutonomy boundary for production changes
HardPrep Room Coding #4374

Autonomy boundary for production changes

Vibe & agenticAlgorithms & data structuresSenior–Staff~20 min

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.

Implement
requires_human_gate(action: str, blast_radius: int, undo_cost: int) → bool
Examples
in["open_pr",1,1]outfalse
in["terraform_apply",2,3]outtrue
in["global_config_push",5,3]outtrue
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 20 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.