Both countries agreed to a ceasefire and international mediation , including an independent boundary commission whose decision would be final and binding .