RIPPLE, Circuit Judge.
In 1999, Patrick Werner was convicted of multiple sex offenses in Wisconsin state court. The state trial court sentenced him to ten years of imprisonment and to ten consecutive years of probation. Because Mr. Werner had been convicted of more than one sex offense, he was a Special Bulletin Notification (“SBN”) sex offender under Wisconsin law. After a denial of parole in late 2009, Mr. Werner’s release was deferred until his mandatory release date of March 21, 2010. At that time, Mr. Werner and his probation agents were unable to secure an approved residence as required by his rules of supervision. Consequently, the Wisconsin Department of Corrections (“DOC”) Division of Community Corrections detained him pursuant to Administrative Directive No. 02-10 (“AD 02-10” or “the directive”), which set out a procedure addressing release-eligible SBN sex offenders who lacked an approved residence. Under AD 02-10, persons who had reached their mandatory release date but could not secure housing that was approved under their rules of supervision were detained in the county jail during the night but permitted to seek appropriate housing during certain hours of the day. Authorities employed this arrangement to prevent a violation of the rules of supervision. Officials detained Mr. Werner under this arrangement sporadically between March 16, 2010, and July 1, 2011, when he finally located and moved into an approved residence.
Mr. Werner brought this action pro se in the district court under 42 U.S.C. § 1983. He claimed that his continued detention beyond his mandatory release date was unlawful and named as defendants various DOC officials and several of his probation agents. In an initial screening order, the district court permitted Mr. Werner to proceed on the individual-capacity claims under the Eighth Amendment and the Due Process Clause of the Fourteenth Amendment. It also permitted him to maintain an official-capacity claim for injunctive relief on the ground that AD 02-10 violated the Due Process and Ex Post Facto Clauses. The district court ultimately granted summary judgment in favor of the defendants on all of Mr. Werner’s claims. It concluded that his Eighth and Fourteenth Amendment claims were barred by qualified immunity and that his official capacity challenge to the directive as a policy was moot. Mr. Werner timely appealed the district court’s decision with respect to his individual-capacity claims. In due course, we recruited counsel and requested additional briefing.
After the benefit of briefing and oral argument, we agree with the district court that the defendants in this case are entitled to qualified immunity. We therefore affirm the district court’s judgment with respect to each of Mr. Werner’s claims.
I
BACKGROUND
A.
In 1999, the Circuit Court of Brown County, Wisconsin, convicted Mr. Werner of second-degree sexual assault of a child and of attempted child enticement. The court sentenced him to ten years in prison [754]*754with ten consecutive years of probation. After his parole was denied in late 2009, Mr. Werner’s release was deferred until his mandatory release date of March 21, 2010. Wisconsin law requires that any person convicted of a sex offense and then released to parole or extended supervision be placed initially in the county where the person resided on the date of the offense, the county where the person was convicted, or a sex offender treatment facility. Wis. Stat. § 301.03(20)(a). Mr. Werner was convicted in Brown County, and the Division of Community Corrections sought to place him there.1 Because of Mr. Werner’s multiple sex offense convictions, he also was designated an SBN sex offender. This designation required the Division of Community Corrections to provide notice of his placement in Brown County to law enforcement officials in that community. See id. § 301.46(2m)(am).
Wisconsin law provided still more restrictions. At the time of Mr. Werner’s mandatory release date in 2010, the rules of supervision for all sex offenders required them to obtain and to maintain an approved residence; they were not permitted to be homeless because of the risk of recidivism. Mr. Werner’s Standard Sex Offender Rules consequently provided, in relevant part:
5. You shall not reside nor “stay” overnight in any place other than a pre-approved residence without prior agent approval. “Overnight” is defined as the daily period of time between the hours of 8 p.m. and 8 a.m. unless redefined by ' your agent in advance.
11. You shall fully comply with all sex offender registry requirements as applicable and directed by your agent and/or required by statute[2]
SBN sex offenders in particular were required to “provide a specific, verifiable address prior to release from a correctional institution ... subject to the department’s approval.”3 In determining whether to approve a proposed residence, agents were required to consider, among other things, the “[pjroximity to the SBN offender’s vic7 tim(s), elementary or secondary schools, parks and licensed or certified day care providers.”4
There were still more restrictions, imposed by a combination of department rules and community ordinances. Among the thirty-nine Rules of Community Supervision, the first stated:
1. You shall avoid all conduct which is in violation of federal or state statute, municipal or county ordinances, tribal law or which is not in the best interest of the public welfare or your rehabilitation[5]
Brown County had over a dozen ordinances in place that restricted where registered sex offenders could reside.6 Both the Standard Sex Offender Rules and the Rules of Community Supervision provided that a violation of any rule would subject the offender to possible revocation of his or her probation, parole, or extended su[755]*755pervision. Therefore, residing in any place forbidden by local ordinance constituted a violation of these rules and subjected Mr. Werner to possible revocation of his probation.
Wisconsin authorities had wrestled with the problem created by the confluence of these provisions for quite a while before Mr. Werner’s situation came to the fore. In 2002, nearly a decade before Mr. Werner’s mandatory release date, the Division of Community Corrections had fashioned an administrative scheme to address this dilemma in releasing convicted sex offenders to communities with restrictive sex offender ordinances. Responding to several Wisconsin Court of Appeals decisions requiring that sex offenders be released on their mandatory release date regardless of whether they had approved housing, the Division of Community Corrections promulgated AD 02-10, which detailed the department’s “Procedures for SBN Offenders Lacking Approved Residences.”7 Relying explicitly on the DOC’s existing authority to “take[ ] into custody and detain! ]” an offender on supervised release “[t]o prevent a possible violation,” Wis. Admin. Code DOC § 328.22(2)(d) (2002),8 AD 02-10 set out the following:
Approved Residence Requirement
An approved residence is a standard requirement of supervision for all sex offenders. Special Bulletin Notification (SBN) offenders must provide a specific, verifiable address prior to release from a correctional institution. The proposed residence is subject to the department’s approval....
Lack of Approved Residence After Release
Wisconsin law requires the Department of Corrections to release offenders on their mandatory release dates. The decisions of the Court of Appeals in State ex rel. Woods v. Morgan, 224 Wis.2d 534, 591 N.W.2d 922 (Ct. App. 1999) and State ex rel. Olson v. Litscher, 233 Wis.2d 685, 608 N.W.2d 425 (Ct. App. 2000) require that prisoners be released upon reaching mandatory release, whether or not an approved residence has been found.
If, upon release, a SBN offender does not have a residence, which the department has approved, the offender shall be directed to secure an approved residence by the end of the workday.
The SBN offender shall be permitted to conduct an “unfettered” search for housing. This means the SBN offender shall be permitted to leave the presence of DOC staff to search for housing. In order to accomplish this, the agent shall require the SBN offender to be accompanied by an approved chaperone. The SBN offender shall also be required to provide an itinerary, prior to leaving the agent’s presence, and to keep a log of movements, appointments and personal contacts. The SBN offender shall wear an [electromagnetic pulse (“EMP”) ] transmitter at all times. The chaperone shall be provided with a cellular phone and an EMP “scanner.”
The SBN offender is not required to remain in the physical presence of the chaperone at all times during the search for housing. However, the SBN offender will be required to remain within range of the EMP scanner. The chaperone must also be provided a copy of the SBN offender’s rules and must agree to neither assist nor encourage the SBN offender to violate any rule. The chaperone will have no authority to detain or impede the SBN offender.
[756]*756If the SBN offender does not secure an approved residence by 5:00 p.m. and the department has no alternative housing resources in the community of release, the SBN offender may be detained in the county jail, to prevent a violation, pursuant to Wis. Admin. Code DOC 828.22(2)(d). The SBN offender shall be released from custody the next workday, to continue to search for an approved residence. The requirements for the search remain the same: EMP, provide a written itinerary, keep a log of movements and be accompanied by an approved chaperone. If any requirement is unmet, the SBN offender shall remain in custody, until all requirements can be met.
Procedures Upon Locating Residence
When an appropriate residence has been located, the agent will notify local law enforcement, who shall have the opportunity to notify the community before the SBN offender establishes residence. [9]
B.
Mr. Werner was assigned three different probation agents during the time period he was under the supervision of the Division of Community Corrections. Although he was still incarcerated, Agent Amanda Martin received Mr. Werner’s file on November 12, 2009, the day before his parole was denied and his release deferred. On December 1, 2009, Agent Martin discussed with Mr. Werner his housing and employment options. She described Brown County’s sex offender ordinances, the procedures set out in AD 02-10 should he be unable to secure an approved residence before his mandatory release date, and the global positioning satellite (“GPS”) tracker that Mr. Werner would be required to carry on release. Over the next several months, while Mr. Werner still was incarcerated, Agent Martin investigated numerous potential residences proposed by Mr. Werner, his social worker, and his mother; however, she determined that she could not approve any of these proposed residences. Agent Martin also arranged a chaperone, pursuant to AD 02-10, with whom Mr. Werner could search for housing for four hours per weekday.
On March 4, 2010, Agent Martin and her supervisor, Lori Richgels, met with law enforcement officials to discuss Mr. Wer-ner’s release plan and to determine the appropriate level of community notification. On March 16, 2010, five days before his mandatory release date, Mr. Werner was transferred from a state penitentiary to the Division of Community Corrections office in Green Bay. Agent Martin completed the intake process with Mr. Wer-ner, which included reviewing the process for mandatory GPS monitoring, the sex offender registry requirements, and the procedure for sex offender housing searches. Mr. Werner reviewed and signed his Rules of Community Supervision and Standard Sex Offender Rules, as well as paperwork concerning the chaperone service. Because Mr. Werner had not secured an approved residence and the department had no alternative housing resources in the community, AD 02-10 applied and Mr. Werner was booked into the Brown County Jail to prevent a probation violation. For the next several months, Mr. Werner, with the assistance of Agent Martin, sought appropriate housing under the procedures outlined in AD 02-10.
In October 2010, Mr. Werner violated his supervision rules by possessing contraband and making threatening comments to his pod mates at the Brown County Jail. He agreed to an Alternative to Revocation (“ATR”), under which he would spend ninety days at a state penitentiary; he [757]*757began serving the ATR on December 1, 2010. Soon after, Agent Robert Fusfeld replaced Agent Martin as Mr. Werner’s probation agent. Mr. Werner was released back to the Division of Community Corrections office in Green Bay on March 1, 2011. For the next several months, he continued to search for approvable housing under AD 02-10. On June 1, 2011, Mr. Werner located a tentative residence in Bellevue, Wisconsin. Agent Fusfeld investigated the residence, approved it, and began arrangements for Mr. Werner’s release.
On June 22, 2011, Agent Erin Murto replaced Agent Fusfeld; she continued to arrange for Mr. Werner to move into the residence in Bellevue that Agent Fusfeld had approved. Mr. Werner moved into the residence on July 1, 2011. However, in November 2011, Mr. Werner again violated the terms of his supervision. His probation was revoked on April 23, 2012, and he was ordered by an Administrative Law Judge (“ALJ”) to return to prison for two years, four months, and three days.10
On November 16, 2012, Mr. Werner again was released, this time to a transitional living program in Green Bay.11 On February 15, 2013, however, Mr. Werner violated the rules of his supervision by, among other things, sending a sexually explicit message to a sixteen-year-old girl. According to the State, Mr. Werner’s probation was revoked; and he' is currently incarcerated at a state penitentiary. The parties also inform us that AD 02-10 was replaced in March 2015 by AD 15-12, under which SBN sex offenders lacking approved residences are no longer held in jail until they can secure an approved residence.
C.
On January 31, 2012, Mr. Werner brought this action pro se in the United States District Court for the Eastern District of Wisconsin under 42 U.S.C. § 1983, alleging that he was unlawfully detained from March 16, 2010, until July 1, 2011.12 Mr. Werner sought monetary damages and injunctive relief. He named as individual defendants: DOC Secretary Gary Hamblin; Division of Community Corrections Regional Chief Rose Snyder-Spaar; Division of Community Corrections Administrator Denise Symdon; Division of Community Corrections Field Supervisors Thomas Wickeham and Lori Richgels; and [758]*758Agents Martin, Fnsfeld, and Murto (collectively, “the defendants”).
In a screening order, the district court allowed Mr. Werner’s Eighth Amendment and due process claims, based on his continued detention beyond his mandatory release date, to proceed against Agents Martin, Fusfeld, and Murto, and Supervisors Wickeham and Richgels. The district court also allowed him to go forward with official-capacity claims for injunctive relief against all of the named defendants13 on the ground that AD 02-10 violated the Due Process and Ex Post Facto Clauses of the Constitution. The defendants moved for summary judgment on each of these claims. Mr. Werner also moved for summary judgment, but the district court denied his motion on procedural grounds. Several months later, Mr. Werner filed a number of documents that the court ultimately construed as a motion for summary judgment and a response in opposition to the defendants’ motion.
On March 27, 2014, the district court granted summary judgment in favor of the defendants. The court concluded that Mr. Werner’s Eighth Amendment and due process claims for damages against the individual defendants were barred by qualified immunity because it was not clearly established at the time that AD 02-10 violated the constitutional rights of SBN sex offenders. It further held that Mr. Werner’s official-capacity claims that AD 02-10 was unconstitutional were moot because he no longer was subject to the directive.
Acting pro se, Mr. Werner timely appealed the court’s judgment, and we recruited counsel to assist him.14 We ordered the parties to address at least the following issues:
(1) Do the facts alleged by Werner (including his detention in county jail beyond his release date) state a claim under the Eighth Amendment or the Due Process Clause of the Fourteenth Amendment?
(2) If Werner has stated a constitutional claim for damages, are the defendants entitled to qualified immunity for detaining Werner in county jail after his release date?[15]
II
DISCUSSION
The district court granted summary judgment on Mr. Werner’s Eighth Amendment16 and due process claims because it concluded that the defendants were entitled to the protections of qualified immunity.17 “We review a district court’s grant of summary judgment based on qualified immunity de novo, accepting all facts and inferences in the light most favorable to the non-moving party.” Zimmerman v. Doran, 807 F.3d 178, 182 (7th Cir. 2015). Qualified immunity shields government officials from civil “liability ‘insofar as their conduct does not violate clearly [759]*759established statutory or constitutional rights of which a reasonable person would have known.’ ” Purvis v. Oest, 614 F.3d 713, 720 (7th Cir. 2010) (quoting Harlow v. Fitzgerald, 457 U.S. 800, 818, 102 S.Ct. 2727, 73 L.Ed.2d 396 (1982)). In determining whether qualified immunity applies, “we must address two questions: [1] whether the plaintiffs allegations make out a deprivation of a constitutional right, and [2] whether the right was clearly established at the time of defendant’s alleged misconduct.” McAllister v. Price, 615 F.3d 877, 881 (7th Cir. 2010).
At one time, the Supreme Court required categorically that we conduct these two inquiries sequentially in order to avoid stagnation in the development of constitutional law. See Saucier v. Katz, 533 U.S. 194, 201, 121 S.Ct. 2151, 150 L.Ed.2d 272 (2001). Under this framework, we had to determine “first if the alleged facts described a legal violation, and only if they did, mov[e] on to the question whether the law was clearly established.” Mordi v. Zeigler, 770 F.3d 1161, 1165 (7th Cir. 2014). The Court relaxed this “rigid order of battle” in Pearson v. Callahan, 555 U.S. 223, 129 S.Ct. 808, 172 L.Ed.2d 565 (2009). It held that “the district courts and the courts of appeals should be permitted to exercise their sound discretion in deciding which of the two prongs of the qualified immunity analysis should be addressed first in light of the circumstances in the particular case at hand.” Id. at 236, 129 S.Ct. 808.18
In some situations, adherence to the traditional two-step approach is appropriate. See id. (recognizing that it is “often beneficial” to follow “the Saucier protocol”). Nevertheless, the circumstances of the present case make it advisable to avail ourselves of the latitude now afforded us. Id. at 241, 129 S.Ct. 808 (“Adherence to Saucier’s two-step protocol departs from the general rule of constitutional avoidance and runs counter to the older, wiser judicial counsel not to pass on questions of constitutionality unless such adjudication is unavoidable.” (alteration omitted) (internal quotation marks omitted)).19 Indeed, there are several reasons that counsel that we not address definitively the constitutional issue. First, the underlying administrative directive is no longer operable. Secondly, the appropriate analysis for claims of detained individuals not subject to sentences of incarceration is a difficult question, and it is easy for an intermediate appellate tribunal to lose its footing on the shifting sands of present-day case authority. For a long time, we have recognized that the treatment of a detained person not serving a sentence of incarceration is governed by the Due Process Clause,20 but we often have borrowed Eighth Amendment standards as a rule of decision.21 We also have [760]*760recognized, of course, that a person serving a sentence of probation or parole has a limited liberty interest in his freedom that cannot be curtailed without the procedural protections of notice and hearing. See Gagnon v. Scarpelli, 411 U.S. 778, 782, 93 S.Ct. 1756, 36 L.Ed.2d 656 (1973); Morrissey v. Brewer, 408 U.S. 471, 482, 92 S.Ct. 2593, 33 L.Ed.2d 484 (1972). Yet, when confronted with the failure to release a person because of an error in the computation of his sentence, we have relied on the principles of the Eighth Amendment. See Campbell v. Peters, 256 F.3d 695 (7th Cir. 2001);22 Burke v. Johnston, 452 F.3d 665 (7th Cir. 2006).23 But cf. Armato v. Grounds, 766 F.3d 713 (7th Cir. 2014) (analyzing a similar problem under both Eighth Amendment and procedural due process principles).24 Other circuits have [761]*761employed a variety of approaches invoking Eighth Amendment and due process protections.25 Recently, however, the Supreme Court held that the treatment of a pretrial prisoner is governed by the substantive standards of the Due Process Clause. See Kingsley v. Hendrickson, — U.S. —, 135 S.Ct. 2466, 2473, 192 L.Ed.2d 416 (2015). This conclusion seems compatible with the Court’s earlier holding in McNeil v. Director, Patuxent Institution, 407 U.S. 245, 92 S.Ct. 2083, 32 L.Ed.2d 719 (1972), that the continued detention of a person beyond the expiration of their prison sentence “violates his rights under the Fourteenth Amendment.” Id. at 246, 92 S.Ct. 2083. But cf. Baker v. McCollan, 443 U.S. 137, 145, 99 S.Ct. 2689, 61 L.Ed.2d 433 (1979) (holding that “a detention of three days over a New Year’s weekend does not and could not amount to” a “deprivation of liberty without due process of law”).
Another consideration further convinces us that we should not attempt to reconcile these governing principles here. Mr. Wer-ner has presented the due process argument to us solely as a matter of procedural due process, but we think that Kingsley, McNeil, and Baker suggest that substantive due process principles are implicated here. Rather than resolve definitively that question in a case in which counsel has not squarely raised the issue, we believe the proper course is to focus on the second prong of the qualified immunity inquiry and to determine whether the contours of the right involved were clearly established at the time of the defendants’ actions.26
[762]*762A clearly established right is one that “is sufficiently clear that any reasonable official would understand that his or her actions violate that right, meaning that existing precedent must have placed- the statutory or constitutional question beyond debate.” Zimmerman, 807 F.3d at 182 (citing Mullenix v. Luna, — U.S. —, 136 S.Ct. 305, 308, 193 L.Ed.2d 255 (2015)). “Put simply, qualified immunity protects ‘all but the plainly incompetent or those who knowingly violate the law.’ ” Mullenix, 136 S.Ct. at 308 (quoting Malley v. Briggs, 475 U.S. 335, 341, 106 S.Ct. 1092, 89 L.Ed.2d 271 (1986)). The Supreme Court also has held that, in this context, legal rights cannot be defined at a high level of generality. See, e.g.,- id. (“The dispositive question is whether the violative nature of particular conduct is clearly established. This inquiry must be undertaken in light of the specific context of the case, not as a broad general proposition.” (first emphasis in original) (citation omitted) (internal quotation marks omitted)). For the reasons set forth below, we conclude that a reasonable official would not have known that detaining Mr. Werner pursuant to AD 02-10 was legally impermissible.
In conducting the clearly established inquiry, our first task is to consider controlling Supreme Court and Seventh Circuit precedent. Abbott v. Sangamon Cty., 705 F.3d 706, 731 (7th Cir. 2013). Our earlier discussion makes evident that the precedent of the Supreme Court and of our court certainly did not provide adequate guidance to permit the defendants to understand their responsibilities in the face of the tangle of overlapping laws and regulations that Wisconsin had created.27 We therefore must “cast a wider net” and look to whether “all relevant case law” demonstrates “such a clear trend ... that we can say with fair assurance that the recognition of the right by a controlling precedent was merely a question of time.” Id. (internal quotation marks omitted).28 In [763]*763this respect, Mr. Werner identifies a line of Wisconsin state court decisions. In State ex rel. Olson v. Litscher, 233 Wis.2d 685, 608 N.W.2d 425 (Ct. App. 2000), Olson was serving a prison sentence for sexual assault and reached his mandatory release date on March 2, 1999; the DOC, however, had not located a residence for him. Id. at 426-27. Consequently, Olson was transferred from a state penitentiary to a minimum security facility, at which point he filed a petition for habeas relief on the ground “that his continued incarceration past his statutorily mandated release date was an unlawful restraint of his personal liberty.” Id. at 427. Acknowledging that the issue was a constitutional one dealing with personal liberty, the Wisconsin Court of Appeals concluded that the continued detention of Olson beyond his mandatory release date was not authorized: Wisconsin law provided that “each inmate is entitled to mandatory release on parole'... at two-thirds of the sentence.” Id. (quoting Wis. Stat. § 302.11(1)). Although the court “realized that it is difficult for the DOC to find a neighborhood that will accept a paroled sex offender in its midst,” the above statutory language convinced the court that “[wjhether or not a place has been found for an inmate, he or she must be released on his or her mandatory release date.” Id. at 427-28. The court noted in closing that there may be “a way for the state to more closely monitor sex offenders for a time between mandatory release and placement”; however, this was not the court’s responsibility to determine. Id.' at 428.29
The Wisconsin Court of Appeals again considered this issue in Allen v. Guerrero, 276 Wis.2d 679, 688 N.W.2d 673 (Ct. App. 2004), this time in the context of the Eighth Amendment. Allen, who had been convicted of sexual assault, reached his mandatory release date on January 4, 2000, but was unable to secure appropriate housing. Id: at 675-76. Instead of releasing Allen to parole as required under Wis. Stat. § 302.11(1), he was transferred to a minimum security facility and placed under the supervision of parole agents. Id. at 676. Several months later, the parole agents placed Allen on a “parole hold pending a parole revocation hearing,” arrested him, and sent him back to the state penitentiary. M30 An ALJ, however, concluded that Allen could not have violated his parole because he had never become a parolee. Id. Allen remained in custody, and the DOC initiated a second parole-revoca[764]*764tion proceeding; again, an ALJ held that revocation was inappropriate. Id. Allen petitioned for habeas relief, which was granted, and he was released to parole. Id.
Allen then brought a § 1983 action claiming that his continued incarceration beyond his mandatory release date violated the Eighth and Fourteenth Amendments, and the defendant prison officials raised qualified immunity as an affirmative defense. Id. Relying in large part on our decision in Campbell, the Wisconsin Court of Appeals held that Allen had made out an Eighth Amendment claim because the defendant’s commencement of a second parole-revocation hearing instead of releasing him on parole demonstrated “that they were deliberately indifferent to his plight.” Id. at 678 (alterations omitted) (internal quotation marks omitted). Proceeding to the second prong of the qualified immunity analysis, the court explained that, after Olson, Wisconsin state law was clear that “Allen was entitled to release on parole upon reaching his [mandatory release] date.” Id. at 679. Thus, “no reasonable public official could have believed that [Allen’s] continued detention was constitutionally permissible.” Id. at 680.
These cases, however, do not comprise a full picture of Wisconsin’s legal landscape. In 2005, just one year after the Wisconsin Court of Appeals decided Allen, and long before the application of the directive here, the Wisconsin Supreme Court decided State ex. rel. Riesch v. Schwarz, 278 Wis.2d 24, 692 N.W.2d 219 (2005). Riesch was serving an eight-year sentence for sexual assault; his mandatory release date was July 21, 1998. Id. at 220. Riesch’s parole supervision rules, which he refused to sign, “required [him] to avoid unlawful activity and conduct that was not in the best interest of the public or his rehabilitation.” Id. at 221. Riesch’s parole agent also decided that, because of the nature of his offense, Riesch “needed to reside at an approved halfway house or residence”; again, Riesch refused to cooperate. Id. When Riesch reached his mandatory release date, the DOC initiated a parole hold and transferred him from state prison to a county jail. Id. A week later, Riesch’s parole agent initiated a revocation proceeding, and an ALJ revoked his parole. Id.
Riesch then filed a petition for writ of certiorari, in which he claimed, relying on Olson, that the revocation of his parole was unlawful because he was not released from physical custody upon his mandatory release date and therefore was not a parolee. Id. at 222-23. The Wisconsin Supreme Court disagreed. It held that Riesch’s case was distinguishable from Olson because Riesch, in refusing to cooperate, had “violated the conditions of his parole immediately and simultaneously with his mandatory release date.” Id. at 223. Importantly, the court also wrote:
The holding Riesch seeks today is a bright-line rule that elevates form over substance. He contends that inmates must always be released from physical custody before any revocation is commenced, regardless of whether they have signed parole rules, complied with parole rules, or cooperated with their agent. In essence, he is asking for a ritual where the DOC releases uncooperative inmates just outside the prison walls on their mandatory release dates before subsequently placing parole holds upon them.
In the end, we are mindful that the DOC is not free to hold inmates indefinitely for such problems as failure to find suitable housing on its part. Olson, 233 Wis.2d at 690, 608 N.W.2d 425. However, we also recognize that the DOC has substantial discretionary authority to develop the rules and conditions for release. Macemon I, 208 Wis.2d at 597, [765]*765561 N.W.2d 779. Where inmates violate these terms immediately and simultaneously with their scheduled mandatory release dates, the DOC should be able to maintain continuous custody, even though that person’s status changes from prisoner serving a sentence to a parolee detained on a parole hold.
Id. at 225-26 (emphasis added) (footnote omitted).
The Wisconsin Supreme Court’s reasoning in Riesch confirms that Olson and Allen had not put the- precise situation addressed by AD 02-10 “beyond debate” in Wisconsin. Ashcroft v. al-Kidd, 563 U.S. 731, 741, 131 S.Ct. 2074, 179 L.Ed.2d 1149 (2011). Riesch marked the first time that a Wisconsin court had focused on the inherent conflict between a sex offender’s right to timely release to supervision and the rules and restrictions governing that release. The Wisconsin Supreme Court’s treatment of this dilemma demonstrates that “the right’s contours were [not] sufficiently definite that” the defendants in this case would have been on notice that AD 02-10’s procedure was unlawful. City and Cty. of S.F. v. Sheehan, — U.S. —, 135 S.Ct. 1765, 1774, 191 L.Ed.2d 856 (2015) (internal quotation marks omitted).
Riesch made clear that the DOC’s inability to locate appropriate housing does not afford it a blank check to detain indefinitely an individual set for release from imprisonment. However, the Wisconsin Supreme Court was cognizant of the practical difficulties that can arise when release itself conflicts with the “substantial discretionary authority” that DOC has “to develop the rules and conditions for releasing]” a person to supervision. 692 N.W.2d at 225. Rather than prohibit absolutely the DOC from detaining individuals caught in this predicament, Riesch endorsed a narrow exception: “Where inmates violate these terms immediately and simultaneously with their scheduled mandatory release dates, the DOC should be able to maintain continuous custody.” Id.
Riesch therefore can be read plausibly as acknowledging that, under Wisconsin law, the DOC may “maintain continuous custody” in the unique circumstance where release from imprisonment to a lesser level of restraint would violate the terms of release due to an inability to make practical arrangements for the implementation of that lesser restraint. Id. Here, although Mr. Werner’s probation violation was not, in strict terms, “immediate[ ] and simultaneous[ ],” it was, as a practical matter, an imminent certainty. Id. And although his infraction was not, like Riesch’s, the product of his recalcitrance, releasing Mr. Wer-ner to probation equally would have “elevate[d] form over substance” to require “a ritual where the DOC releases [noncompli-ant] inmates just outside the prison walls on their mandatory release dates before •subsequently” detaining them. Id. To be sure, the length of deferral of release from imprisonment in this case may well have been a fairly aggressive reading .of Riesch.31 However, given the lack of clarity with respect to Riesch’s outer limits, “we cannot say that only someone plainly in[766]*766competent or who knowingly violate[s] the law would have ... acted as [the defendants] did.” Mullenix, 136 S.Ct. at 310 (first alteration in original) (internal quotation marks omitted).
Because clearly established law at the time would not have notified the defendants in this case that the procedures set forth in AD 02-10 were unlawful, we conclude that they are entitled to qualified immunity on Mr. Werner’s claims.
Conclusion
For the foregoing reasons, we affirm the judgment of the district court.
AFFIRMED