SPRINGFIELD — Stop & Shop supermarkets reached a tentative four-year agreement Thursday with five union locals representing a total of 28,500 workers in Massachusetts, Connecticut and Rhode Island.