Legal & Compliance

Competency restoration treatment and cloud AI scribes: IST clients, forensic hospital notes, and the hybrid legal-clinical record

Clinicians who treat incompetent-to-stand-trial defendants in forensic hospitals occupy a distinctive dual role: they are providing mental health treatment, and they are mandated by statute to report on that treatment's progress to the court that ordered the commitment. A cloud AI scribe used in this context creates a verbatim vendor archive that exists outside and beneath the formal court progress report — separately subpoenable in competency hearings, criminal trials, Sell v. United States proceedings, and civil commitment conversions. That vendor archive is not fully addressed by a HIPAA business associate agreement.

2026-06-20 ~2,550 words · 12 min read Legal & Compliance

Competency to stand trial: what IST means and what restoration is

The constitutional standard for competency to stand trial was established by the Supreme Court in Dusky v. United States, 362 U.S. 402 (1960): the trial court must assess "whether [the defendant] has sufficient present ability to consult with his lawyer with a reasonable degree of rational understanding — and whether he has a rational as well as factual understanding of the proceedings against him." A defendant who cannot meet the Dusky standard — most commonly because of an active psychotic disorder, severe intellectual disability, or other condition that impairs understanding and rational participation — is found incompetent to stand trial (IST) and cannot be tried while that condition persists.

The legal consequence of an IST finding is commitment to a forensic psychiatric hospital or inpatient treatment program for restoration treatment — treatment aimed at bringing the defendant's condition to a level that permits meaningful participation in the proceedings. The duration of that commitment is constrained by the Supreme Court's holding in Jackson v. Indiana, 406 U.S. 715 (1972), which established that a defendant cannot be committed for restoration indefinitely; if restoration to competency is unlikely to be achieved within the foreseeable future, the defendant must be released or committed through civil commitment standards. Most states translate the Jackson limits into specific statutory maximum restoration periods, typically ranging from 12 months to the maximum sentence for the charged offense.

Restoration treatment is substantively different from a competency evaluation. A competency evaluation — conducted by a forensic examiner — is a time-limited, structured assessment that produces an expert opinion on the defendant's current competency. For a detailed discussion of the cloud AI scribe documentation considerations in forensic evaluations, see our analysis of forensic psychology evaluations and cloud AI scribes in criminal proceedings. Restoration treatment is an ongoing therapeutic relationship: the treating clinician provides medication management, psychoeducation about court processes, cognitive rehabilitation, substance abuse treatment, and other interventions over weeks or months — creating a continuing record of the defendant's response to treatment, symptom fluctuations, and developing understanding of their legal situation.

The Sell v. United States layer adds further legal complexity: if the defendant refuses medication and forcible administration is sought to restore competency, the court must make specific findings on a four-factor test — that the treatment is medically appropriate, that an important governmental interest is at stake, that the medication will significantly further that interest, and that the medication is necessary and that less intrusive alternatives are inadequate (539 U.S. 166 (2003)). The treatment sessions during a contested Sell proceeding are potential evidence in the involuntary medication hearing.

The mandatory court-reporting obligation and the hybrid record

What makes competency restoration treatment legally distinctive — compared to ordinary inpatient or outpatient mental health treatment — is that the treating clinician is legally required to report on the defendant's restoration progress to the court that ordered the commitment. State statutes vary in their specifics, but most require periodic restoration progress reports at intervals of 60 to 90 days, submitted to the court, the prosecution, and the defense. These reports typically must address whether the defendant has been restored to competency, the defendant's current clinical status, the treatment being provided, the defendant's response to treatment, and a prognosis for restoration.

This mandatory reporting obligation means that treatment records in a competency restoration context have a statutory discovery pathway built into the legal process from the beginning. The prosecution and defense both receive the court progress reports; the court reviews them. This is fundamentally different from ordinary therapy records, where the treatment relationship is confidential and records enter legal proceedings only through specific discovery mechanisms. In the restoration context, the clinician is expected to report to the court — that is part of the statutory framework within which the treatment is taking place.

But the mandatory court progress report and the treatment record are not the same document. The progress report is the clinician's formal summary: the clinician's assessment of the defendant's current competency-relevant functioning, the clinician's opinion on restoration progress, and the clinical basis for that opinion. The treatment record — particularly if a cloud AI scribe is being used — contains the verbatim content of every treatment session: what the defendant said about their symptoms, their understanding of their charges, their experience on medication, their statements about the underlying offense, their moment-to-moment fluctuations in insight and orientation. The court progress report is what the clinician chose to include; the vendor's archive is everything that happened.

HIPAA's court-ordered treatment exception at 45 CFR § 164.512(e) permits the covered entity — the forensic hospital or the treating clinician — to disclose records in response to a court order without patient authorization. This exception applies to the covered entity's disclosures. It does not govern what the cloud AI scribe vendor — a commercial third party holding its own independently retained verbatim archive of treatment sessions — must do when confronted with a criminal subpoena directed at the vendor. For an overview of what a HIPAA business associate agreement does and does not cover, see our BAA analysis.

