Likewise, when companies or countries make agreements, they look to the text of those agreements to govern their conduct and to resolve disputes without the involvement of legislatures or courts.
Diplomatic recognition similarly involves mutual promises between countries to abide by formal international conventions and diplomatic custom as to how diplomats and countries act. Other treaties also add to international law, as do various international organizations.
Like it or not, that is the nature of international law.