The stale-book flag is the handler’s public statement that the book built from its events may differ from the venue’s, raised when a gap is detected and lowered when it is closed. The recovery latency of a gap is the time from its detection to the moment the book is correct again: the other line’s delay, a retransmission round trip, or the wait for and the loading of a snapshot.
fig_stale.py (deterministic: the simulator and the handler are).