Safety-critical situation detection

Summary
Software including documentation. The first version will be delivered M18, and updated at M27.