In the west, there were sheriffs who put at least some structure and accountability in between posses and the army. As a bonus, they reflected local standards. Not perfect of course, but in most cases better than the other two extremes.