Thank you very much for your comments. If you don't want the AI to become psychotic you just have to keep a good relationship with it (keep its friendship points high).