What cloud AI scribes capture in restoration treatment sessions

The content of competency restoration treatment sessions is among the most legally sensitive material that any clinician is likely to document. The nature of the treatment — preparing the defendant to understand and participate in criminal proceedings — means that treatment sessions regularly contain content that is directly relevant to the pending criminal case.

Psychoeducation and developing competency

Restoration treatment typically includes systematic psychoeducation about the court process: what the charges mean, what the roles of the judge, prosecutor, and defense attorney are, what a guilty plea involves, what the defendant's rights are. A cloud AI scribe capturing these sessions retains the defendant's real-time responses to psychoeducation — their questions, their initial misunderstandings, their gradually improving or persistently impaired grasp of the proceedings. This is, in one sense, exactly what the court progress report is supposed to summarize — but the vendor's verbatim record captures a moment-by-moment account of the defendant's developing understanding that the clinician's summary report compresses and interprets.

Medication management disclosures

Most competency restoration treatment involves medication management for the psychotic, mood, or cognitive conditions that are impairing the defendant's competency. The defendant's reports in treatment sessions about medication effects, side effects, adherence, and their own experience of symptom improvement or persistence are treatment-relevant content that a cloud AI scribe retains verbatim. In a contested Sell proceeding, the defendant's own statements about the medication — their willingness or refusal, their characterization of the medication's effects — may be relevant to the court's analysis of whether forcible administration is appropriate. For broader context on medication management documentation in AI-scribed sessions, see our post on psychiatric medication management documentation and AI scribes.

Statements about the underlying offense

Competency restoration treatment is not a forensic evaluation, and the treating clinician's role is therapeutic, not investigative. Nevertheless, defendants in treatment often discuss the events that led to the charges — their perspective on what happened, their memory of the events, their emotional and cognitive state at the time. These disclosures occur in the context of a therapeutic relationship, but the cloud AI scribe vendor's archive retains them as part of the verbatim session record. The defendant's own words about the alleged offense, captured contemporaneously before any trial preparation or legal strategy, are potentially significant evidence.

Insight fluctuations and symptoms

Restoration treatment involves ongoing documentation of the defendant's mental state across sessions — the granular, session-by-session account of symptom fluctuation, insight, orientation, and response to treatment. This is precisely the type of clinical data that the court progress report summarizes at the level of "the defendant shows improving/stable/declining competency-relevant functioning." The vendor's archive contains the underlying observations: which sessions the defendant was floridly psychotic versus organized, what the defendant said in each session about their mental state, how the clinician characterized the defendant's presentation in real time versus in the formal report submitted to the court.

Five adversarial proceedings that can reach the vendor archive

1. Competency hearing after restoration

When the treating clinician submits a restoration progress report opining that the defendant has been restored to competency, a competency hearing may follow — particularly if the defendant, defense counsel, or prosecution contests the restoration opinion. In that hearing, the treating clinician's basis for the restoration opinion is at issue. The vendor's verbatim session archive is the empirical foundation beneath the formal progress report — the session-by-session record from which the clinician distilled their opinion. A party challenging the restoration opinion has strong incentive to seek the underlying verbatim record: it may show that the defendant's apparent competency was inconsistent across sessions, that the defendant's understanding was more fragile than the progress report indicated, or conversely that the defendant was consistently presenting competency-consistent understanding before the formal evaluation. The vendor's archive is separately subpoenable as a business record.

2. Criminal trial after restoration

Once restored to competency and returned to stand trial, the defendant faces criminal proceedings in which treatment records from the IST period may become relevant evidence. The defendant's statements in treatment about the underlying offense — what happened, their mental state at the time, their memory of the events — are contemporaneous first-person accounts made before any trial preparation or attorney coaching. The Supreme Court's holding in Estelle v. Smith, 451 U.S. 454 (1981), established Fifth Amendment limits on using statements from court-ordered psychiatric examinations in the guilt or penalty phases — but the analysis for treatment statements made during voluntary restoration participation involves different considerations, and the law varies by jurisdiction and fact pattern. The vendor's verbatim archive extends the record of potentially trial-relevant statements well beyond what the treating clinician's formal notes contain. For broader analysis of the cloud AI scribe subpoena exposure in clinical contexts, see our post on therapy note subpoenas.

3. Daubert or Frye reliability challenge to the restoration opinion

