There's a difference between
classified information and scientific research. Yes, some scientific research could be classified, but unless the government can show "national security implications" (a pretty low bar, IMHO), they should not be restricting the flow of speech or ideas.
A general officer in the military is not only covered by the Constitution, but by the UCMJ[0].
As such, your comparison is flawed.
We're (or at least TFA and me) aren't talking about folks subject to NDAs or restrictions based on "national security."
Private companies and private citizens can (at least in the US), limit and censor speech and information as much as they want -- and for the most part be supported by the courts (vis a vis NDAs and the like).
The government on the other hand is explicitly barred from banning most speech (there are exceptions of course, including libel/slander and/or disclosing classified information to unauthorized folks -- note that publishing such information has been held to be "free speech" -- it's the folks who disclosed such information that could be civilly (in the case of an NDA) or criminally (in the case of classified information) liable.
However, the government is barred from restricting speech except in those narrow circumstances.
Please explain how such narrow circumstances apply in this case? Or, absent those circumstances, under what legal framework would government restrictions on speech apply even to government-funded research? Please do explain. I'd be fascinated to hear it.
I'll repeat, and I'll use the words of those who wrote the law of the land. Hopefully, you'll understand the second time around:
Congress shall make no law respecting an
establishment of religion, or prohibiting the
free exercise thereof; or abridging the freedom
of speech, or of the press; or the right of the
people peaceably to assemble, and to petition
the government for a redress of grievances.
About which part of the above do you disagree?
If you feel the above is in error, I suggest taking the steps defined here[1]. Good luck with that.
[0] https://www.military.com/join-armed-forces/the-uniform-code-...
[1] https://www.archives.gov/federal-register/constitution