Agreement at beef talks but deal dependent on end to protests