Separate the Spec from the Scratch Pad
You open the take-home on a Thursday night. The README is smooth. A demo script prints three green lines, and a note at the bottom says a model "handled the edge cases." You close the pasted chat, stop the process, and start it again. The third request returns 200. The spec you wrote on Monday said 429. The polish was never the contract. It was a scratch pad that remembered the prompt better than…
You receive the take-home assignment on a Thursday evening. The README appears smooth and clean. A demo script prints three green lines, and a note at the bottom indicates a model managed the edge cases. Closing the chat, stopping the process, and restarting it yields a successful 200 request. However, the spec you drafted on Monday predicted a 429 response.
The issue lies in polish, not contract. It is a scratch pad that remembers the prompt better than the program does. This is a common failure mode in AI-assisted submissions. Fluency has become cheap, but reliability remains a challenge. Restarting does not guarantee success. If you choose to hire individuals who have utilized models to draft their code, the take-home process must differentiate between the two aspects before a live interview is consumed by a demo dependent on a single session.
Purchase a contract, not a tour. You are not acquiring a tour of a free model. Instead, you are investing in a small program that can be independently verified without relying on the author's laptop, transcript, or confidence. A submission that only functions while the chat window is open is merely a demo. A submission whose tests maintain the same meaning even after a new process execution indicates a candidate worthy of consideration.
You are not requesting the rebuilding of a machine from scratch. Instead, you are assessing whether the number 2 still equals 2 when the chat window is closed. Write the prompt so that the spec becomes a file within the repository. Inform them that a model may draft the implementation, but the draft should be untrusted until a test they commit passes for the right reason and then fails for the right reason.
If the candidate cannot explain a red assertion without referencing the transcript, they do not fully own the work yet. Prioritize tests over implementation and ensure the README references one case not covered by the tests. Individuals who merely guide a model often struggle to identify gaps. Those who wrote the spec typically can, and the identified gap reveals their thought process even after the happy path has been established.
Here is a prompt to send. Consider it a proposal that still requires editing for your specific stack, not a record of a live session. Construct a simple retry gate. The POST /retry?key=... endpoint may succeed a maximum of two times for a given key. The third call will return a 429 response and should not increase the counter. Conversely, the GET /retry?key=... endpoint should return the number already utilized.
State persists on disk. Stopping the process and restarting it should not reset the count. Do not commit secrets, tokens, or the model transcript. You may draft with a model, but commit the tests first. In the README, specify one case not covered by the tests and narrate the red-green sequence in your own words. Git history may appear as evidence, but it can be manipulated.
A concise paragraph in the candidate's own words is more difficult to fabricate with a paste and provides a concrete element to inquire about during the call. A sample demonstration The Python code below is an unexecuted example, not a benchmark nor a hiring criterion. It illustrates the expected outcome to guide your evaluation rubric. Execute the code, break it, and only then determine if it should be included in your packet.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to