Checkpoint
CP2: after chapter 08
About
Part II is behind you: sets and functions, interleaving, PlusCal, and networks that lose, repeat and reorder. This checkpoint asks whether those ideas are still there when nobody tells you which chapter a question comes from, and whether Part I's ideas survived the trip. The items are mixed on purpose. A question written in PlusCal may be about interleaving, and a question about messages may be about a set.
Before you start
- Chapters 05 to 08: 05, 06, 07, 08. Some items reach back to chapters 00 to 04, as CP1
checkpoints/CP1-after-04/README.mddid. - Time: about two and a quarter hours, in one sitting or several. The spec is about an hour of it.
- A working
./tla doctor.
Rules
- No AI, no hints. The course's AI policy rules it out for checkpoints: they measure what you can do alone. There are no hint files here. If you are stuck, stop, note where, and go back to the chapter.
- Commit before you check. Write every answer down before you run anything or open a solution. The traces and probes are predictions; a prediction made after the run measures nothing.
- Do not edit the checks. The cfgs, the
@expectlines and the solutions are not yours to change. The review asks you to fix a spec, never its cfgs.
What is here
| Part | Folder | Time | How it is marked |
|---|---|---|---|
| Ten quick calls | classify/QUESTIONS.md | 20 min | Self-marked against the answers, with reasons |
| Two traces to read | traces/1-last-croissant/, traces/2-loyalty-points/ | 25 min | Self-marked; ./tla check on each folder confirms the trace |
| One review | review/ | 25 min | ./tla check checkpoints/CP2-after-08/review |
| One spec from prose | spec/ (twin in spec/twin/) | 60 min | ./tla check --checkpoint 2 |
| Two transfer probes | transfer/PROBES.md | 5 min | Self-marked |
Take them in any order. Each folder's task file says what "done" means.
Run it
From the repository root:
./tla check checkpoints/CP2-after-08/review
./tla check --checkpoint 2The spec is graded like a chapter gate; spec/README.md lists the checks. A pass records CP2 in your local progress (./tla progress). If it fails, the grader names the lessons to revisit; take the twin, ./tla check --checkpoint 2 --twin, at least a day later.
You have passed CP2 when the spec passes, at least eight of the ten calls are right with their reasons, and the review's two cfgs reach their goal.
Solutions
Everything is in solutions/checkpoints/CP2-after-08/, mirroring this folder. Open it after you have committed, not before.
Then