Code RoomVerify agent bug fix claim
MediumPrep Room Coding #4183

Verify agent bug fix claim

Vibe & agenticAlgorithms & data structuresMid–Senior~16 min

An AI agent opened a PR titled "Fix: cart totals occasionally double-count promo discounts" in your Node/TypeScript checkout service. The diff touches `applyPromotions()` and adds a guard. The agent's PR description says it "reproduced the bug and confirmed the fix." Before you approve, walk me through how you verify the claim itself — not just read the diff. What's your sequence, and what would make you distrust the agent's 'reproduced and confirmed' statement?

Implement
apply_promotions(subtotal_cents: int, promo_codes: list[str], promo_percents: list[int]) → int
Examples
in[10000,["SAVE10","SAVE10"],[10,10]]out9000
in[10000,["SAVE10","VIP20"],[10,20]]out7200
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 16 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.