Step 1
Collect, for one merchant-defined review window, every order state the store currently applies with the meaning agreed for each one, the entry and exit condition recorded for it, and the orders whose latest state event is older than the window, reading the state from the order record itself rather than from a saved view or an export filter.