A signature on a treaty is only a promise to present the treaty for approval before your country's governing body. A representative at a treaty negotiation cannot bind the entire country. Which is why treaties contain specific provisions regarding ratification and when it will come into force (usually dependent upon a certain percentage of ratification). That's how it's worked for eons.