Not refuting the larger point, but this part sounds questionable. For a country, rifles are easy to provision: just buy enough and keep them in well-guarded armories in strategic locations. Trained soldiers are much harder to come by.
South Korea has relatively strict gun laws and very few people own one at home. But almost every male goes through two years of military service. In case of a foreign invasion, it won't take 24 hours to summon millions of civilians, just throw each one a rifle, and there's your army.
But let's say Costa Rica had a standing army - are they going to stop that modern military from conquering them? Probably not, so why waste money on a half assed defense?
One might go so far as to say that not having a strong standing army for an extended period of time actually proved militarily advantageous for the Germans in 1940 when their new army outmaneuvered an obsolete one.
The moment someone has a standing army, we are, by definition, no longer in a situation where nobody has a standing army.
If someone can magically instantaneously create an army, then Costa Rica should just do that the moment they're threatened.
If the world's culture is strongly set against having armies, and one country effectively threatens them by breaking that taboo, then I would at least expect the world to instantly cease all trade and transport links with the arming country.
That may not be enough on its own to force the taboo-breaking country to disarm, but I don't see any contradiction in a world culture which is against having armies while also ruthlessly dedicated to temporarily re-arming and exterminating the first country that breaks the taboo.
There are hard coordination and rule of law / presumption of innocence questions to solve there, but I don't think we can necessarily assume that this world culture will stand idly by while their enemy works to undo the very thing that defines the culture.
By the time you could cobble together an army any modern military would have already conquered you, especially if you have super strict civilian firearm laws like Costa Rica that make putting together defensive militias much, much harder.