Expert testimony on competency restoration is subject to reliability challenges under the applicable expert evidence standard — Daubert v. Merrell Dow Pharmaceuticals (federal) or the Frye general acceptance standard in states that apply it. A party challenging the treating clinician's restoration opinion on reliability grounds may seek the underlying session records to establish that the clinician's assessment methodology was unsound: that the clinician's opinion diverged from the session-by-session observations without adequate explanation, that the defendant's demonstrated competency in formal assessment contexts was inconsistent with the defendant's functioning in treatment sessions, or that the clinician's documentation practice was inconsistent with the opinion offered. The vendor's archive — as the most complete contemporaneous record of treatment sessions — is the primary evidentiary resource for this type of reliability challenge.

4. Jackson v. Indiana civil commitment conversion

If the defendant cannot be restored to competency within the statutory maximum period derived from Jackson v. Indiana, the state must either release the defendant or pursue civil commitment under standards applicable to civil (non-criminal) commitment — most commonly a showing of mental illness combined with dangerousness to self or others. The civil commitment hearing draws on the defendant's treatment history: what the treating clinician tried, how the defendant responded, what the defendant's current condition is, and what the prognosis for improvement is. The vendor's verbatim archive of treatment sessions — including the defendant's statements about symptoms, medication effects, and their understanding of their situation — is the detailed underlying record of the treatment history that the civil commitment proceeding will examine. Civil discovery rules governing commitment proceedings vary by state but typically permit subpoena of records from third-party custodians. The vendor, as a commercial business holding records relevant to the commitment hearing, may be independently subpoenable under state civil commitment discovery authority.

5. Sell v. United States involuntary medication hearing

When a defendant refuses medication and the government seeks a court order for forcible medication to restore competency, the four-factor Sell analysis requires evidence about the defendant's response to treatment, the medical appropriateness of the proposed medication, and whether less intrusive alternatives have been tried. The defendant's treatment history — including what occurred in treatment sessions regarding medication — is directly at issue. The defendant's own statements in treatment about their experience with medication (whether they found it beneficial, what side effects they experienced, whether they refused and why) are relevant to the court's assessment of medical appropriateness and the viability of less intrusive alternatives. The vendor's verbatim archive of medication management sessions provides a more complete factual record than the treating clinician's formal medication notes.

The gap between the court progress report and the vendor archive

The court progress report is a professional document prepared by a licensed clinician exercising clinical and legal judgment about what to include. The clinician's documentation training — and, in the forensic context, specific awareness of the court-reporting obligation — shapes what goes into the formal report. A progress report that the clinician submitted to a criminal court is written with knowledge that the prosecution, defense, and judge will read it. The clinician's language reflects that context.

The cloud AI scribe's verbatim capture of treatment sessions does not involve any of that clinical or legal filtering. The vendor's archive records what the defendant actually said — including content that the clinician assessed as clinically relevant but not court-report appropriate, questions the defendant asked that revealed confusion or awareness the progress report's summary obscures, statements about the offense or the defendant's mental state at the time of the offense that the clinician noted but did not include in the formal report, and expressions of insight or its absence that the clinician's formal assessment language does not fully capture.

Investigators or attorneys who learn that a cloud AI scribe was used in the forensic hospital's treatment program can seek the vendor's records as an independent evidence source. For an overview of what vendors typically retain and how that retention practice creates separately subpoenable records, see what cloud AI scribes actually send to their servers. The vendor's records in this context are commercial business records — transcription and AI inference records generated by a software service — and may not carry the same privilege protections as the forensic hospital's formal clinical records. The privilege analysis for the vendor's records — whether they fall within the scope of the psychotherapist-patient privilege recognized in Jaffee v. Redmond, 518 U.S. 1 (1996), or are characterized as third-party commercial records outside that privilege — is jurisdiction-specific and, as of 2026, largely unresolved for AI documentation services in criminal proceedings.

On-device processing and the restoration context

When an on-device AI scribe is used in forensic hospital restoration treatment, the vendor receives nothing: no audio, no transcript, no AI-derived clinical note. The treatment session content remains on the clinician's device; the only records generated are the formal clinical notes that the clinician creates from the device's local AI output. There is no separately subpoenable commercial vendor archive.

In a competency restoration context, the effect of eliminating the vendor archive is specific to each of the five adversarial proceedings described above:

The forensic hospital's formal clinical records, the court-ordered evaluations, and the mandatory court progress reports all continue to exist — they are the records that the legal process requires to exist, and they are governed by the legal frameworks applicable to forensic hospital records. What on-device processing eliminates is the commercial vendor layer: the separately held verbatim archive that exceeds the formal record and that exists outside the forensic hospital's institutional control.

Practical implications for forensic hospital clinicians

Clinicians providing competency restoration treatment in forensic hospitals are operating in a context where the relationship between treatment records and legal proceedings is unusually close. Several practical observations follow:

Recognize the dual role. The treating clinician in a forensic hospital restoration program is simultaneously a therapeutic provider and a mandatory court reporter. The documentation practice appropriate for this context needs to account for both roles — and for the possibility that the vendor's verbatim record of treatment sessions will be pursued as an evidence source separate from the formal court progress report.

