A buy-sell agreement is the legal framework through which you and your company agree that you will sell them your shares of the company when you are ready, and they will in turn compensate you.