misc: add oplog finite state machine