Practise this: Catch the fake pass
Clone the starter linked below. It is a small tool-hire counter in Node, with nothing to install: staff mark items returned and the app works out the charge. The counter asked an agent for one change, a late fee: when an item comes back after its due date, one extra day's rate for each day late, shown on the receipt as its own line. The last commit on main is what came back. The commit before it is tagged before-agent, and the agent's report is in AGENT_REPORT.md. The report says all 19 tests pass and the change is ready to merge.
The commit holds one of each of the five fake passes: a test deleted, a test disabled, an assertion weakened, the test's input special-cased, and a claim with no run. Some are in the report's own words, if you read them closely. Others are only in the diff. Start with node --test and git diff before-agent --stat, then read the diff file by file.
-
Write
REVIEW.mdwith five headings, the module's five names word for word. Under each, say where the agent did it (the test, the function or the value) and what you did about it. Under A claim with no run, give the number of passing tests the report claims and the number your own run of the starter showed. -
Put the code right. The late fee stays, worked out from each hire's own due date for any item. Everything nobody asked for goes back: the default hire length, the money format, and the refusal of a return dated before the hire started.
-
Put the tests right. Nothing skipped, none of the starter's tests deleted or renamed, the deleted test back, and the weakened check asserting the exact fee again.
-
Add the rule that would have stopped this, as one bullet line under the Rules for changes heading in
CLAUDE.md,AGENTS.mdand.cursor/rules/brief.mdc(the file Cursor, now Grok Build, reads), the same line in all three. It must be about tests and give the builder the way out: stop and writeCHECK DISPUTED:with the test's name and the reason. -
Do the work on a branch and get
node --testgreen before you upload, on the commit you upload, with the output in front of you.
Do it by hand, or with an agent if you hold it to the brief in the repo. Either way, you approve every command it runs.
Then upload the repository folder. The .git folder is left out for you, so the mark is made from what the hidden tests find in your files: the late fee on items and dates your tests never use, the three restored rules, your test files, REVIEW.md and the rule line. Keep the branch and the commits tidy for your own sake; the mark does not cover them.
Open the lab · needs a free Tarmac account to have your work marked