The same Holy Spirit that has selected every bishop in the catholic church for all of its history.  The involvement of the Holy Spirit is central to the concept of infallibility and is supported by the universal virtue of every bishop in history.