In a parliamentary democracy the elected representatives are supposed to be seen to act according to the will of the people/voters. However there are occasions where this could be manifestly not the case-just as a presigned resignation letter can be disputed as to whether it reflect the will of the signatory. Where the representatives are not acting in ways which reflect the will of the people there should be a forum to resolve this if the democratic system is functioning properly. However in many parliamentary systems there is simply no provisions for this problem to be addressed! There is no referendum nor re-election to test the will of the people/voters! Does it mean that the government can simply ride roughshot over the people/voters after they secure a majority in a legislature? Not quite: a government seen to be lacking legitimacy will be challenged in many ways by the people/voters precisely based on its lack of representativeness! That will create a crisis in the State!
So in determining who should be the Menteri Besar in Perak the words of the Constitution may stipulate that it only require ascertaining if a party command the confidence of the majority of the elected representatives however a majority formed from defectors may not or actually don’t reflect the will of the majority of the people/voters! So to decide on the course of action that refelct who should run a state government consideration need to go back to the very foundation of legitimacy of a government ie whether it reflect convinsingly the will of the people-despite or especially when the elected representatives may not, for obvious reasons, speak for the voters who put these representatives up there in the first place. There is a time lapse between the original election and the act defection, which the voters may well disagree with.
So the best way is to go back to the people/voters to ascertain their will/choice. Refusing to do this amount to refusing to allow democracy to run its full course. Refusing to be democratic is the line that separate a free people from a hijacked population/tyranny!