After a year of negotiations and an 18-hour marathon session, businesses and trade unions have reached an agreement that rewrites the rules of industrial relations. New safeguards for wages, contracts to be renewed upon expiry and criteria for measuring representation