Essential every major scientific theory over the past 300 years has been subjected to the consensus test of peers. Whenever a new theory is proposed, a paper explaining the theory, along with with assumptions and data backing the theory is presented to peers.
And if ups go back and actually look, you will see that the "consensus" has been wrong early on in damned near everything...and you will also see that the consensus was very slow to give up its belief even as the evidence mounted that it was wrong. Look around you today...how long did it take the consensus among chemists to accept that quasicrystals actually exist? They went so far as to boot the scientist who proposed them, and argued for their existence out of his scientific society and wrecked his career for decades...he was recently awarded a nobel prize for his discovery of quasicrystals...but the fact remains that he spent his prime years on the outside of his field looking in. And on and on it goes back to the eariest days when sceince was called sorcery...then alchemy, etc.
Consensus, in the absence of a body of real evidence that supports the mainstream hypothesis is evidence of a very tragic and unproductive situation, especially in science known as groupthink. At this point, there is no observed, measured evidence that supports the the AGW hypothesis over natural variability......there has not been a single paper published in which the claimed warming due to our activities has been empiricically measured, quantified, and blamed on greenhouse gasses......and there is not a single piece of observed measured evidence that establishes a coherent link between the absorption of infrared radiation by a gas and warming in the atmosphere. If the scientific method were being adhered to, those 3 things would have been on the top of the list to nail down before anything else. Climate sceince has become politicized, and the pet of environmental activists to the point that even once respected organizations like NASA offer up evidence that the cliamte is changing and hang an assumption that it is due to man on that evidence and call it science....and in a field that is dominated by groupthink, that sort of thing is allowed to pass and is actually cheered.
You actually provided some good evidnece of the presence of groupthink...naming the greenhouse effect and AGW as the consensus theories.....theory in sceince has a specific meaning....as does hypothesis....neither the greenhouse effect nor the AGW hypothesis meet the criteria to be called theories...in fact, they barely meed the critieria to be called hypothesis and were the scientific method being followed neither would exist today in their present form due to the sheer number of predictive failures each has experienced. In real science often a single predictive failure is enough to cause a hypothesis to be discarded....and if not discarded, then at the very least modified in an effort to produce a hypothesis that will not experience predictive failures. Neither the greenhouse nor the AGW hypothesies have been modified in any way. Climate sceince just keeps increasing the size of the margin of error so that they can say the errors are within the margin of error... That is not science...that is pseudoscience