Practise this: Brief to merged change
Clone the starter: https://github.com/codeprepdev/agentic-engineering-lab-1-brief-to-merged-change. It is the reporting tool a parcel depot runs each morning, in Python with the standard library only, and you did not write it. Run python3 -m unittest discover and python3 -m depot.report collected to see it work. Read the README, then read the code the way you would read any codebase you are about to change.
The ticket, in full:
Mia (depot counter): Can the collected report take a date range? I need last week's pickups for the courier invoice.
You asked Mia some questions. Her answers:
-
A week runs Monday to Sunday, and both days count. She will type
--from 2026-03-02 --to 2026-03-08. -
"The day" is the depot's day in Brisbane, because the courier invoices by it.
-
With only
--from, she wants that day onwards. With only--to, everything up to and including that day. -
If she types the dates the wrong way round, tell her so and list nothing.
-
The last line, the count and the fee total, must cover only the parcels listed, because it goes on the invoice.
-
With no dates, the report stays exactly as it is.
1. Write the brief. Before any agent sees the ticket, write BRIEF.md at the root of the repository with the four parts: Outcome, Scope, Do not touch and Must pass, and end it with: "Before you write code: restate this brief and list your assumptions." Fill each part from the repo itself, not only from Mia: which files the change lives in, which existing code it should copy the shape of, which files it must leave alone and why, and which test file you will add.
2. Have it said back. Create a branch. Give the brief to Claude Code, Cursor (now Grok Build) or Codex and have it restate the brief and list its assumptions before it writes any code. Under a heading in BRIEF.md that names them (for example ## Assumptions the agent listed), write each assumption as a list item with what you did about it. Correct the brief where an assumption was wrong, and only then tell it to build.
3. Review it and merge it. When it says it is done, run the tests yourself. Read git diff main --stat before the diff itself: if a file outside your scope has changed, find out why before you merge. Merge the branch into main once the change does what the outcome says and nothing else.
Then upload the repository folder. The .git folder is left out, so the mark comes from what the hidden tests find in your files: the date range working on the depot's days at both ends, the total line, the shared files that a careful do-not-touch list would name still unchanged, the existing tests still there with none skipped, a test file of your own for the new options, and the four parts and the assumptions in BRIEF.md. The marking cannot see your branch or your merge, so keeping them tidy is up to you.
Open the lab · needs a free Tarmac account to have your work marked