The federal government’s controversial corporate social responsibility counsellor — whose job was to mediate disputes involving Canadian mining companies abroad — has resigned after four years in charge of a process that critics say was designed to fail.