Image caption Binyam Mohamed: An MI5 officer faces investigation over his case

The terms of an inquiry into claims British agents were complicit in the torture of terror suspects are still being debated, the BBC understands.

Whitehall had been prepared for an announcement on Wednesday but the BBC's Nick Robinson said there were still arguments about its scope.

The PM is understood to have agreed to compensation if it was found suspects were tortured and UK agents knew.

British security services say they do not collude in torture.

Former Labour ministers have insisted the UK did not use or condone torture.

Judge-led inquiry

But the Conservatives and Lib Dems have long urged an inquiry into the claims of UK resident Binyam Mohamed who said British security services were aware of his torture.

Foreign Secretary William Hague confirmed in May there would be a "judge-led" inquiry to the allegations.

It is understood more details had been expected to be announced on Wednesday.

However our correspondent said he had been told there were still arguments about the inquiry's scope, its membership and whether it should be headed by a judge.

Our officers are as committed to the values and the human rights values of liberal democracy as anybody else Sir John Scarlett, Former MI6 chief 'Publish terror guidelines' call

But he said he understood British security services had advised ministers they would prefer an inquiry - rather than a long, drawn out process through the courts.

It is also understood that the inquiry will offer compensation to people found to have been victims of torture carried out by foreign security services, but with the knowledge of British intelligence officials.

The prime minister's spokesman would only say an announcement would be made "in due course".

Ethiopian-born Mr Mohamed says he was tortured after being held in Pakistan in 2002, and subsequently moved to Morocco and Afghanistan.

He says agents from the UK's MI5 knew about this and fed questions to his interrogators through the CIA.

'Rigorous investigation'

Mr Mohamed was transferred to Guantanamo Bay in Cuba in 2004 and was freed last year, after charges of involvement in terrorist plots were dropped.

He says the only evidence against him was obtained through torture.

The government's reviewer of terrorism legislation, Lord Carlile, told the BBC: "I think a judge-led inquiry will have the advantage of a rigorous investigation of allegations that are made, the protection of national security and the award of compensation to anyone who's able to prove on the balance of probability that they have been tortured or otherwise subjected to inhuman or degrading treatment."

But he said an inquiry could not take place until criminal investigations already under way had been completed.

Its reach must also be broader than just the security services and must include other government officials Andrew Tyrie, Parliamentary group on extraordinary rendition

The Metropolitan Police are investigating the role played by a number of British security agents in Mr Mohamed's interrogation, after a request by former Attorney General Lady Scotland.

Lord Carlile also said he hoped the judge would be assisted by people with experience of the security services world and would not expect the entire inquiry to be held in public, for national security reasons.

On Tuesday the Human Rights Watch group demanded that guidance given to UK intelligence officers interrogating suspects overseas be published "without delay".

But, speaking to the BBC last year, the then head of MI6 Sir John Scarlett said there was no torture and "no complicity in torture" by the British secret service.

"Our officers are as committed to the values and the human rights values of liberal democracy as anybody else," he said.

"They also have the responsibility of protecting the country against terrorism and these issues need to be debated and understood in that context."

The chairman of the all-party parliamentary group on extraordinary rendition, Conservative MP Andrew Tyrie, said: "This inquiry can only be of lasting benefit if its remit is wide enough to include not only complicity in the torture of terrorist suspects, but also allegations of complicity in extraordinary rendition.

"Its reach must also be broader than just the security services and must include other government officials."

Shami Chakrabarti, director of human rights group Liberty, said: "This investigation must be independent, judge-led and have broad powers to call evidence and make as much as possible publicly available.

"Only this kind of inquiry can end the slow bleed of embarrassing revelation and expensive litigation and draw a line under this shameful business once and for all."