Mass. Gen. Laws ch. 119, § 87
(a) The department of youth services and the department of correction shall not place in a secure detention facility or secure correctional facility any juvenile who has:
(b) The department of youth services and the department of correction shall not detain or confine any juvenile identified subsection (a) or any juvenile alleged to be or found to be delinquent in any institution in which they have contact with adult inmates; and shall require that individuals employed by the department of youth services or the department of corrections who work with both juveniles and adult inmates be trained and certified to work with juveniles by the department of youth services.
The department of youth services and the department of correction shall promulgate regulations and policies for the implementation, administration and enforcement of this section and maintain adequate records to ensure compliance with this section.