Syria’s Kurdish forces have reached a comprehensive agreement with the government to integrate with the Syrian army.