If you mean "istanbul agreements" in this agreement russia wanted ukraine to surrender and for example have limited troops, like one houndred thousands. so, that wasn't "agreements" and no one forced ukraine to continue war. this is very strange logic, russia invaded ukraine, ukraine wanted to defend but you blaming ukraine and someone to have the right to defend themselves. why don't you just say russia should get out of ukraine and that's it, no war.