How would you prevent an inexperienced person from being a ruler?

Jefferson believed in a natural aristocracy, that certain people had the talents to lead if you could find them and he supported building a school system in Virginia to do so. Maybe, such ideas could influence the Constitution to make it have some sort of meritocratic institutions.
 
What do you mean by "us"? As authors of AH or an in-universe person with actual power and a vested interest in preventing future noob rulers? As authors, the easiest is a quick death like lightning strikes.
 
This should probably be in politics... To answer you though, if you put in a vetting process, you have taken the first step towards dictatorship. If X is qualified but not Y, why bother having elections to begin with? Naturally this only applies to republics, or nations with an electoral process. Kings and kingship needn't worry about the bleating of the peasants, and there were some truly awful, terrible kings, despite having 'experience'.
I think it highly depends what role politicians are expected to fill.
Usually they're backed up by civil servants who have to be qualified/experienced for their jobs.
 
Top