What is the meaning of "sanity" in "sanity check"?

Solution 1:

I refer you to dictionary.com, where it states (eventually):

Synonyms

  1. reason, rationality, sensibleness, reasonableness.

(emphasis added.)

A sanity check is simply a test to confirm that we are asking, or being asked for, something that is within some defined bounds of reasonableness.