This story reminds me of a novel by James P. Hogan, "The Two Faces of Tomorrow". It involves a mix of the rail gun / lunar mining system and AI. The whole plot would make an interesting movie, a thought which I've always had but it would still be relevant for today's world.