*313 OPINION OF THE COURT
Aрpellant Dagoberto Vega filed a petition for habeas corpus relief pursuant to 28 U.S.C. § 2241, requesting credit for the time he was incarcerated from August 27, 1998 through July 30, 1999, and credit for the period from April 17, 2002 through February 25, 2004, during which he was at liberty after being erroneously released from confinement by New York prison officials. Following the report and recommendation of the Magistrate Judge, the District Court denied Vega’s petition. On appeal, Vega challenges the calculation of his sentence, citing as error the District Court’s failure to award him credit for-these periods. The question of whether an erroneously released prisoner is entitled to credit for time spent at liberty is one of first impression for this Court. As explained below, we agree with the District Court’s determination that no credit should be accorded for the period of time between August 27, 1998 and July 30, 1999, but we will remand for further consideration in accordance with this opinion of whether Vega should receive credit for the time he spent at liberty.
I.
Vega was arrested by New York state authorities on August 27, 1998, while on state parole. The State of New York charged him with drug possession, assault, and violation of parole. On July 30, 1999, he was transferred into federal custody pursuant to a writ of habeas corpus ad prosequendum and charged with federal offenses based upon the same conduct as that which gave rise to most of the state charges. On August 1, 2001, the State dismissed all of its charges, except for the parole violation. On December 10, 2001, after pleading guilty to the federal charges and being sentenced to 96 months, Vega was returned to state custody for completion of his parole violation sentence after the U.S. Marshals Service for the Eastern District of New York lodged a federal detainer advising the state warden to notify the Marshals Service when Vega had completed his state sentence. The Marshals Service never received a letter of acknowledgment confirming receipt of the federal detainer. Nor did the Marshals Service inquire of the State whether it was received and, if received, whether it would be honored.
The State revoked Vega’s parole оn February 8, 2002, and he received a 44-month sentence. Upon completion of that sentence on April 16, 2002, instead of being transferred to the custody of the Marshals Service pursuant to the detainer they had attempted to lodge at the state prison, Vega was released on April 17, 2002. The New York prison warden allegedly told Vega that there was no detainer on file for him. Slightly less than two years later, on February 25, 2004, federal authorities arrested Vega and returned him to custody to complete his federal sentence.
After exhausting his administrative remedies, Vega filed a petition for a writ of habeas corpus, which the District Court denied. The District Court determined that Vega had received full credit on his federal sentence for the period from July 30, 1999 through November 29, 2001, the day before he was sentenced on the federal charges, and that he therefore still had 67 months and 28 days left to serve. The Court further explained that Vega was not entitled to credit toward his federal sentence for time spent at liberty because his release resulted from the error of a separate sovereign.
II.
The District Court had jurisdiction under 28 U.S.C. § 2241. Jurisdiction is proper in this Court under 28 U.S.C.
*314
§§ 1291 and 2253.
See Marshall v. Cathel,
III.
Vega contests the District Court’s denial of credit for the period between his August 27, 1998 arrest and the July 30, 1999 transfer to federal custody, contending that the Bureau of Prisons (“BOP”) is incorrect in its contention that this time period has been credited against his parole violation offense. Vega offers scant, and largely speculative, support for the proposition that he received only a 90-day sentence on his parole violation. He claims that he was a Category 3 parole violator and therefore was entitled to a sentence on the parole violation that was the equivalent of time spent in custody on the parole violation warrant plus threе months, as opposed to the 1,261 days certified by the Division of Parole. N.Y. Comp.Codes R. & Regs. tit. 9, § 8005.20(c)(3)(ii). However, he points to nothing in the record to show that he was a Category 3 violator. He merely asserts that he fell into that category and should have received only a three-month sentence. He has therefore failed to demonstrate his right to relief.
See United States v. Harris,
The Government states that no credit is due to Vega because this time period had already been credited against his state parole violation sentence of 1,261 days, so that it was unavailable as credit toward his federal charge. See 18 U.S.C. § 3585(b) (allowing credit for time spent in detention prior to the date of sentencing that has not been credited against another sentence). Moreover, the Government notes that the parole violation conduct was unrelated to the conduct that formed the basis for his federal charge. The conduct for which Vega’s parole violation warrant issued was assault, failing to report to a parole officer, and leaving his residence without permission.
Thе District Court correctly found that the period of time between August 27, 1998 and July 30, 1999, should not have been credited to the defendant as part of his federal sentence. The BOP allotted this time to Vega’s state parole violation term, and therefore it is not available to be credited toward his federal sentence on the narcotics offense. 18 U.S.C. § 3585(b). Accordingly, the District Court’s finding is not clearly erroneous.
IV.
A.
The principal issue before us is whether Vega should receive credit toward his federal sentence for the nearly two years he spent at liberty as a result of his erroneous release from the state penitentiary system. Vega proposes that his two periods of incarceration should have run cоntinuously, and thus, the unintentional lapse between the two sentences entitles him to have the
*315
intervening period of liberty counted toward his federal sentence. This proposition finds support in the case law of other circuits, where it is alternately referred to as the “rule” or the “doctrine” of credit for time at liberty.
1
The origin of the rule in federal case law can be traced to
White v. Pearlman,
While courts vary in their interpretation and application of the rule, most agree that a mere delay in the commencement of a sentence is insufficient to give a prisoner the right to credit for time at liberty. Most recently, in
Leggett v. Fleming,
Courts adopting the rule also seem to generally agree upon the “power of the government to recommit a prisoner who is released or discharged by mistake, where his sentence would not have expired if he had remained in confinement.”
White,
42
*316
F.2d at 789;
see also Green v. Christiansen,
To this point, we have had little to say on the rule of credit for time at liberty. In fact, we have only a single case that has addressed the reasoning of
White v. Pearlman
—United
States ex rel. Binion v. O’Brien,
The prisoner’s claim in a habeas petition was that he deserved credit for the time he reported to the probation officer after his Nevada term of probation had ended but before he was returned to Texas. Relying on Smith and White, wе held that the prisoner deserved credit for the time he was on bail. Id. at 498. We stated that Smith and White “stand for the proposition that where an individual’s liberty is restrained by the act of an officer of the United States having authority to exercise restraint, such individual is entitled to credit for the period of that restraint towards service of his sentence.” Id. Because the prisoner was required to report to a probation officer longer than his Nevada probation required, he was entitled to have time credited against his Texas term of incarceration.
O’Brien used White to support a different proposition than most courts relying on it. The narrow holding of O’Brien is that when a prisoner is restrained to the point of practical imprisonment, he must be granted crеdit for that time. Therefore, O’Brien does not respond to the related question of what happens when a prisoner is not restrained, but should have been, because of governmental negligence.
B.
The diverging paths taken by courts of appeals and the lack of any precedent from this Court compel us to formulate a test which district judges may apply in resolving claims for credit for time at liberty when a prisoner has been erroneously released by one sovereign without having completed an obligation to a separate sovereign. In fashioning this test, we take full cognizance of the important interests at stake.
As a preliminary matter, we note that the interests upon which we base this test do not have constitutional stature.
See Dunne,
*317
Assuming that the reincarceration of a defendant after a period at liberty meets the
Lewis
standard, the question becomеs whether “the government’s conduct violate[s] one or more fundamental rights that are deeply rooted in this Nation’s history and tradition, and implicit in the concept of ordered liberty, such that neither liberty nor justice would exist if they were sacrificed.”
Bonebrake,
Vega contends that it is a violation of the fundamental principles of liberty and justice to require a prisoner who has been erroneously released and has begun the rehabilitation process to return to incarceration. Other courts have declined to find due process violations in similar circumstances.
See, e.g., Thompson v. Cock-rell,
Because we do not find a constitutional basis upon which to anchor the rule оf credit for time spent erroneously at liberty, the roots of the rule must be located elsewhere. In this respect, we look to the common law. In
Dunne v. Keohane,
the Seventh Circuit explained that, under the common law, “[t]he government is not permitted to delay the expiration of the sentence either by postponing the commencement of the sentence or by releasing the prisoner for a time and then reimprisoning him.”
*318 Loоking to the common law, we find that three interests are of paramount importance when determining whether an erroneously released prisoner should be granted credit for the time he was at liberty. The first is simple fairness toward the prisoner. As the Tenth Circuit stated in White:
A prisoner has some rights. A sentence of five years means a continuous sentence, unless interrupted by escape, violation of parole, or some fault of the prisoner, and he cannot be required to serve it in installments. Certainly a prisoner should have his chance to reestablish himself and live down his past.
In addition to affecting a prisoner’s rights, allowing the delayed or interrupted service of a sentence grants the officers entrusted with the execution of sentences excessive power. As the Ninth Circuit pointed out in Smith,
If a ministerial officer, such as a marshal, charged with the duty to execute the court’s orders, fails to carry out such orders, that failure cannot be charged up against the prisoner.... Any other holding would give the marshal, a ministerial officer, power more arbitrary and capricious than any known in the law. A prisoner sentenced for one year might thus be required to wait forty [years] under the shadow of his unserved sentence before it pleases the marshal to incarcerate him. Such authority is not even granted to courts of justice, let alone their ministerial officers.91 F.2d at 262 . As the sole entity responsible for execution of a prisoner’s sentence, the government bears the burden of ensuring that the sentence is carried out in a timely manner, and there is an important policy consideration in encouraging that it does just that.
However, as important as the rights of prisoners and the need to limit the capricious exercise of governmental power is the government’s and society’s interest in convicted criminals serving out their sentences.
Artez v. Mulcrone,
C.
With these important interests in mind, we turn to the proper formulation of the doctrine. Vega proposes a totality of the circumstances test like that used in
United States v. Martinez,
The Government proposes that only gross negligence on the part of the federal government should relieve a prisoner from having to serve the full extent of his sentence, and that erroneously released prisoners must have clean hands in order to receive credit for time spent at liberty. The Government asserts that Vega bears some fault because he did not contact federal authorities upon his release from state prison, even though he was required by the federal Judgment and Commitment Order to report to the U.S. Probation Office following his release from the Bureau of Prisons.
5
Therefore, the Government argues, he could not have been under the mistaken impression that he had completed his state
and
federal sentences, because if he had thought that he had fully served his time, he would have reported to the Probation Office. This line of reasoning would place responsibility for the execution of a prisoner’s sentence at least partly on the prisoner, something that we are not inclined to do.
See, e.g., Martinez,
While both Vega and the Government have presented compelling arguments for their tests, we find that neither test properly balancеs the interests at stake. Therefore, we adopt the test laid out below, which takes appropriate consideration of the prisoner’s interest in serving his sentence in a continuous and timely manner, the need to limit the arbitrary use of governmental power, and the government’s and society’s interest in making sure a prisoner pays the debt he owes to society. Therefore, in order for a prisoner to receive credit for time he was erroneously at liberty, the prisoner’s habeas petition must contain facts that demonstrate that he has been released despite having unserved time remaining on his sentence. Once he has done this, the burden shifts to the government to prove either (1) that there was no negligence on the part of the imprisoning sovereign, or (2) that the prisoner obtained or retained his liberty through his own efforts.
This test is similar to tests created by our sister circuits who have addressed the issue.
See, e.g., Martinez,
1.
The government may first show cause to deny the prisoner’s habeas petition by proving that there was no governmental negligence. The rule of credit for time at liberty serves as a limit on the power of the marshals or ministerial officers engaged in imprisoning defendants, and encourages these same officials tо take responsibility for the prisoners with whose custody they are charged.
Shelton v. Ciccone,
Nearly every court to have considered the rule of credit for time at liberty has required that the government’s actions in releasing or failing to incarcerate the prisoner be negligent.
See id.
at 235;
Green,
However, the question that remains is whether the government need show only that the imprisoning sovereign, in this case the United States, was free from negligence, or whether it must also show that any independent sovereign that was involved in the release, in this case the State of New York, was also free from negligence. In other words, is negligence on the part of
any
sovereign sufficient, or must the negligence rest with the imprisoning sovereign? The courts to have addressed this issue are divided. The Ninth Circuit has held that negligence on the part of any governmental entity is sufficient to allow credit for time spent at liberty,
Clark v. Floyd,
In Clark, the defendant was convicted in a federal district court of drug offenses and sentenced to two consecutive five-year prison terms. While he was on bail pending an appeal, he was arrested in Montana, *321 charged and convicted of state drug offenses and immediately began to serve a forty-year sentence. While he was serving this state sentence, the federal court issued a writ of habeas corpus ad prose-quendum so that Clark could face probation revocation. At the probation hearing, the district court sentenced Clark to a third five-year term. The Marshals Service returned Clark to state prison, lodged a detainer with the Montana State Prison Records Office, and received acknowledgment of the detainer. However, when Clark was released on parole by Montana, authorities failed to notify the Marshals Service. Clark was taken into federal custody three years later.
In a brief opinion, the Ninth Circuit majority held that Clark should be given credit for the time he spent at liberty. Because Clark was released “through the inadvertence of agents of the government and through no fault of his own,” id. at 374 (internal quotation marks and citation omitted), Clark deserved to have time credited toward his federal sentence. However, Judge Fernandez filed a heated dissent, arguing that Clark did not deserve credit because the federal authorities had made no mistake and Clark had made no affirmative steps to serve his federal sentence. Id. at 375 (Fernandez, J., dissenting).
Picking up on Judge Fernandez’s arguments, the Fifth Circuit held nine years later that a prisoner may not receive credit for time he spent at liberty where a sovereign that is independent of the imprisoning sovereign was responsible for the erroneous release. In Leggett, while in state prison for a probation violation, the defendant was transferred through a writ of habeas corpus ad prosequendum to federal district court to face charges of being a felon in possession. He pleaded guilty, was sentenced to seventy months imprisonment, and was then returned to state prison. At the time of his return, the Marshals Servicе lodged a detainer with the Sheriff’s Department, which acknowledged receipt of the detainer. After the parole board revoked Leggett’s probation, he was transferred to the Texas Department of Criminal Justice, but his detainer did not travel with him. Therefore, when he was released from prison, the Marshals Service was not notified. Leggett was picked up a year later on a fugitive warrant for violating his state parole, but again federal authorities were not notified. The Marshals Service did not arrest Leg-gett until approximately three years after he had initially been released from custody.
Based on these facts, the Fifth Circuit held that Leggett did not deserve credit for the time he was at liberty. It stated thаt “the errors of state officials should not impact a prisoner’s service of his federal sentence.”
Leggett,
We are persuaded by the reasoning of the Fifth Circuit and Judge Fernandez’s dissent. Because the rule of credit for time at liberty serves policy goals that encourage fairness to the defendant, responsibility and restraint on the part of the officials executing the sentence, and service of the time owed to society, we choose not to formulate a rule that does nоt encourage one of those goals. Were we to allow a prisoner credit for time spent at liberty where no fault lies with the imprisoning authority, the goal of fairness to the defendant would be served at the expense of society’s expectation that a prisoner will serve the time he owes.
That said, the question in this case is not so easy as asking whether New *322 York made a mistake. Whether the imprisoning sovereign has clean hands is a factual inquiry that looks not just to which sovereign made the more serious error. Rather, the court reviewing a petitioner’s habeas petition must consider if the imprisoning sovereign was partially at fault. This inquiry is a factual one best conducted before a District Court. In the case before us, factual inquiries remain regarding the degree of fault, if any, of the United States. Therefore, we will remand the case so that the District Court can consider in the first instance whether the United States was negligent, taking into consideration the detainer and the Government’s admission that it never received notice that the detainer had been received. In addition, this case presents unique circumstances that involve a very close working relationship between federal and state authorities. Therefore, on remand the District Court should consider in the first instance the legal issue of whether, under these particular facts, the State of New York was acting as an agent of the federal government.
2.
In addition to proving that the imprisoning sovereign was free from negligence, the government may defeat a habeas petition by showing that the prisoner affirmatively effectuated his release or continued freedom. All courts agree that if a prisoner has actively effectuated his release, for example by escaping, or actively thwarted governmental attempts to recover him, he may not receive credit for time at liberty.
See, e.g., White,
The government cannot meet its burden under this prong merely by showing that a prisoner did not take affirmative steps to effectuate his own sentence. If a prisoner suspects that he may have another sentence to serve and does nothing to notify authorities, he may still receive credit against his sentence sо long as his conduct has not violated his parole or thwarted authorities in any other manner. This holding comports with other courts’ decisions that have refused to require a prisoner to bring the mistaken release to the attention of either the releasing or imprisoning sovereign.
See, e.g., Green,
V.
Although there is not a constitutionally-based right to credit for time at liberty as a result of mistaken release, we decline to adopt a rule that would unduly penalize releasees who have readjusted to life outside of confinement or unduly penalize the government when it has had no hand in a prisoner’s erroneous release. When evalu *323 ating which releasees should receive credit for their premature freedom, district courts are to apply the two-part test articulated here. A prisoner is to receive credit for the time he was at liberty if he can bring forth facts indicating that he was released despite having unserved time remaining. The government may then respond to the petition by showing that, either, the imprisoning sovereign was not negligent, or vicariously negligent, or that the prisoner, in any way, affirmatively effectuated his release or prevented his re-apprehension. We therefore vacate the District Court’s order in part and remand for the District Court to consider whether the Government has made such a showing. 6 Vega will not, however, receive credit toward his federal narcotics sentence for the period between August 27, 1998 and July 30,1999, because this time was credited against his state parole violation. Accordingly, we will affirm the District Court’s judgment with respect to the August 27,1998-July 30,1999 period.
Notes
. The Eleventh Circuit made particular note of this apparent terminolоgical disagreement.
See United States v. Barfield,
. A number of circuits, including our own, have adopted the holding in
White. See Free
v.
Miles,
.However, some cоurts have held that if the authorities cause an excessive delay in the commencement of a sentence, they may waive jurisdiction of their right to execute a sentence.
See Shields v. Beto,
[I]t is not sufficient to prove official conduct that merely evidences a lack of eager pursuit or even arguable lack of interest. Rather the waiving state's action must be so affirmatively wrong or its inaction so grossly negligent that it would be unequivocally inconsistent with “fundamental principles of liberty and justice” to require a legal sentence to be served in the aftermath of such action or inaction.
Piper v. Estelle,
. Despite the lack of a liberty interest in credit for the entire time he spent at liberty, Vega has a liberty interest in good -time credits,
*318
which he does not appear to have been awarded for the period between his release from the state facility and reincarceration in federal prison.
See Wolff v. McDonnell,
. We observe that Vega was not in violation of the Judgment and Commitment Order since, by its very terms, he was not released by federal authorities, but by the State. His obligation to report to the Probation Office was only triggered upon release from the Federal Bureau of Prisons.
. It appears that if Vega’s position is upheld on remand, he will have served or will be close to having served his sentence in full. Accordingly, on remand the District Court is instructed to forthwith and without delay hold a bail hearing on an expedited basis.
