so, in summary, cognomen is a word borrowed directly from Latin that has shifted sense from Roman surname to English surname to name to nickname.

here's Hawthorne using it in the third sense:
1852 Blithedale Rom. iv, I repeated the name [Priscilla] to myself three or four times... this quaint and prim cognomen... amalgamated itself with my idea of the girl.