Turning a Ticket into Acceptance Criteria
The First Five Minutes left you knowing how the repo works. The next question is what the task actually asks for, and the ticket rarely says it fully. Interview prompts are often written like real ones, as a PM's Slack message or a short issue, and the gaps in them are deliberate. Interviewers want to see whether you notice the gaps and close them before the AI fills them with its own guesses.
The running example continues with toolshed, the tool-lending library. The prompt arrives as a message from a PM:
"Members keep asking to reserve tools that are already out on loan. Can we let them get in line for a tool? Would be great to have before the spring rush."
Read the Ticket for What It Leaves Out
A ticket describes the problem the writer sees, not the rules the code needs, so your first job is to list what's missing. Every gap you don't close yourself will be closed by the AI, silently and often differently from what the interviewer had in mind. A two-line message like the one above hides half a dozen decisions.
Read it with the repo in mind, since the code tells you which gaps matter. The trace from the previous page showed
that loans have a due_at and a returned_at, and that members can hold at most three loans. So the questions
that come up are concrete. What happens when the tool comes back: does it go to the first person in line
automatically? Can a member join the line for a tool that's available right now? Does a reservation count toward the
three-loan limit? Can a member cancel, and see their place? What if nobody in line picks it up?
Write the gaps in your notes as a list, then sort them. Some only the PM can answer, because they're about how the product should behave. Others are technical choices you can make yourself. Only the first kind is worth asking about.
Ask the Questions That Change the Code
Ask a few questions, each of which changes what you'd build, and offer a default with each one. A question with a default is quick to answer ("yes, that's fine") and shows you've already thought it through. Three to five questions is usually right for a live round. Fewer, and you'll guess at things that matter. More, and you'll spend fifteen minutes in conversation with nothing built.
Compare two ways of asking:
Weak: "What should happen when the tool is returned?"
Better: "When a reserved tool comes back, I'd hold it for the first member in line for 48 hours, then offer it to the next. Does that match what you want?"
The first hands the design back to the PM. The second proposes one, so the PM only has to agree or correct it. Do the same for every question on your list, in order of how much each answer changes the code. A short exchange might go:
You: "Can someone reserve a tool that's on the shelf right now? I'd say no, they should just borrow it."
PM: "Right, only tools that are out."
You: "And does a reservation count toward the three-loan limit? I'd leave it separate, and cap reservations at two per member."
PM: "Separate is fine. Two sounds good."
Keep technical questions to yourself unless they affect the product. Whether reservations get a new table or a field
on Loan is your call; just say what you chose and why. In formats where the interviewer plays a PM, they may refuse
technical questions anyway, as Interview Formats describes.
Write Down "Done Means..."
Turn the answers into a short written list of acceptance criteria, each one specific enough to become a test. Spoken agreements fade within ten minutes. A written list keeps you honest, gives the interviewer something to point at, and later becomes the context you hand the AI. Write it in your notes file, or in a comment at the top of the file you'll change:
Done means:
1. A member can reserve a tool that's on loan; reserving an available tool returns 409.
2. A member can hold at most 2 active reservations; a third returns 409.
3. When the tool is returned, the first reservation becomes "ready" and holds the tool for 48 hours.
4. After 48 hours unclaimed, the hold passes to the next reservation.
5. A member can cancel their own reservation.
Out of scope: emails, front end changes, editing the queue order.
Each line names an input and an observable result, which is what makes it testable. "Reservations should work well" can't fail. "A third reservation returns 409" can. If a criterion can't be phrased that way, it's probably still vague, and that's a sign to ask one more question.
Read the list back to the interviewer before you plan: "Here's what I'll treat as done. Anything missing?" This takes thirty seconds and is the cheapest insurance in the round. If they add something, you've learned it now instead of at minute fifty.
Agree Scope and Bonus Items
Split the work into the core path, bonus items and things you won't do, and say the split out loud. Interview tasks are often sized to run past the time, with extra items for whoever gets there. If you don't choose a scope, the task chooses for you, and you end the hour with five half-finished things instead of two finished ones.
The core path is the smallest version that solves the user's problem from end to end. For toolshed, that's
criteria 1-3: reserve, limit, hand over on return. The 48-hour expiry and cancelling are good bonus items, because
they build on the core without changing it. Emails and front end work are out of scope unless the PM says otherwise.
Ordering bonus items by what the PM cares about most is also worth a question: "If there's time after the core,
would you rather have expiry or cancelling?"
Write the split next to your criteria and revisit it at the halfway point. If the core path is done by then, start the first bonus item. If not, say so and keep going on the core. Plan Before You Prompt turns the core path into ordered steps.
When Nobody Answers
Sometimes you can't ask, or the answer is "you decide", and then the move is to state your assumption and write it down. In a take-home there's nobody to ask. Some interviewers stay quiet on purpose, and some PM-style interviewers only answer product questions. In each case the interviewer is still checking that you noticed the gap.
State the assumption in one sentence, choose the simplest reasonable behaviour, and keep going: "I'm assuming the first member in line gets the tool, since that's what 'get in line' suggests." In a take-home, put the assumptions in a short section of the README, so the grader sees you made them on purpose. In a live round, say them as you write the criteria, so the interviewer can stop you if one is wrong.
At work you'd often start building and sort out the details in review. In the interview there's no later review, and an assumption you never stated looks like a mistake. Whatever the format, give the finished criteria to the AI along with each prompt. Without them, it falls back to its own defaults, which is exactly the guessing you just spent five minutes avoiding.
Key Takeaways
- List the decisions a ticket leaves out, then sort them into product questions and your own technical choices.
- Ask 3-5 product questions, each with a proposed default, in order of how much the answer changes the code.
- Write "done means..." as testable lines, each with an input and an observable result, and read it back.
- Split the work into core path, bonus items and out of scope; check the split at the halfway point.
- When nobody answers, state the assumption in one sentence, write it down and keep going.
Practice it in a real repo: AI coding rounds.