Code Room
Vibe codingHardvc-g065
Subject Ai judgment limitsLevel Senior–Staff~18 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

You maintain firmware (in Rust) for a medical infusion pump that controls drug delivery rate. A new requirement says 'add a bolus dose mode' but the clinical safety constraints (max rate, lockout intervals, what happens on sensor fault) are only partially written down and live in domain experts' heads. A colleague wants to prototype the whole feature with an AI agent over the weekend. Make the call and justify it.

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.