Subject to paragraph (2), a … constable … may visit or see a prisoner for one or more of the following purposes—
to interview the prisoner, provided the prisoner is willing to be interviewed;
to identify the prisoner;
to charge the prisoner with an offence.
A … constable may only visit or see a prisoner under paragraph (1) on production of the written authority of a procurator fiscal or a chief inspector of the Police Service of Scotland.
A visit to a prisoner in terms of paragraph (1)(a) may take place in such area of the prison and under such conditions as the Governor may specify except that such a visit must take place—
within the sight of an officer; and
outwith the hearing of an officer unless the prisoner or the visitor requests otherwise.