¶1OPINION
¶2Brian Dussault was acquitted of first-degree murder by reason of insanity and committed to the Alaska Psychiatric Institute (APT) in 1984. Superior Court Judge John Suddock conducted several hearings on Dus-sault's request for conditional release from this confinement. The State argues that Judge Suddock should be disqualified from further participation, alleging that he engaged in a series of improper ex parte communications with William Hogan, the Commissioner of the Department of Health and Social Services (DHSS). We conclude that Judge Suddock's ex parte communications were not authorized by law and that these communications created an appearance of impropriety that requires his disqualification from this case.
¶3Background
¶4In 1984, Brian Dussault shot and killed his wife. Dussault was adjudicated not guilty of first-degree murder by reason of insanity and was placed at API in the custody of DHSS. Dussault was conditionally released in 1995 and 1997, but his releases were revoked because he used cocaine in 1995 and absconded after the 1997 release.
¶5Judge John Suddock was assigned to the case in 2008. He conducted annual hearings on Dussault's suitability for release. On February 1, 2008, Judge Suddock conducted an evidentiary hearing on Dussault's renewed motion for conditional release.
I can only decide if conditional release is appropriate in the context of a specific plan....
[[Image here]]
So I can't rule on this thing in a vacuum.... You have to put a package together. But when you do that, I am prepared to move on this. ...
[[Image here]]
... [Glet your ducks in a row and come back and get him into [a residential program in Anchorage]. It's going to take something like that, you know that.
¶6Judge Suddock stated that Dussault's release was contingent upon the approval of a final *438release plan. The State opposed any release of Dussault based on Dussault's lack of progress at API and his flight from the state following his 1997 release. The medical staff from API also objected to Dussault's release because they believed Dussault remained a threat to the community.
¶7After the February 1 hearing, Judge Sud-dock began to conduct status hearings to discuss potential plans and conditions for Dussault's release. At a March 27 hearing, Judge Suddock suggested that the Department of Corrections (DOC) might assume responsibility for Dussault. The State responded that DOC was not willing to voluntarily assume responsibility for Dussault and that DHSS, not DOC, was the agency legally responsible for Dussault.
¶8At a hearing on April 28, Judge Suddock again suggested that he believed "the most practical solution [would be] for [DHSS] to plead on bended knee to its sister agency, the Department of Corrections, and to try to induce an arrangement whereby the probation department monitors him." The judge also noted that he "tried informally and off record to get some involvement of somebody who's willing to assume ... responsibility [for Dussault] in a meaningful way," but the judge stated that he was not "able to get any traction." '
¶9Eventually, at a May 16 hearing, Assistant Attorney General John Bodick told Judge Suddock that he contacted the DOC Director of Probation and Parole, Donna White, and that DOC was not willing to assume responsibility for Dussault. Judge Suddock continued to hold hearings, but Dussault did not make substantial progress toward assembling a comprehensive release plan.
¶10At a hearing on September 5, Judge Sud-dock stated that he would be contacting an assistant attorney general representing DHSS to find someone to participate on behalf of the agency. Neither party objected to Judge Suddock's proposed contact with the attorney general's office.
¶11The following month, Judge Suddock attended the Judicial Conference held in Gird-wood, where the Commissioner of DHSS, William Hogan, was a speaker. Judge Sud-dock approached Commissioner Hogan, informed him of the Dussault proceeding, and asked him to designate a DHSS representative to monitor Dussault's status hearings. Judge Suddock also suggested that DOC might assume responsibility for Dussault pursuant to an interdepartmental agreement.
¶12Following this ex parte contact and prior to the next hearing, there were four e-mail communications between Judge Suddock and Commissioner Hogan.
¶131. November 20, 2008: Judge Suddock contacted Commissioner Hogan in an e-mail entitled "Judge Suddock's conundrum." In this e-mail, Judge Suddock indicated that the relevant statute in Dussault's case "decrees release to a representative of [DHSS]." After informing Commissioner Hogan of the date and time of the next hearing, Judge Suddock told the Commissioner that the court was "in general on a track toward release within months if it proves feasible." Judge Suddock suggested that "[i]t would be helpful to engage with [Commissioner Hogan's] department so [he would not bel blind-sided by developing events." Alternatively, Judge Suddock believed that Commissioner Hogan might want an attorney from the Department of Law (DOL) to attend the hearings.
¶142. November 21, 2008: In his reply to Judge Suddock, Commissioner Hogan indicated that he had been counseled by an assistant attorney general to "not get too involved." Commissioner Hogan did, however, offer to testify in open court.
¶153. November 28, 2008: Judge Suddock emailed Commissioner Hogan to outline the status of the Dussault hearings and to clarify DHSS's involvement in any plan for Dus-sault's conditional release. Judge Suddock went on to state that he preferred to have DOC monitor Dussault:
I feel I would be remiss if I did not alert you to this situation and invite you to monitor it so you are not blind-sided on the eve of any release. It has always seemed to me that a sensible approach would be for [DHSS] to arrange by contract with DOC probation to monitor Dussault, as they do many mentally ill probationers and parolees through a specific program dedicated to case management of difficult men*439tal health cases. I am sure that there are obstacles to such an approach that might require time to overcome. Or perhaps I am not seeing some other reasonable solution.
¶16Judge Suddock did not inform Commissioner Hogan that DOC had already declared that they were not willing to supervise Dussault's release. Given the nature of the proceeding, the judge noted that it would not be "unreasonable" for a DHSS lawyer to attend some or all of the hearings. However, Judge Sud-dock stated, "But I take no position on the matter, other than to note this is a problem that the parties are not addressing, and that will have to be resolved at some point." He further indicated he would copy the parties on the message. The judge concluded by welcoming the Commissioner's reaction to the "unique situation."
¶174. -November 24, 2008: Commissioner Hogan responded by indicating that Judge Sud-dock's November 23 e-mail again raised the issue of DOC's ability to monitor Dussault under contract with DHSS. The Commissioner stated that he would need to consult with DHSS's attorney to obtain guidance.
¶18The court held an additional hearing on November 25, 2008. At the end of the hearing, Judge Suddock disclosed for the first time that he had been in contact with Commissioner Hogan. The judge gave the parties printouts of the string of e-mails from November 20, 21, and 28. Judge Suddock did not disclose the November 24 e-mail from Commissioner Hogan.
¶19Onee the State was apprised of these ex parte contacts, the State filed a motion to disqualify Judge Suddock from further participation in Dussault's case, alleging that Judge Suddock's ex parte communications with Commissioner Hogan created an "appearance of impropriety" that required disqualification under Canon 36 of the Code of Judicial Conduct. Judge Suddock denied the State's motion. Superior Court Judge Michael Spaan was then appointed to determine whether Judge Suddock should be disqualified,
¶20Discussion
¶21There are two sets of legal rules that apply to judicial disqualification. Alaska Statute 22.20.020(a) lists the types of cases in which a judge is statutorily disqualified from acting. Canon 3E(1) of the Alaska Code of Judicial Conduct lists the circumstances when a judge's disqualification is required by standards of ethical conduct.
¶22We review a trial court's decision regarding disqualification for abuse of discretion.
¶23*440Judge Suddock's contacts with Commissioner Hogan were improper.
¶24Alaska's Code of Judicial Conduct bans ex parte communications regarding pending litigation: "A judge shall not initiate, permit, or consider ex parte communications or other communications made to the judge outside the presence of the parties concerning a pending or impending proceeding except as allowed by this Section."
¶25The ex parte communications were not expressly authorized by law.
¶26Canon 83B(T7)(a) indicates that "(al Judge may initiate or consider an ex parte communication when expressly authorized by law to do so.
¶27To conform with Canon 3B(7)(a), a statute must expressly authorize ex parte communications.
¶28The ex parte commumications were not required for administrative purposes.
¶29The second exception to the ban on ex parte communications applies to communications for administrative purposes. "When circumstances require," a judge may engage in ex parte communications "for scheduling or other administrative purposes."
¶30The first issue is whether the "cireum-stances require[d]" the ex parte communications between Judge Suddock and Commissioner Hogan.
¶31The second issue is whether Judge Sud-dock's discussions addressed substantive matters or the merits of the issues litigated. One example of a nonsubstantive administrative communication is where "the sole purpose of the communication is to provide courtesy notification to the parties or to the court of a delay or change in scheduling.
¶32Judge Suddock went beyond the seope of the administrative exception by indicating his preference for DOC monitoring of Dussault. Though Judge Suddock noted DHSS's responsibilities and the status of the case, he also invited "reaction[s]" from Commissioner Hogan on the "unique situation." The title of the e-mail, "Judge Suddock's conundrum," implies that Judge Suddock was contacting Commissioner Hogan with the goal of solving a problem.
¶33Judge Suddock acknowledged that his contacts with Commissioner Hogan were aimed at encouraging the Commissioner to offer a second opinion on whether DOC might assume responsibility for Dussault. In his order, Judge Suddock noted that DOC Director of Probation and Parole Donna White had announced that DOC was not willing to assume responsibility for supervising Dus-sault's release. But the judge openly criticized White's decision, and he hinted that Commissioner Hogan might be able to convince White's supervisors to override her decision: "While [Director White's] response may be astute, it may also be the type of small-bore thinking that her more flexible supervisors would override." Rather than simply providing a "courtesy notification" regarding the hearing schedule, or a similar administrative communication, Judge Sud-dock went beyond the seope of the administrative exception and solicited feedback on these substantive matters.
¶34The third issue is whether Judge Suddock took "reasonable steps to notify all other parties promptly of the substance of the ex parte communication."
¶35The final issue is whether Judge Suddock allowed the State an opportunity to respond. *442Judge Suddock indicated at an April hearing that he had been acting informally to try to get other parties involved. And at a September hearing, Judge Suddock mentioned that he would try to contact an assistant attorney general representing DHSS. But Judge Suddock's statement indicated the court would contact a DHSS attorney, not that the court would ask Commissioner Hogan to intervene in an attempt to convince DOC to monitor Dussault. Judge Suddock never told the parties that he intended to personally contact the commissioner of DHSS for input nor did he give the prosecutor an adequate opportunity to respond.
¶36We conclude that Judge Suddock's communications with Commissioner Hogan were neither authorized by law nor allowed by the exception for administrative purposes.
¶37These ex parte communications created an appearance of partiality.
¶38As noted above, the disqualification statute and the Code of Judicial Conduct require a judge to be disqualified from any proceeding when the judge's participation creates an appearance of partiality. An appropriate test for the appearance of partiality is suggested by the commentary to Canon 2A; "The test for appearance of impropriety is whether the conduct would create in reasonable minds a perception that the judge's ability to carry out judicial responsibilities with integrity, impartiality, and competence is impaired."
¶39This test is consistent with the reported cases in disqualification and disciplinary matters. In one case, a district court judge wrote to the commissioner of the Department of Public Safety regarding the driver's license of a defendant who had been convicted of driving while his license was suspended.
¶40In another case, a district court judge passed a note to an Alaska State Trooper regarding his testimony about the terms of a domestic violence restraining order.
¶41In a third case, a judge's law clerk leaked a bench memorandum to a prosecutor along with an ex parte note suggesting that she was motivated by her favoritism toward the prosecution.
¶42Additionally, the Commission on Judicial Conduct found an appearance of impropriety where a judge sought legal advice about a pending matter from the head of the state office responsible for handling litigation on that legal issue, even though the judge subjectively believed the individual was a "disinterested expert."
¶43In this case, Judge Spaan concluded that a reasonable person would view the proceedings at the time of the State's motion as "akin to a 'problem solving'" session where "the adversary element of the proceedings had given way to the universally held inter*443est of constructing release conditions that protect the public while still affording Dus-sault his rights and advancing bis treatment." Judge Spaan reasoned that the communications did not address the substance of a matter still at issue before the court and instead only served to widen the scope of government participation in the hearings.
¶44We disagree. At the time of the communications, Judge Suddock was aware that the staff of API (employees of DHSS) opposed Dussault's release and that Dussault had yet to propose a viable plan for his release or monitoring. The judge was also aware that DOC representatives had declared that they had no legal responsibility to supervise Dus-sault's release and had declined to supervise Dussault voluntarily. The judge's communications with Commissioner Hogan suggested that the judge wanted the commissioner to convince DOC to supervise Dussault (contrary to the "small bore thinking" of Director White that had been presented in court). These communications created a reasonable appearance of partiality. Based on these ex parte communications a reasonable person would conclude that Judge Suddock had compromised his role as impartial judge of Dus-sault's proposals for supervised release and had become an advocate for Dussault's release.
¶45Conclusion
¶46We conclude that Judge Spaan should have granted the State's motion for disqualification. We REVERSE the order denying the motion and REMAND for assignment of another judge.
¶47. AS 12.47.092 outlines the "[pJrocedure for conditional release":
(a) A defendant committed to the custody of the commissioner of health and social services under AS 12.47.090(b) or (c) may be conditionally released from confinement subject to the conditions and requirements for treatment that the court may impose, and placed under the supervision of the Department of Health and Social Services, a local government agency, a private agency, or an adult, who agrees to assume supervision of the defendant.
¶48. See AS 22.20.020(c).
¶49. See generally Marla N. Greenstein, Judicial Disqualification in Alaska Courts, 17 Alaska L.Rev. 53, 71 (2000) ("Although the Alaska Code of Judicial Conduct is only directly enforceable through judicial disciplinary proceedings conducted by the Alaska Commission on Judicial Conduct, it provides guidance to judges in interpreting their ethical obligation to disqualify and has been used by the courts to enhance interpretation of the disqualification statute's full meaning and intent.").
¶50. See Pride v. Harris, 882 P.2d 381, 385 (Alaska 1994) (incorporating the language of former Canon 3C(1)(a)); Perotti v. State, 806 P.2d 325, 327 (Alaska App.1991).
¶51. Amidon v. State, 604 P.2d 575, 577 (Alaska 1979).
¶52. Alaska Trams Corp. v. Alaska Elec. Light & Power, 743 P.2d 350, 353 (Alaska 1987); see also Amidon, 604 P.2d at 577 (noting that the reviewing court may not overturn the decision of the trial court unless "it is plain that a fair-minded *440person could not rationally come to that conclusion on the basis of the known facts").
¶53. Alaska Code Jud. Conduct Canon 3B(7).
¶54. Alaska Code Jud. Conduct Canon 3B(7)(a).
¶55. Alaska Code Jud. Conduct Canon 3B(7)(b).
¶56. Alaska Code Jud. Conduct Canon 3B(7)(a).
¶57. AS 12.47.092(a).
¶58. AS 12.47.092(b).
¶59. Cook v. State, 36 P.3d 710, 727 (Alaska App.2001) (noting that because the statute authorizes ex parte applications for temporary restraining orders, "it would appear that Judge Savell did not violate Canon 3(B)(7) when he heard K.A.B.'s ex parte petition for a 20-day restraining order").
¶60. Alaska Code Jud. Conduct Canon 3B(7)(b).
¶61. Alaska Code Jud. Conduct Canon 3B(7)(b) (authorizing ex parte communications for administrative purposes "when circumstances require").
¶62. Alaska Code Jud. Conduct Canon 3B(7)(b).
¶63. See, eg., United States v. Nguyen, 262 F.3d 998, 1004 (9th Cir.2001) (suggesting that for an inquiry with a party regarding the substitution of counsel to be adequate, the "court should question the attorney or [the] defendant 'privately and in depth'" (quoting United States v. Moore, 159 F.3d 1154, 1160 (9th Cir.1998))); Thompson v. State, Mem. Op. & J. No. 4715, 2003 WL 21279425, at *4 (Alaska App. June 4, 2003) (holding that a judge's ex parte questioning of the defendant about a substitution of counsel issue was appropriate under the circumstances).
¶64. Alaska Code Jud. Conduct Canon 3B(7)(b) crat. para. 8.
¶65. Alaska Code Jud. Conduct Canon 3B(7)(b)(iii).
¶66. Alaska Code Jud. Conduct Canon 3B(7) emt. para. 9.
¶67. Alaska Code Jud. Conduct Canon 2A cmt.; see Keller v. State, 84 P.3d 1010, 1012 (Alaska App.2004) (noting that this test applies to the appearance of impartiality).
¶68. In re Robson, 500 P.2d 657, 663-64 (Alaska 1972) (holding that there was an appearance of partiality when a judge wrote a letter to the Commissioner of Public Safety on behalf of a motorist charged with driving with a suspended license), disapproved of on other grounds, In re Inquiry Concerning a Judge, 788 P.2d 716, 722 n. 8 (Alaska 1990) (holding that the court must independently evaluate the evidence in a judicial conduct case).
¶70. In re Cummings, 211 P.3d 1136, 1138 (Alaska 2009).
¶72. Vaska v. State, 955 P.2d 943, 944 (Alaska App.1998).
¶73. Id. at 945-46,
¶74. Alaska Comm'n on Jud. Conduct, Formal Op. No. 15 (1992).