BIP91 Activation Period
It looks like it is actually periods of 336 blocks instead of a rolling window. It is like what BIP 9 specifies, but uses 336 blocks as the window and 269 blocks as the threshold. The windows begin when a block's height is a multiple of 336.