Yeah, more on that, from
https://www.hq.nasa.gov/office/ops/nasaonly/index.html:
The OPS (Office of Protective Services at NASA Headquarters) is the...
[...] NASA focal point for policy formulation, oversight, coordination, and management of Agency physical security, intelligence, counterintelligence, counterterrorism, emergency management, continuity of operations, fire services, National Security, communications security (COMSEC), classified information security, personnel security, identity and credential management, electronic physical access management, insider threat, and protective services training programs.
Touche! Still seems like a much smaller operation than a full-blown intelligence agency that even employs journalists as its secret agents like United Earth Starfleet Intelligence in "Demons"/"Terra Prime," though.
Well, we do know that the "United Earth Space Probe Agency" (UESPA) existed in 2151, as well as "Starfleet". I am going to venture that UESPA is the NASA equivalent in this case.
Well, in "Demons"/"Terra Prime," we see "United Earth Space Probe Agency" written on the carpet as part of the Starfleet logo. I assume that means the UESF is a division of UESPA.
I would not be surprised that, IRL, if any present-day foreign nation with space capabilities decide to "weaponize" space (with the scenario that all nations have established space colonies, like in FOR ALL MANKIND and THE EXPANSE), the West, particularly the Americans, will most likely upgrade the US Space Force to be more like a proper "starfleet". But, will it go on to be like Starfleet? Eh.
*shrugs* All I know is, at this moment, NASA is the agency that's actually sending people into space, and the USSF mostly does missiles. Personally I think it should have stayed a branch of the Air Force -- I think calling anything anyone has right now a "space force" would be like having an "air force" in the 1880s just because people have invented hot-air balloons.
Pure speculation on my part, but we know that Starfleet existed as an organization for decades before the launch of NX-01, since we see flashbacks of the Warp 2 program and barrier being broken. We also know from TOS's "Court Martial" that at some point in the early 22nd century the colonists on Mars felt it necessary to publish the "Fundamental Declarations of the Martian colonies" in response to something that required people to state their rights and liberties.
So Starfleet having an intelligence division and running prisons might make sense if you squint and imagine that early Starfleet had to deal with colonial uprisings, protecting cargo runs, and possibly conflicts between whatever the space forces may have been of whatever nations and interests that were holding out from forming a world government.
Admittedly, that would make Star Trek's early 22nd century sound more like The Expanse, but it's not totally unbelievable that it took humanity some time to work out the kinks of moving towards United Earth, let alone the Federation, when they first started using warp drive. And it might justify, and give the other side, of why the Vulcans were so reticent to share tech and let humanity step out on its own.
I don't have a problem with the idea that there were major conflicts in the Sol system in the first half of the 22nd Century. I am more sympathetic to the idea that the
United Earth Starfleet was non-military for one of the same reasons I am not sympathetic to the idea the Federation Starfleet is non-military: Because unlike the FSF, we actually
see another organization explicitly described as being the military in the form of the United Earth Military Command Assault Organization.
So I'm inclined to interpret the MACOs as having been in charge of United Earth defense during that early era, and to assume that the early UESF was little more than a warp-drive testing-and-building organization.
In fairness, there
is a single reference to United Earth Starfleet officers being court-martialed in ENT -- from S4, "Kir'Shara." Perhaps the UESF was legally made into a military and empowered to establish a system of courts-martial during the Xindi Crisis in S3?
I would imagine since the development of extra solar warp ships, that formerly domestic agencies would broaden their scope rather than a whole new agency be created from the ground up.
Frankly, once you're putting guns on a spaceship it's military. You could argue that the NX-01 was meant to be a non-militaristic ship and crew, or a military reserve type vessel, but no way of twisting it makes it not a military, at least from a legal definition.
Possibly, but it still seems like the UESF in ENT S4 suddenly has a much larger and more sophisticated infrastructure and bureaucracy than it did in S1. Three years feels like it's a little too short of a time to build up to the point of being so large you have journalists as your secret agents.
Which brings me back to my original argument, that Starfleet is legally a military or defense force for Earth/Federation, and the focus, the mission of the ships and crews is (during NX and TNG) supposed to be focused on exploration and scientific research. They're still military, just pretending they're not; and most of them are not trained as combat soldiers.
100% with ya on that for the Federation Starfleet.