The deal is the most significant breakthrough in the war, but its implementation is complex and fragile.