When you drill into specifics there are almost always exceptions. For instance, in your example about sharing research, there are certainly some types of research we shouldn't automatically and immediately make publicly available like biological superviruses or software vulnerabilities.
I think the same can be said about AI. We should aim to be as open as we can but I'd be hesitant about being an open source absolutist.