Add the missing endpoint
Add GET /tasks/<id> so it returns the matching task as JSON with 200, or a JSON 404 when no task has that id. Keep the existing endpoints working. The suite in tests/test_acceptance.py is the exact contract.
vibe-codingflaskapibuildai
candidate@lab:~$ cd /home/easyenv/projectcandidate@lab:~$ venv/bin/python -m pytest -qcandidate@lab:~$
The situation
A tiny tasks API (Flask) runs on this box. It can list tasks and create a task, but the endpoint that returns a single task by id was never built. Its acceptance tests are red.
The rules a correct fix has to keep are in the brief the candidate reads when the test starts. They are not on this page, so nobody can read the answer ahead.
How to interview an AI-assisted developer
Most AI-assisted developer interviews ask questions about Vibe Coding. This one asks for the work: a Vibe Coding system with a real fault, a terminal and a clock. It is a challenge you can give an AI-assisted developer in a live interview or as a take-home.
- 1
Reproduces it first
Sees the fault with their own eyes before touching anything.
- 2
Reads before changing
The logs, the config and the code around the fault.
- 3
Fixes the cause
Not the symptom, and not by turning a check off.
- 4
Checks the rules
Shows the fix keeps what the brief asks for, then finishes.
What the candidate gets
A real machine
The broken Vibe Coding system runs on its own Linux machine, built fresh for each candidate. Nothing to install: it opens in the browser.
A terminal and an editor
The same tools they use at work, on the machine where the fault is.
About 60 minutes
The suggested time for the task, from the challenge itself.
Checks, a replay and an AI review
When they finish, the checks run on the machine. You read the result, the AI review and every command they typed.
More Working with AI challenges
Vibe Coding60 min
Bank reconciler
Build a command line tool that pairs up two lists of money movements (
bank.csvandledger.csv) and reports what does not line up.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/projectVibe Coding60 min
Booking slots
Build a booking page. A day has a fixed set of slots, some already taken over the phone (
slots.json), people take one, and a taken slot cannot go twice.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/projectVibe Coding60 min
Build a validated signup
Add
POST /signupthat: - requires anemail(must contain@) and apassword(at least 8 characters), - returns400with a JSON error when either is invalid, - on success stores the user and returns it with201, and never returns the password. The suite intests/test_acceptance.pyis the exact contract.$cd /home/easyenv/projectVibe Coding60 min
Product search
Build a product list people can search and filter. The catalogue is the warehouse's export in
products.json.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/project
Put it in your next interview.
Pick this challenge for a role, send the link, and watch the replay when they finish.