For the CIA, that was an acceptable risk in a dangerous business. For the American public, which was never told, it was one of the many secret trade-offs the government made on its behalf. At the same time the government used the threat of terrorism to justify imprisoning people indefinitely, it was releasing dangerous people from prison to work for the CIA.
Nearly a dozen current and former U.S officials described aspects of the program to The Associated Press. All spoke on condition of anonymity because they were not authorized to publicly discuss the secret program, even though it ended in about 2006.
The program and the handful of men who passed through these cottages had various official CIA codenames. But those who were aware of the cluster of cottages knew it best by its sobriquet: Penny Lane.
It was a nod to the classic Beatles song and a riff on the CIA's other secret facility at Guantanamo Bay, a prison known as Strawberry Fields.
Some of the men who passed through Penny Lane helped the CIA find and kill many top al-Qaida operatives, current and former U.S. officials said. Others stopped providing useful information and the CIA lost touch with them.
When prisoners began streaming into Guantanamo Bay in January 2002, the CIA recognized it as an unprecedented opportunity to identify sources. That year, 632 detainees arrived at the island. The following year 117 more arrived.
"Of course that would be an objective," said Emile Nakhleh, a former top CIA analyst who spent time in 2002 assessing detainees but who did not discuss Penny Lane. "It's the job of intelligence to recruit sources."
By early 2003, Penny Lane was open for business.
Candidates were ushered from the confines of prison to Penny Lane's relative hominess, officials said. The cottages had private kitchens, showers and televisions. Each had a small patio.
Some prisoners asked for and received pornography. One official said the biggest luxury in each cottage was the bed, not a military-issued cot but a real bed with a mattress.
The cottages were designed to feel more like hotel rooms than prison cells, and some CIA officials jokingly referred to them collectively as the Marriott.
Current and former officials said dozens of prisoners were evaluated but only a handful, from varying countries, were turned into spies who signed agreements to spy for the CIA.
CIA spokesman Dean Boyd declined to comment.
The U.S. government says it has confirmed about 16 percent of former Guantanamo Bay detainees rejoin the fight against America. Officials suspect but have not confirmed that another 12 percent rejoined.
Though the number of double agents recruited through Penny Lane was small, the program was significant enough to draw keen attention from President George W. Bush, one former official said. Bush personally interviewed a junior CIA case officer who had just returned home from Afghanistan, where the agency typically met with the agents.
President Barack Obama took an interest the program for a different reason. Shortly after taking office, he ordered a review of the former detainees working as double agents because they were providing information used in Predator drone strikes, one of the officials said.
Infiltrating al-Qaida has been one of the CIA's most sought-after but difficult goals, something that other foreign intelligence services have only occasionally accomplished. So candidates for Penny Lane needed legitimate terrorist connections. To be valuable to the CIA, the men had to be able to reconnect with al-Qaida.
From what the Bush administration was saying about Guantanamo Bay prisoners at the time, the CIA would have seemingly had a large pool to draw from.
Vice President Dick Cheney called the prisoners "the worst of a very bad lot." Defense Secretary Donald Rumsfeld said they were "among the most dangerous, best trained, vicious killers on the face of the Earth."
In reality, many were held on flimsy evidence and were of little use to the CIA.
While the agency looked for viable candidates, those with no terrorism ties sat in limbo. It would take years before the majority of detainees were set free, having never been charged. Of the 779 people who were taken to Guantanamo Bay, more than three-fourths have been released, mostly during the Bush administration.
Many others remain at Guantanamo Bay, having been cleared for release by the military but with no hope for freedom in sight.
"I do see the irony on the surface of letting some really very bad guys go," said David Remes, an American lawyer who has represented about a dozen Yemeni detainees at Guantanamo.
But Remes, who was not aware of Penny Lane, said he understands its attraction.
"The men we were sending back as agents were thought to be able to provide value to us," he said.
Prisoners agreed to cooperate for a variety of reasons, officials said. Some received assurances that the U.S. would resettle their families. Another thought al-Qaida had perverted Islam and believed it was his duty as a Muslim to help the CIA destroy it.
One detainee agreed to cooperate after the CIA insinuated it would harm his children, a former official said, harkening to similar threats interrogators lodged against admitted Sept. 11 mastermind Khalid Sheikh Mohammed.
All were promised money. Exactly how much each was paid remains unclear. But altogether, the government paid millions of dollars for their services, officials said. The money came from a secret CIA account, codenamed Pledge, that's used to pay informants, officials said.
___
Associated Press writer Ben Fox contributed to this story from San Juan, P.R.