Checkpoint

CP3: after chapter 12

About

Parts III and IV are behind you: liveness, fairness, refinement, and the honest use of a model checker. This checkpoint mixes them with everything before. A liveness question sits next to a race from chapter 06, a refinement trace with a stutter from chapter 04 in it, and nothing says which is which. In a design review nobody tells you which chapter the bug comes from either. Working that out is the skill.

Before you start

  • Chapters 09 to 12: 09, 10, 11, 12. The items also lean on chapters 03 to 08.
  • Time: about two and a half hours, in one sitting or several. The spec is about 75 minutes of it.
  • A working ./tla doctor.

Rules

  • No AI, no hints. The course's AI policy rules assistants out for checkpoints: they measure what you can do alone. If a coding assistant is open in this repository, AGENTS.md tells it not to write checkpoint answers; do not ask it about a checkpoint item at all, and do not paste the checkpoint into a third-party AI tool. 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 @expect lines, GateRef.tla and the solutions are not yours to change. The review asks you to change one cfg, and says which.

What is here

PartFolderTimeHow it is marked
Ten quick callsclassify/QUESTIONS.md20 minSelf-marked against the answers, with reasons
Two traces to readtraces/1-deploy-slot/, traces/2-name-cart/30 minSelf-marked against the answers; ./tla check on each folder confirms the trace
One reviewreview/25 min./tla check checkpoints/CP3-after-12/review
One spec from prosespec/ (twin in spec/twin/)75 min./tla check --checkpoint 3
Two transfer probestransfer/PROBES.md5 minSelf-marked

Take them in any order. Each folder's task file says what "done" means.

Run it

From the repository root:

shell
./tla check checkpoints/CP3-after-12/review
./tla check --checkpoint 3

The spec is graded like a chapter gate, with the two extra steps that chapters 09 and 11 added: interface, your own cfg, hidden safety and liveness checks, coverage, witnesses, your Safety and Liveness against hand-written and systematic mutants, and your refinement mapping. A pass records CP3 in your local progress (./tla progress), for the spec only: the other parts are yours to mark. If it fails, the grader names the lessons to revisit (at the refinement step, spec/README.md says which); take the twin, ./tla check --checkpoint 3 --twin, at least a day later.

You have passed CP3 when the spec passes and you can name the real mechanism behind each of its fairness conditions, eight of the ten calls are right with their reasons, on each trace you named the step (or the loop) where the property breaks and the action that fired, and the review's two cfgs reach their goal. The transfer probes are not part of the pass: they measure what stayed with you, not what you can do today.

Solutions

Everything is in solutions/checkpoints/CP3-after-12/, mirroring this folder. Open it after you have committed, not before.

Then