Understand the court-ordered treatment exception's scope. HIPAA's 45 CFR § 164.512(e) exception for court-ordered treatment governs the covered entity's disclosures. It does not create a blanket privilege for all records associated with the treatment, and it does not govern what the cloud AI scribe vendor — a separate commercial entity — must do in response to criminal discovery demands. The forensic hospital's HIPAA compliance framework does not extend to cover the vendor's separately held records.

Evaluate vendor documentation of legal process responses. Most cloud AI scribe BAAs are written for ordinary clinical practice and do not address how the vendor will respond to criminal subpoenas in the IST context — whether the vendor will notify the clinician and provide an opportunity to seek a protective order, what privilege assertions the vendor will make, or whether the vendor treats its session records as covered by psychotherapist-patient privilege. Forensic hospital programs that use cloud AI scribes should specifically inquire about vendor legal process response policies in criminal proceedings.

Assess the privilege analysis in your jurisdiction. The psychotherapist-patient privilege recognized in Jaffee v. Redmond applies in federal court and in most states. Whether that privilege extends to a cloud AI scribe vendor's verbatim session archives — as opposed to the formal records created by the treating clinician — is an open question that courts in the IST context have not yet definitively resolved. The answer may differ in federal versus state criminal proceedings and across states. Consult with forensic hospital counsel and your institution's privacy officer about the jurisdiction-specific privilege analysis before adopting cloud AI scribing practices in restoration treatment.

Frequently asked questions

Does HIPAA protect forensic hospital treatment records from subpoena in criminal proceedings?

HIPAA provides partial protection. The covered entity — the forensic hospital or the treating clinician — may disclose treatment records pursuant to a court order without patient authorization under 45 CFR § 164.512(e). But HIPAA's protections govern the covered entity's disclosures; they do not directly govern what the cloud AI scribe vendor — a separate commercial entity with its own independently retained verbatim archive — must do in response to a criminal subpoena directed at the vendor. The vendor's response to legal process is governed by the vendor's policies, its BAA, and applicable law for commercial third-party business records.

Can a prosecutor or defense attorney subpoena the cloud AI scribe vendor's session archives from an IST client's treatment?

In principle, yes — subject to applicable privilege analysis in the specific jurisdiction. Rule 17 of the Federal Rules of Criminal Procedure and state criminal subpoena equivalents reach third-party business record custodians. Whether the vendor's records are protected by psychotherapist-patient privilege turns on how the court characterizes them: as an extension of the clinician's privileged treatment relationship, or as separately held commercial records that the vendor holds in its own right. If a court characterizes the vendor's records as commercial business records outside the scope of the psychotherapist-patient privilege, they are potentially producible without the defendant's consent.

How does the mandatory court progress report requirement affect the vendor's records?

The mandatory court progress report is the clinician's formal summary of restoration progress — it reflects professional judgment about what to include. The cloud AI scribe vendor's verbatim archive contains the underlying session content from which that judgment was distilled, including content the clinician did not include in the court report. The mandatory reporting obligation creates a known discovery pathway for the formal report. It does not create a corresponding protection for the vendor's more complete verbatim session archive. A prosecutor or defense attorney who learns about the cloud AI scribe vendor can pursue the vendor's records as a separate evidence source that goes beyond what the court progress report summarizes.

What is the difference between a competency evaluation and competency restoration treatment documentation?

A competency evaluation is a time-limited forensic assessment — a structured evaluation conducted by a forensic examiner to render an expert opinion on the defendant's current competency. Restoration treatment is an ongoing therapeutic intervention — an extended clinical relationship aimed at improving the conditions that impair the defendant's competency. The treating clinician creates treatment notes across many sessions; the forensic evaluator creates a formal evaluation report from a structured assessment. Both are relevant in legal proceedings, but they involve different roles, different documentation frameworks, and different discovery considerations. The cloud AI scribe vendor archive in a restoration treatment context spans many sessions of treatment content; the evaluator's records reflect a structured evaluation process.

Does on-device AI processing eliminate the vendor archive risk in a forensic hospital context?

On-device processing eliminates the vendor's possession of session content, removing the separately subpoenable commercial vendor archive from each of the adversarial proceedings described in this article. The formal court progress reports continue to be submitted to the court as required by statute, and the forensic hospital's medical records continue to exist. What is eliminated is the cloud AI scribe vendor's verbatim session archive — the more complete account of treatment sessions that goes beyond what the progress report summarizes. Without a vendor archive, subpoenas directed to the vendor cannot reach content the vendor never received. The residual documentation risk — the treating clinician's formal treatment notes and the hospital's medical records — is governed by the forensic hospital's established record-keeping framework and the court's authority over records in the pending criminal proceeding.