The Russian government is likewise selective in its interpretation of the Budapest agreement (1994) [1], in which Russia guaranteed Ukraine's territorial integrity in return for Ukraine giving up nuclear weapons.
Edit: I incorrectly wrote "Bucharest agreement"; fixed it (thanks jotm)
[1] https://en.wikipedia.org/wiki/Budapest_Memorandum_on_Securit...