It is pretty simple to find documentation about satellite operating modes behaviour when trying to develop satellite onboard software (example of safe mode behaviour on wikipedia, or on researchgate), but implementations are commercial and it is difficult to find reliable information about the implementation details of satellite modes. Most notably, mode switching sequences and error handling are mission-critical details for which open information is very sparse.