Code RoomAccountability for agent code
HardPrep Room Coding #4259

Accountability for agent code

Vibe & agenticAlgorithms & data structuresSenior–Staff~24 min

Your org wants to formalize who is accountable when AI-authored code fails in production. Today, blame is fuzzy: an engineer ran the agent, skimmed the diff, and merged — and when it broke, the post-incident discussion devolved into 'the AI wrote it.' As the staff engineer, define the ownership and merge model for AI contributions across the team. Where does accountability sit, how does that change what 'review' must mean for agent code, and what perverse incentive do you have to design against?

Implement
merge_gate(risk_areas: list[str], diff_lines: int, reviewer_can_explain: bool, automated_gates_green: bool) → str
Examples
in[["ui"],50,false,true]out"merge:light_review"
in[["security"],50,false,true]out"block:needs_comprehension"
in[["money"],50,true,true]out"merge:deep_review"
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 24 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.