If Starfleet is not a military organisation, please collectively explain the following anomalies:

- Starfleet is shown as the primary defensive and offensive combat provider for the Federation (the dominion war, battle of Wolf 359 etc.).
- Starfleet is shown engaging in both overt and covert operations of a military nature (small team hunting for Metagenic weapons, establishing a Blockade to prevent Romulan engagement in the Klingon Civil War, establishing a fleet at Wolf 359 to intercept the Borg invasion).
- Starfleet engages in naval anti-piracy operations (stolen vessels are apprehended for instance)

Starfleet was seen doing all of this and more in the 22nd century where it was unquestionably a non-military organization. That they continue to be a non-military organization 200 years later is therefore unsurprising.

That merely supports the evolution of Starfleet's role from a NASA-like organization to an organisation that in fact operates as a military.