All critical causal factors are as viewed from the perspective of the populace in question.

What foreigners think matters not at all; and typically the HN counterinsurgent is blind to what the populace perceives as well, so there take will lead you astray as well.

Current efforts In Population Centric COIN are on promoting "Rule of Law" - my point is that greater enforcement of a legal system percieved by the populace as unjust is tyranny.

While Taliban justice is harsh, it is, by populace assessment, perceived as more "just" than that provided by the GIROA.

So, yes, it must be the pursuit of "justice" ie, how the populace FEELS about the legal system that is the goal.