Safety and Robustness in Artificial Intelligence Agent Design