Under the agreement, Harvard and the project’s developer would put income restrictions on 25% of its residential units.