Oh boy, do i sympathize with you!
Unfortunately, from my experience, there is a good chance he will not obey the agreement. He is making his own rules and yours.
Agreement or not, irrational stay irrational.
Hang in there and stay strong. You
are the responsable, sane parent. You also have control on the situation; more than you realise.