Resumable file upload endpoint
Greenfield: you're directing an AI agent to build a resumable file-upload endpoint in TypeScript (Node/Fastify) backed by S3 multipart, for files up to 5 GB over flaky mobile connections. Describe how you'd scaffold and sequence the build with the agent: how you pick the chunking protocol (tus vs. S3 multipart vs. roll-your-own), what acceptance criteria you hand it up front, and where you insert review gates. What would a careless one-shot prompt get wrong here?
plan_missing_parts(total_bytes: int, part_size: int, uploaded_parts: list[int]) → list[int][15728640,5242880,[1,3]]out[2][11534336,5242880,[]]out[1,2,3][1048576,1048576,[1]]out[]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.
Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.