This section gives an overview of the states executed by the grace-period state machine, and then walks through the relevant code.