How to prevent ship's AI from initiating self destruct sequence regardless of captain's permission?
Set in a distant future, every interstellar spaceship runs on antimatter propulsion which can achieve fractional speed of light travel. There is a doctrine stating that all spaceships with mass exceeding certain amount are required by law to install self-destruct button and concealed explosive charges throughout the entire vessel. The ship's powerful AI ensures everything is in order and eliminates any human error especially at times of crisis, the AI is aware of the self-destruct mechanism and schedules routine check and maintenance for every explosive charges on board. I'm wondering how can we prevent AI from initiating the self destruct and set off the explosive charges that even the crews are not aware of their exact location? Sabotaging the antimatter containment unit as alternative mode of triggering self destruct is prohibited and the AI is required to monitor the condition of all explosive charges and update the captain or who-ever in-charge.