Code RoomFast mitigation versus dangerous band-aid
MediumPrep Room Coding #4647

Fast mitigation versus dangerous band-aid

Vibe & agenticAlgorithms & data structuresMid–Senior~18 min

An incident is open: a Python ETL job is failing and the on-call AI assistant proposes a one-line fix — wrapping the failing parse in a broad `try/except: pass` so the pipeline stops crashing. It would stop the pages immediately, and everyone's tired. As the engineer holding the pager, decide whether to apply it under pressure, and where the line is between a legitimate fast mitigation and a dangerous AI band-aid.

Implement
apply_etl_mitigation(row_lines: list[str], alert_threshold_percent: int) → list[str]
Examples
in[["u1|10","u2|n/a","u3|30"],10]out["accepted=2","quarantined=1","bad_pct=33","alert=yes","quarantined_id=u2"]
in[["u1|10","u2|20"],5]out["accepted=2","quarantined=0","bad_pct=0","alert=no"]
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 18 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.