I was probably too harsh attributing various cognitive biases to Rabbis, so I'd like apologize and to step back.
With some background in Cognitive sciences, I'm very interested in understanding the types and methods of thinking of the prominent Rabbis. Unfortunately, I don't find any information, besides notions of some "divine intervention" like Ruach Hakodesh.
I myself write some Chiddushim and give Shiurim on various Torah topics, incl. Halachah, Hashkafah and more, and I'm trying to reflect myself on the cognitive strategies I use in my statements - sometimes I exaggerate or even lie purposefully, sometimes I fall for cognitive bias, like bringing only the verses/Poskim that support my claims.
I'm interested to see if some Rabbis wrote their reflections on how they wrote their books (not what they wrote). How did their thinking go and how aware were they of those processes?