Using local trust measures to form agent CoT groups