Solving sovereign AI from first principles