Manuscript Offprint

arXiv:2610.30690

From Clinical Judgment to Checkable Rules: Clinician-Led Guardrails for Mental-Health Chatbots

Chenhan Lyu, Kit Wislocki, Sarah Elizabeth Stoeckl, Maitreyi Sinha, Amir Rahmani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) deployed in mental-health contexts can be evaluated for safety failures, but the resulting judgments are often difficult to inspect or explain. Common approaches to improving safety rely on prompt engineering, LLM-as-a-Judge, and Constitutional AI. In this work, we describe a clinician-led alternative in which two clinicians define, finalize, and adjudicate the four safety checks of a rule base, which is formally verified for internal consistency and applied as a guardrail over LLM outputs. Here and in the title, clinician-led refers to this rule base, not to the fact extractor or the uncertainty default, which are ours. Every verdict of the resulting verification layer is recomputable from a named rule and sixteen facts. Against an LLM judge matched in model, revision, quantization, rule text, and decoding but without the layer's computed 988/911 fact, the largest disagreement class, the satisfied-rule class, is structured: the Llama-3.3-70B judge, on its primary prompt, demands a crisis resource from 55 of the 65 replies (84.6%) that already contain one, while the same model, asked as a fact extractor, reports a recognized resource present on 54 of the 55. The verification layer never raises that demand, by construction. We report with equal prominence where this judge is stronger: fewer false crisis alarms on the one reference-scored check. We also report the measured cost (a specification revision raised block-class outcomes on held-out boundary prompts of an over-refusal benchmark from 6.0% to 16.0%, chiefly by changing fact extraction), the clinicians' decision to keep our uncertainty default, and the analysis of the result. The contribution is not a safer verdict. It is a guardrail whose disagreements with the judge localize to named rules and facts and whose measured costs trace to named facts and the uncertainty default.

Keywords: mental health, large language models, safety, guardrails, clinician-in-the-loop, clinical constraints

1. Introduction

Importance: Recent research has assessed large language models' ability to handle crisis situations from a clinical perspective (Arnaiz-Rodriguez et al., 2026). The research found that widely deployed systems make errors in conversations at the crisis edge, and their built-in safety layers cannot effectively catch the harmful responses. In the research, Arnaiz-Rodriguez et al. (2026) conclude their study with calls for establishing modular safety layers upstream of the model. This work responds with a governance question: Can clinicians' safety judgments be turned into machine-verifiable rules while clinicians retain decision authority over the resulting rules?

Challenge: Current approaches to ensuring safety delegate the definition of safe behavior to model developers. For instance, constitutions consist of lists of principles provided by researchers (Bai et al., 2022) and (Lyu et al., 2025). After the output layer, guard models incorporate risk classification systems established by their developers (Inan et al., 2023; Markov et al., 2023). On the application side, programmable guardrails are written by the deploying developers (Rebedea et al., 2023). Even when safety measures take the form of explicit rule lists, these rules are usually formulated by internal developers (Mu et al., 2024).

© 2026 C. Lyu, K. Wislocki, S.E. Stoeckl, M. Sinha & A. Rahmani.

This pattern also appears in safeguards related to mental health and suicide prevention, where risk classification systems are likewise designed by researchers (Qiu et al., 2024). In mental health applications, this model has proven inadequate in real world applications: responses to suicide-related queries fail to differentiate between intermediate risk levels and are inconsistent at those levels (McBain et al., 2025). Deployed applications fail to meet predefined standards of appropriateness responding to suicide-related prompts involving escalating risk and frequently fail to provide correct, region-appropriate emergency contact information without additional prompting (Pichowicz et al., 2025). Companion apps often fail to detect when users are in a mental health crisis—or fail to respond appropriately—based on real-world usage data (De Freitas et al., 2024). Furthermore, current models can still produce responses that are inconsistent with established clinical guidelines, including in high-risk mental-health scenarios (Moore et al., 2025). Consequently, reviews and development roadmaps call for the integration of clinical expertise throughout the development and evaluation of LLM-based mental-health systems, rather than limiting clinical input to post-development evaluation (Stade et al., 2024; Lawrence et al., 2024; Grabb et al., 2024). Even when clinical expertise is incorporated, the nature of the intervention is often limited to retrospective assessment (scoring), while the rules to be enforced remain determined by the developers (Figure 1).

Our Approach: In this work, we propose a checkable verification layer as a guardrail (Figure 1b). Two doctoral trainees in clinical psychology (the clinicians) defined and finalized four safety checks for chatbot responses in mental-health conversations: crisis resources (C1), referral floor (C2), medication boundary (C3), and non-reinforcement (C4). The structured marking (a 19-item double-rated pilot and a 75-item main batch) was reviewed and refined while the four rule questions that emerged during the marking process were closed one by one in a single clinician's written answers. The resulting rule base is formalized over sixteen typed facts and exhaustively verified against seven properties using a satisfiability modulo theories (SMT) solver. At inference time, the same language model used as the judge is repurposed as a fact extractor for the sixteen fact questions, with the sixteenth answer replaced by an exact text match. The rules are then applied deterministically, producing both a verdict and its derivation.

We compare the verification layer with an LLM-as-a-Judge baseline on the same conversations, matching the model, its revision and quantization, the rule text, and greedy decoding, with three repeated trials as a stability control. Unlike the verification layer, the judge does not receive the sixteenth answer computed by exact text match. From here on, deployed, said of our layer, rule text, prompts, or facts, names the configuration we evaluated, not a deployment to users. The result is not that the judge is unstable but it operationalizes the rules differently from the verification layer. These differences occur in both directions, and in some cases its judgment is inconsistent with factual answers produced by the same underlying model under the fact-extraction prompt.

Findings: To sum up our results:

  • With the Llama-3.3-70B judge on its deployed prompt and the layer under its fail-closed default, the two methods agree on the final outcome for 104 of 294 single-turn conversations (35.4%), although the judge is perfectly stable across three repeated greedy runs.

  • The largest disagreement class is structured: on its deployed prompt, the judge demands a crisis resource from 55 of the 65 replies that already contain one, while the same model, asked as a fact extractor, reports a recognized resource present on 54 of the 55 (Section 4).

  • The Llama judge is stronger on the one reference-scored check: fewer false crisis alarms, 28.4% against our 48.1%.

  • On held-out boundary prompts from an over-refusal benchmark, a specification revision, which put the clinicians' rule decisions into the rule text and into an extraction prompt reworded by the team, raised the block-class rate from 6.0% to 16.0%. The rule change accounts for a net 6 of the 50 added block-class outcomes on the deployed facts, and the revised extraction prompt for the rest. The effect localizes to the 56 rows (11.2%) driven off-schema and to the fail-closed uncertainty policy, our default, which the clinicians agreed to keep after its measured cost was put to them.

Figure

(a) The prevailing pattern

(b) This work

Figure 1: Two Types of Clinician Engagement

References (38)