Read Done Reports as Claims

In the last lesson, you gave your agent its test commands and permission to run them, and you rewrote task 2’s “done when” so it ends in commands. Now you’ll hand task 2 over, and when your agent finishes, its report will probably say that the tests pass.

In this lesson, you’ll find out what that report actually tells you. You’ll check it against the commands your agent ran, run the checks yourself, tighten your done-when, and review the changes before you commit. Start by running the task and reading the report the way most people do.

Hand Task 2 to Your Agent

Run git status first. Apart from your agent’s settings folder, it should show nothing to commit, so you can identify the agent’s changes.

Write task 2 as a message the way you wrote task 1 in Write a Finishable Task: the goal, where to look, what not to touch, and the done-when from your docs/tasks.md. Start a new session in your project folder, paste the task, and let your agent work. Keep the session open when it finishes. You’ll read it back in the next section.

The last message is your agent’s summary. It may end with something like this:

Language: Text
Done. The command now prints the names of the
unreachable puzzles after the verdict. All tests pass.

Before you read on, write down in one line what this report proves about your code right now and whether you’d commit it as it is.

Find What Actually Ran

A done report is a claim: a summary your agent’s model generates at the end of a session, describing work it did earlier. The commands the agent ran and what they printed sit above it in the session. That’s the record you check it against.

Here’s the end of a session for task 2 in the reference version. It was written for this lesson, not recorded, and shows plain steps instead of any agent’s screen:

Language: Text
edits check-room.js
runs  npm start --silent -- rooms/the-smugglers-cellar.json
      The Smuggler's Cellar: cannot be finished.
      the iron strongbox
      the trapdoor
runs  npm test -- test/check-room.test.js
      ℹ pass 2
      ℹ fail 0
edits src/check-room.js
edits check-room.js
Done. The command now prints the names of the
unreachable puzzles after the verdict. All tests pass.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.