Hundreds of years of precedent?
Here is what wiki says a treaty is.
A
treaty is an agreement under
international law entered into by actors in international law, namely
sovereign states and
international organizations. A treaty may also be known as an
(international) agreement,
protocol,
covenant,
convention,
pact, or
exchange of letters, among other terms. Regardless of terminology, all of these forms of agreements are, under international law, equally considered treaties and the rules are the same.
[1]
Treaties can be loosely compared to
contracts: both are means of willing parties assuming obligations among themselves, and a party to either that fails to live up to their obligations can be held liable under international law.