That convention is recognised in paragraph 2.35 of the Scottish ministerial code. In response to a question from my colleague Mark Griffin MSP, the Lord Advocate said:“the Edinburgh agreement, in laying out an agreed route to independence, provided the basis upon which specific legal advice could be sought.”