The only retention bonuses I ever seen were to be paid in immediately, in full on involuntary termination. There was a "for cause" clause where bonuses don't get paid for termination with a cause, but the causes were listed in writing.