What is happening
Replica-set terms, optimes, write concern and rollback identifiers establish which history became authoritative. Rollback files can contain document versions but may not capture every operation after an oplog hole; application logs and surviving snapshots help determine what must be re-applied.