CSV bulk import spec
A customer uploads a CSV of up to 200k contact rows that you must import into Postgres. Write the spec you'd hand an AI agent to build the Python importer. What edge cases, constraints, and acceptance criteria must be in the spec for the result to survive real-world files — and what does a one-line 'parse the CSV and insert it' prompt silently get wrong?
Implement
split_csv_row(row: str) → list[str]Examples
in
["a,b,c"]out["a","b","c"]in
["\"Doe, Jane\",jane@example.com,\"She said \"\"hi\"\"\""]out["Doe, Jane","jane@example.com","She said \"hi\""]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.
Run or narrate your approach, then ask the coach.