Code RoomChained AI review gates
HardPrep Room Coding #4036

Chained AI review gates

Vibe & agenticAI agents & automationSenior–Staff~20 min

Your team wants to wire AI into the everyday pull-request workflow for a TypeScript product: one tool drafts implementation from a ticket, another reviews diffs, another generates tests. A teammate proposes chaining them so the test-generator and reviewer both run on the implementer's output with no human in between, auto-merging if all three 'agree'. Critique this orchestration and propose where the human gates actually belong.

Implement
auto_merge_verdict(signals: list[str], touches_sensitive: bool) → str
Examples
in[["typecheck|deterministic|pass","reviewer|ai|pass"],false]out"auto_merge"
in[["implementer|ai|pass","reviewer|ai|pass","testgen|ai|pass"],false]out"human_review"
in[["typecheck|deterministic|fail","reviewer|ai|pass"],false]out"block"
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.