The St Andrews Agreement

The St Andrews Agreement here (pdf file). In addition to this document there are a number of side letters, the details of which will probably emerge over the next few days.