Here's what I can say about the hat. It's not for getting all 3 of Guru, Good Answer, and Enlightened with the same answer (counterexample:
math.stackexchange.com/questions/611529/…). It's not for having at least 40 answers (see Jon Skeet). It could be for comments, since the guy has 83 comments since the start of WB