Christopher Hubbart claims that his commitment under California’s Sexually Violent Predator Act (“SVPA”), Cal. Welf. & Inst.Code § 6600, et seq., violates federal due process and equal protection, and he seeks habeas corpus relief. Hubbart was the first person confined under this latest California civil commitment statute, and his case follows an evolution of state efforts, civil and criminal, to contain and rehabilitate recidivist sex offenders. The California courts have rejected Hubbart’s facial challenge to the SVPA and upheld its specific application in his case. On August 23, 2003, the district court denied Hubbart’s federal habeas corpus petition. We affirm.
Hubbart admits to raping “about” 40 women throughout California between *776 1971 and 1982. He has been held under at least three different regulatory schemes designed to detain, treat and rehabilitate sex offenders. Two of these schemes have since been revoked. In fact, the government concedes that Hubbart was illegally detained for psychiatric treatment under former parole revocation regulation, Cal. Code Regs. tit. 15, § 2616(a)(7) (1994). Hubbart argues that this error is perpetuated by his commitment under the SVPA in violation of due process and equal protection.
I
Hubbart was first arrested on rape charges in Los Angeles in 1972. He has since admitted to raping 25 women in that area. At the time, Hubbart was deemed a “mentally disordered sex offender” under former Cal. Welf. & Inst. Code § 6300 and committed for treatment to Atascadero State Hospital (“ASH”). In 1979, upon the determination of ASH doctors that he posed no further threat, Hubbart was released from state custody.
Hubbart then moved to the San Francisco Bay Area and within two years raped another 15 women. In 1982, he was convicted on various counts of burglary, false imprisonment, and rape, and sentenced to 16 years in prison. He was paroled in 1990.
Shortly after release, Hubbart attempted to sexually assault two more women. In separate incidents, he followed the women off public buses, proceeded after them down the street, and attempted to grab each from behind. Both escaped uninjured. Hubbart’s parole was revoked on June 27, 1990. After three more years in prison, Hubbart was paroled once again in 1993.
Hubbart’s freedom did not last long. Although he did not violate the conditions of his release, the California Board of Prison Terms nonetheless revoked his parole for psychiatric treatment pursuant to a former parole revocation regulation, Cal. Code Regs. tit. 15, § 2616(a)(7). Hubbart has been in state custody ever since.
Hubbart filed a state petition for habeas relief in October 1994, challenging his parole revocation. At the time, the parole regulation authorized the California Board of Prison Terms to revoke a parolee’s release upon its unilateral determination that the parolee suffered from a mental disorder and was a danger to himself or others. On May 18, 1995, the California Supreme Court summarily denied Hubbart’s petition.
On January 2, 1996, one day after California’s SVPA became effective, the Santa Clara County District Attorney filed a petition to commit Hubbart under the new law. At the time, Hubbart was in custody under parole revocation regulation § 2616(a)(7). Hubbart immediately filed a demurrer to the SVPA petition. Arguing that the SVPA was unconstitutional on its face, Hubbart sought a writ of prohibition in the Supreme Court of California. The state’s high court stayed Hubbart’s SVPA proceedings pending its decision. Hub-bart remained in custody.
Meanwhile, another detainee challenged parole revocation regulation § 2616(a)(7), raising similar claims to the ones Hubbart made in 1994. This time, on July 24, 1998, the California Court of Appeal held that the psychiatric parole revocation scheme exceeded the statutory authority of the Board of Prison Terms.
See Terhune v. Superior Court,
In light of Terhune, Hubbart filed a new state petition for habeas relief, challenging his detention under the recently invalidated parole revocation regulation. At the *777 time, Hubbart’s facial challenge to the SVPA was still pending before the state supreme court. On December 22, 1998, the state superior court denied Hubbart’s challenge to the parole regulation, ruling that Hubbart was no longer detained under the recently invalidated regulation, but was instead now in custody pursuant to the SVPA.
One month later, on January 21, 1999, the California Supreme Court rejected Hubbart’s facial challenge to the SVPA.
See Hubbart v. Superior Court,
With the stay on his SVPA proceedings lifted, Hubbart finally faced trial under the SVPA. Following a jury’s determination that he was a sexually violent predator beyond a reasonable doubt, Hubbart was confined for a two-year term of civil commitment beginning March 21, 2000. The California Court of Appeal affirmed the commitment order,
see People v. Hubbart,
On March 7, 2002, Hubbart timely petitioned the federal district court for habeas relief pursuant to 28 U.S.C. § 2254. Two weeks later, well before the district court could rule on his petition, Hubbart’s original two-year term of commitment under the SVPA expired. 1 The district court denied Hubbart’s federal habeas petition on the merits on August 26, 2003, and Hubbart timely appealed to this court.
II
The government argues that this case is moot because Hubbart petitions for habeas relief from his original term of commitment under the SVPA, which expired on March 21, 2002.
See
Cal. Welf.
&
Inst.Code § 6604 (establishing two-year terms of commitment). Although Hubbart currently remains in state custody under the SVPA, having been recommitted in 2002, the government contends that each two-year term of commitment under the SVPA constitutes a new and distinct civil action.
See Burris v. Hunter,
We hold that Hubbart’s habeas petition is not moot because his claims are capable of repetition yet evading review. This well-established exception to mootness applies when “(1) the challenged action [is] in its duration too short to be fully litigated prior to cessation or expiration, and (2) there [is] a reasonable expectation that the same complaining party [will] be subject to the same action again.”
Id.
at 17,
Hubbart’s claims satisfy the second “capable of repetition” component of this analysis because he has already been subject to a second SVPA commitment pro
*778
ceeding, which he argues was just as unconstitutional as the first. Hubbart’s claims “evade review” because a two-term commitment under the SVPA is “too short to be
fully litigated
prior to ... [its] expiration.”
Id.
(emphasis added);
see also Sibron v. New York,
A claim evades review if “the underlying action is almost certain to run its course before either this court or the Supreme Court can give the case full consideration.”
Biodiversity Legal Found. v. Badgley,
In
Alaska Ctr. for the Env’t v. United States Forest Serv.,
Furthermore, we reject the suggestion that Hubbart’s petition has not evaded review because the California courts have already ruled on his claims. We hold that for purposes of determining mootness in connection with California’s repeating pattern of two-year commitments under the SVPA, a federal constitutional claim evades review if the challenged action expires before a federal appellate court has the opportunity to fully consider the allegation.
See Biodiversity Legal Found.,
III
A
On the merits, we review de novo the district court’s denial of Hubbart’s habeas petition.
Clark v. Murphy,
B
It is helpful to recognize that Hub-bart is not directly attacking the state’s habeas
process
— i.e., his failure to win release from the parole revocation regulation invalidated by the California Court of Appeal in
Terhune,
Hubbart argues that his confinement violates federal due process because the state failed to follow its own rules in confining him under the SVPA. Hubbart asserts that the state’s alleged error violates
Hicks v. Oklahoma,
We assume, along with the government and district court, that Hubbart was initially detained illegally under former parole revocation regulation § 2616(a)(7) when his first SVPA commitment proceeding began. Hubbart argues that his current commitment under the SVPA violates state law because SVPA proceedings may only be initiated against persons already “in custody under the jurisdiction of the Department of Corrections.” Cal. Welf. & InstCode § 6601(a)(1). Although Hubbart was undeniably “in custody” at the time his commitment proceedings began, he contends that his illegal detention under the invalidated parole revocation regulation cannot satisfy the SVPA’s “in custody” prerequisite. He argues that the error continues to infect the lawfulness of his continued commitment under the SVPA and that the state court’s alleged misapplication of the statute violates Hicks.
The California Court of Appeal rejected Hubbart’s interpretation of the SVPA’s “in custody” provision as a matter of state law.
See Hubbart,
The question before us is not whether the state court of
appeal applied an overbroad interpretation of the SVPA’s “in custody” requirement, but whether that court’s interpretation and application of the SVPA in this case violates federal due process. Federal habeas corpus relief is generally “unavailable for alleged error in the interpretation or application of state law.”
Peltier v. Wright,
It follows that the state court’s denial of Hubbart’s habeas petition is not contrary to, or an unreasonable application of,
Hicks v. Oklahoma.
Under
Hicks,
state courts must generally comply with state laws in sentencing prisoners, subject to the protections of federal due process.
See
Hubbart argues in the alternative that, even if the state complied with the SVPA’s “in custody” requirement when it initiated its commitment proceedings, the state court’s construction of the statute fails to provide minimum procedural safeguards required under
Mathews v. Eldridge,
[D]ue process under the SVP Act is not measured by the rights accorded a defendant in criminal proceedings, but by the standard applicable to civil proceedings: The extent of due process protection which must be accorded a civil litigant is tested by consideration of four factors: (1) the private interest [which] will be affected by the official action; (2) the risk of an erroneous deprivation ... through the procedures used; (3) the probable value, if any, of additional or substitute procedural safeguards, and (4) the ... interest in informing individuals ... of the action and in [allowing] 'them to present their side of the story. ... [W]hile the alleged sexually violent predator has a strong liberty interest, the government also has a strong interest in protecting the public from persons who are dangerous to others.
Id.
(citation and quotation marks omitted);
see also Conservatorship of Moore,
Because the state court applied the correct legal principle here,
see Addington v. Texas,
In
Kansas v. Hendricks,
The California Court of Appeal held that the SVPA satisfies these due process requirements, even accounting for its interpretation of the SVPA’s “in custody” prerequisite.
Hubbart,
C
Hubbart also casts his detention under parole revocation regulation § 2616(a)(7) as a violation of the Equal Protection Clause. He argues that the state has no constitutional authority to distinguish his case from those of other sex offenders who would be eligible for commitment under the SVPA but for the fact that they were not unlawfully “in custody” pursuant to the former parole revocation regulation. In essence, Hubbart questions whether the state may constitutionally distinguish between those in custody under the SVPA due to a good faith error in law and those who are not in custody because the state did not revoke their parole or because they successfully challenged their pre-SVPA detention.
The California Court of Appeal found the distinction justified. It held that the state has “a compelling ... interest in identifying, confining, and treating persons who represent a danger to the health and safety of others in that they are likely to engage in acts of sexual violence” and that the SVPA “is narrowly tailored to apply to a small but extremely dangerous group of sexually violent predators that have diagnosable mental disorders [who] can be identified while they are incarcerated.”
Hubbart,
The California appellate court’s determination that the SVPA is narrowly tailored to further the state’s compelling interest in identifying and containing sexually violent
*782
prisoners before they are released from custody is certainly consistent with Justice Kennedy’s observation in
Hendricks
that “the power of the State to confine persons who, by reason of a mental disease or mental abnormality, constitute a real, continuing and serious danger to society is well established.”
D
Finally, Hubbart claims that the SVPA violates equal protection law established in
Baxstrom v. Herold,
The California Court of Appeal found no constitutionally significant distinction between the two statutes.
See Hubbart,
TV
For the foregoing reasons, we hold that Hubbart’s claims for federal habeas corpus relief are meritless, but not moot. The district court’s denial of Hubbart’s habeas petition is AFFIRMED.
Notes
. In August 2002, the Santa Clara County Superior Court renewed Hubbart's commitment under the SVPA and committed him to a second two year term. At oral argument, the government asserted that Hubbart remains in custody pursuant to this second term of commitment, which will expire in August 2004. Another commitment proceeding seeking a third two-year term is now pending.
