Teaching AIs to Reason and Code, Confidentially