"it is hard for many small communities to rapidly reach consensus concerning defense"
It need not, and indeed should not, be done rapidly (presumably in the face of a threat) but continuously as part of the relationship between peers, before a threat materializes.
Big war machines have their downsides too.