Valdo Calocane was treated by the trust before killing students Barnaby Webber and Grace O’Malley-Kumar, both 19, and caretaker Ian Coates, 65, in the city centre.

The CQC said breaches of regulation were found in 10 services, which now had action plans in place by the trust, as well as a breach of the Health and Social Care Act’s good governance requirements, external.

The inspection found there were “persistent” issues with racism, harassment and “blame culture” in parts of the trust, and the CQC ordered it to make progress on equality and diversity.

In addition, the trust has been continuing to use “dormitory‑style” accommodation in mental health settings at Highbury Hospital – one of the sites it runs – despite being told to stop in 2022.

It must also, the report said, improve areas used by patients in long-term segregation and ensure it adheres to the Mental Health Act.

The report said: “There was poor practice in maintaining dignity, upholding human rights and ensuring least restrictive actions were delivered.”