Checkpoint

CP4: after chapter 14

About

Part V is behind you: real protocols with their failures left in, and specs that meet code. This is the last checkpoint, and it draws on the whole course. A PlusCal label sits next to a crash that forgot the disk, a quorum next to a trace validation, and nothing says which chapter each comes from. The spec at the end is a timed drill from a blank page: two hours, the gate criteria, no help.

Before you start

  • Chapters 13 and 14: 13, 14. The items draw on every chapter from 02 to 14.
  • Time: the first four parts in one sitting or several (the table gives a guide for each), then two hours for the spec, in one sitting.
  • 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, the log fixtures, GateRef.tla and the solutions are not yours to change.
  • The spec is timed. Two hours from ./tla check --checkpoint 4 --start to the grade. The clock is yours to keep honestly: the start time is recorded on your machine and nowhere else.

What is here

PartFolderTimeHow it is marked
Ten quick callsclassify/QUESTIONS.md20 minSelf-marked against the answers, with reasons
Two traces to readtraces/1-garage-log/, traces/2-quorum-reads/30 minSelf-marked; ./tla check on each folder confirms the trace
One reviewreview/25 min./tla check checkpoints/CP4-after-14/review
Two transfer probestransfer/PROBES.md5 minSelf-marked
One spec from a blank pagespec/ (twin in spec/twin/)2 hours, timed./tla check --checkpoint 4

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

Run it

From the repository root:

shell
./tla check checkpoints/CP4-after-14/review
./tla check --checkpoint 4 --start
./tla check --checkpoint 4

The spec is graded like a chapter gate: 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 CP4 in your local progress (./tla progress), for the spec only and whether or not it came within the two hours: the clock and the other parts are yours to mark. If it fails, the grader names the lessons to revisit; take the twin, ./tla check --checkpoint 4 --twin, at least a day later, with the clock running again.

You have passed CP4 when the spec passes within the two hours, eight of the ten calls are right with their reasons, on each trace you named where the check breaks (the log entry, the step) and the action involved, and the review's two cfgs reach their goal with a fix that REVIEW-ANSWER.md counts and a comment that names the depth the agent's run could not reach. 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/CP4-after-14/, mirroring this folder. Open each part's answers after you have committed to that part, not before. Do not open solutions/checkpoints/CP4-after-14/spec/ until you have passed the spec or the twin: the twin is the same task in other words, and a reference you have read is a reference you will transcribe.

Then