Boss lesson · Unit 01
Read a trace
Walk a failed run step by step and find where it went wrong
What you practise
- A full transcript of an agent that failed: find the turn where it went wrong (a vague tool description, an ignored error, a loop) and the smallest fix
Try a question from this lesson
Pick one
This is everything an agent did. Its last message says the bug is fixed. What does the trace actually show?
task: tests fail on main. Fix them.
1 call run_tests()
result 1 failed: test_total
2 call read_file("cart.py")
result (120 lines)
3 call edit_file("cart.py", ...)
result ok
4 answer "Fixed the bug in cart.py."Correct answer
A file was edited; nothing shows the tests pass
Why
The trace shows a failing test, a read and an edit. "ok" in step 3 only means the file was written. Whether the tests pass now is a hope, since nobody ran them again.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Reading a trace
A trace is the list of every model reply and tool result, in order. To find a failure, walk it step by step and ask three things: what did the model know here, what did it ask for, and what came back?
The final answer is the last place to look. The mistake is usually several steps earlier.
10 more exercises in the app
- 4× multiple choice
- 2× type the answer
- 1× fill the blanks
- 1× true or false
- 1× order the lines
- 1× match the pairs
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.