Bodhi Rook is a fictional character in the "Star Wars" franchise, portrayed by British actor Riz Ahmed in the 2016 film "Rogue One". Bodhi is a former Imperial cargo pilot who, under the influence of Galen Erso, defects to the Rebel Alliance in an attempt to steal the plans to the Death Star, a powerful weapon possessed by the Empire.
The Rebel alliance and the Empire are enemies.
Since Bodhi "defects" to the Rebel Alliance and attempts to steal from the Empire you can deduce that the Rebel Alliance and the Empire are not working together. The system may understand a different definition of defect.