In a statement of faith that seemed so unlikely 14 months ago, the Giants agreed Tuesday to a three-year, $17.15 million contract with third baseman Pablo Sandoval that rewards not only his production on the field, but his dedication in the training room.

After the World Series ended in November 2010, the Giants threatened a badly overweight Sandoval with a demotion to the minors the following year if he did not get into shape.