Code Room
Vibe codingHardvc-g213
Subject Ai risk judgmentLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Software development, IT services

Question

You're building a clinical-decision-support feature: given a patient's labs, suggest a medication dosage range. An AI agent writes the Python dosing logic and it looks clean and well-tested. A PM wants to ship it on the strength of the green test suite and the agent's confident explanation. As the engineer accountable for this code path, what's your position on shipping, and what would you require?

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.