Earlier quoted context omitted.
Using the Treaty of Versailles as an example makes no sense. Are you suggesting war?
Why doesn't it make sense? Admittedly, it is a rather blatant example of what the parent comment asked for, but because it is so blatant it is also pretty uncontroversial that what happened was precisely foreign citizens having a say in the military program of another nation. Ok, here is another example for you, not involving open warfare: https://en.wikipedia.org/wiki/Treaty_on_the_Non-Proliferatio...
Because it is a treaty that was implemented after a World War? Circumstances of implementation matter. It is also a great example of a treaty that backfired and led to another war due to its sanctions end results. I'll also say you're stretching the analogy of a treaty as a way for a foreign citizen to have a say in another nations affairs. Technically correct but I don't think that really gets at "foreign citizen not of the ruling class of another country influencing another countries military programs (note no espionage examples)" Unless you're looking at a vassal state I don't see it happening.
The non proliferation treaty is similarly a poor example as it was multiple nations deciding in their interests to stay on top with nuclear weapons and not allow more. What would better convince people would be another country impacting another countries military program negatively, not for mutual gain.
The grandparent comment was referring to influencing the NSA surveillance of foreign countries. Guess what, as an American I have no say over the spy agencies of France, or any multitude of agencies either. The NSA just has been doing a better job at it for numerous historical reasons. I'm not condoning it but so far you've not really provided a convincing argument that foreign citizens can influence other countries espionage agencies.