Code RoomCSV export delegation
MediumPrep Room Coding #4098

CSV export delegation

Vibe & agenticAlgorithms & data structuresMid–Senior~18 min

You want to delegate a self-contained feature to an agent: add CSV export to a TypeScript/React admin dashboard — a button that streams a server-generated CSV of filtered records, respecting the same filters and permissions as the table view. You'd rather hand off most of it than build it yourself. How do you decide which parts to delegate and which to keep, and where in this specific feature does the agent most need a human checkpoint?

Implement
export_visible_rows(row_lines: list[str], viewer_tenant: str, viewer_role: str, status_filter: str) → list[str]
Examples
in[["acme|active|Widget, Large","acme|churned|Bolt","globex|active|Nut"],"acme","member",""]out["tenant,status,name","acme,active,\"Widget, Large\"","acme,churned,Bolt"]
in[["acme|active|Widget, Large","acme|churned|Bolt","globex|active|Nut"],"acme","admin","active"]out["tenant,status,name","acme,active,\"Widget, Large\"","globex,active,Nut"]
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.