A formal guarantee that a product will not break within a year, and if it does the company will replace it, could be considered a form of:
contract.
A guarantee is typically a legally binding agreement between the company and the consumer, specifying the conditions under which the product will be repaired or replaced.