The report you get for every take-home
A full report for a fictional candidate, with the same sections your reviewers see. The tests pass and the score is fine. The last section shows why that was not the whole story.
Jordan Blake
Backend Engineer
Task
Sliding-window rate limiter · Python
AI policy
Allowed, on the record
Time taken
2h 05m
Result
85
At or above the 70 pass mark.
Where the points came from
Hidden tests
64 of 70
Claude review
21 of 30
Hidden tests
allows requests under the limit · Passed
rejects the request that exceeds the limit · Passed
counts each client separately · Passed
frees capacity when the window slides · Passed
handles a limit of one · Passed
rejects a zero or negative limit · Passed
keeps counts correct under 50 concurrent callers · Passed
does not grow memory for idle clients · Passed
returns the retry-after time · Passed
survives a clock that moves backwards · Passed
handles a burst at the window boundary · Failed
Expected the 101st request at 59.999s to be rejected; it was allowed.
accepts a custom clock for testing · Passed
Claude review
Strengths
The limiter is separate from its storage, so a Redis backend could be swapped in.
A lock covers the read and the update, so concurrent callers are not double-counted.
Risks
The window is trimmed with a strict less-than where it needs less-than-or-equal. That is the boundary test that fails.
Timestamps of idle clients are removed only on their next request. Test 8 passes because the test is short.
What to ask next
Why a deque per client and not one counter per second?
What happens to memory with a million clients that each call once?
How it was written
Evidence for a person to judge. Nothing here rejects a candidate automatically.
Messages to the built-in assistant
9, the whole conversation is attached
First message
"Write a sliding window rate limiter class in Python with a lock."
Largest single insertion
74 lines, straight after the assistant's second reply
Tab switches
3, four minutes away in total
Visible-test runs before submit
6
Explain your code
After submitting, the candidate answers written questions about their own code. The score on each answer is an AI's reading, shown next to the answer as evidence.
Overall
Describes what a rate limiter does in general terms. Cannot say why this one is built the way it is.
Gaps: what the lock protects; why the window slides and is not fixed; where the failing boundary case comes from.
Question 1: Your allow() method takes a lock before it reads the deque. What breaks if you remove it?
Look for: Two callers read the same count and both get through. A race, not a crash.
Candidate's answer: The lock is there for safety and best practice in multithreaded code. Without it there could be errors.
Question 2: One hidden test fails at the window boundary. Looking at your trim loop, where would you look first?
Look for: The comparison on the oldest timestamp: less-than against less-than-or-equal.
Candidate's answer: I would add more logging and maybe increase the window size a bit so that the test passes.
Question 3: Why store a timestamp per request and not one counter per window?
Look for: A fixed counter lets a burst through across two windows. Timestamps make the window slide.
Candidate's answer: Timestamps are more accurate. A counter would also work but this is the more modern approach.
What a reviewer does with this
On the test score alone this candidate goes to the next round. With the answers next to the code, a reviewer either books a short call that starts from the two questions above or stops here. The decision takes minutes, and a person makes it.
Run this on your next take-home
Bring the take-home you already use, or generate one for the role. 14-day trial, 10 assessments, no card.