The Gibson report acknowledges the "extreme harshness" of the conditions and treatment of detainees in the so-called war on terror and it calls into question the conduct of British intelligence officers.
There is no evidence that UK intelligence officers were directly responsible for the mistreatment of detainees.
It does say British intelligence officers were aware of mistreatment but that "in some instances officers did not recognise or report treatment issues, which fell short of torture".
It also says British intelligence officers warned detainees they might face "negative consequences" if they did not cooperate.
The detainees took these kind of warnings as a threat.
Sir Peter Gibson said it was not always clear that government ministers were kept informed of mistreatment issues and he says the UK may not have known the full extent of the US secret rendition programme which moved detainees around the world.
More top news
Edinburgh and its institutions have been at heart of the Union since it came about in 1707, here we look at the city's history.
In Berwick-upon-Tweed - the town at the northern-most tip of England - history has taught them that no border necessarily lasts forever.
His car was about to get towed away. But he had other ideas.