A cohabitation agreement is a legal document, enforceable by the court if it is properly executed and providing you have both been honest about your finances and each obtained separate legal advice upon its terms.