Checkpoint

CP1: after chapter 04

About

Part I is behind you: behaviors, actions as formulas, TLC, and stuttering. The items here are mixed on purpose, and nothing says which chapter a question comes from. A chapter's exercises sit inside that chapter, so you know which idea they need. Here you have to work it out.

Before you start

  • Chapters 00 to 04: 00, 01, 02, 03, 04.
  • Time: about two hours, in one sitting or several. The spec is about an hour of it.
  • A working ./tla doctor.

Rules

  • No AI. A checkpoint measures what you can do alone, so the course's AI policy rules assistants out here. If a coding assistant is open in this repository, AGENTS.md tells it not to write checkpoint answers. Do not paste the checkpoint into a third-party AI tool either.
  • No hint files. If you are stuck, stop, note where, and go back to the chapter. The spec grader does give feedback on a failed run: it names each mutant your Safety missed, with a one-line note from a teammate about the symptom, and the lessons to revisit. That comes after you have committed to an answer.
  • 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 and the solutions are not yours to change, except where a task tells you to.

What is here

Do the probes first. After that, take the parts in any order.

PartFolderTimeHow it is marked
Two transfer probestransfer/PROBES.md5 minSelf-marked
Ten quick callsclassify/QUESTIONS.md15 minSelf-marked against the answers, with reasons
Two traces to readtraces/1-handbook-page/, traces/2-two-tills/25 minSelf-marked; ./tla check on each folder confirms the trace
One reviewreview/25 min./tla check on the folder, plus a self-marked cfg line and comment
One spec from prosespec/ (twin in spec/twin/)60 min./tla check --checkpoint 1, plus the folder's own cfgs

Run it

From the repository root:

shell
./tla check checkpoints/CP1-after-04/review
./tla check --checkpoint 1
./tla check checkpoints/CP1-after-04/spec

The spec is graded like a chapter gate: interface, your own cfg, hidden checks, coverage, witnesses, and your Safety against hand-written and systematic mutants. The grader also runs the spec folder's shortcut cfgs, which grade your second property, OneAtATime. A grader pass records CP1 in your local progress (./tla progress). If it fails, take the twin, ./tla check --checkpoint 1 --twin, at least a day later.

You have passed CP1 when

  • the spec grader prints "gate passed" and every cfg in spec/ prints "goal met";
  • eight of the ten calls are right, with their reasons;
  • in both traces you named the breaking step and the action that fired correctly;
  • the review's cfg prints "goal met: pass" with the line you added, and your comment scores at least two of three on the rubric in the review answer.

The probes are not part of the pass. They measure what stayed with you; the course does not record them, so compare them with your first answers by hand.

Solutions

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

Then