At the time sentence shall be imposed by the court, the recommendation of the department of the attorney general and of defense counsel shall be recorded and a copy of the record shall be filed with the director of corrections.
R.I. Gen. Laws § 12-19-7