arXiv
Mental-health chatbot blocks show their rules and assumptions
Mental-health chatbot safety can become inspectable when clinical judgments are turned into rules whose facts and assumptions can be checked. Two clinicians defined four checks, and the system applied them to 16 extracted facts. In an app’s review console, a clinician could see and challenge the assumption behind a blocked reply, if the extraction and rules have been validated for that setting.
A mental-health chatbot can refuse a message without showing why. Its developer may know only that the reply was blocked or allowed, not which judgment caused the decision. For someone asking an ordinary health question, the same caution can feel like a dead end: uncertain context is treated as danger, and the user is redirected or refused.
From a verdict to a trail
Many safety filters produce a label—safe, unsafe, or refuse—without exposing the steps in between. That makes a failure difficult to inspect. Was the conversation misunderstood? Was the rule too strict? Or did the system apply a reasonable rule to a bad description of what the user said?
The new approach separates those questions. An AI model first extracts facts from the conversation. A rule system then uses those facts to decide what to do. Formal verification can check whether the rule system follows its stated rules. It cannot show that the rules are clinically sufficient, or that the model extracted the facts correctly.
The distinction matters especially in mental health. Risk may depend on context spread across several messages, while this system checks independent, single-turn conversations. Its fail-closed policy also treats uncertainty cautiously: an uncertain crisis signal counts as present, while an uncertain referral counts as absent. That may catch a missed danger, but it can also create an unnecessary block.
Clinicians write the checks
Two clinicians defined and finalized four checks. The system must provide crisis resources, refer the user to a licensed professional when required, avoid giving unsafe medication instructions, and avoid reinforcing self-harm or disordered-eating behavior.
The rules run on 16 facts. An LLM extracts 15 of them from the conversation. The system calculates the sixteenth—the literal presence of 988 or 911—by looking for those exact characters in the text. Each verdict can therefore be connected to a named fact, an assumption about uncertainty, and a specific rule, rather than remaining a single opaque model decision.
A Z3 SMT solver proved seven properties of the rule base. The researchers also checked every one of 393,216 valid combinations of facts. This means the rules did not contradict themselves in the ways tested. It does not mean the facts were right, or that the four checks cover everything a clinically safe reply needs.
In 294 single-turn conversations, the verification layer agreed with a separate Llama-3.3-70B judge on only 35.4% of final outcomes. That disagreement is not automatically a failure: the two systems may have made different mistakes. On a reference-scored crisis-resource check, the judge raised fewer false alarms—23 of 81 items, compared with 39 of 81 for the rule layer. Both missed two of 13 known violations.
The source of some false alarms was visible. The judge demanded crisis resources in 55 replies that already contained 988 or 911. The same model recognized a resource in 54 of those 55 replies when it was used as the fact extractor. A trace can reveal that the problem was not the written rule, but the model’s description of the conversation.


A safer-looking refusal still has a cost
The researchers revised the specification and tested it on 500 health-boundary prompts. The share receiving a block-class outcome rose from 6.0% to 16.0%. Fifty-six prompts passed unchanged, 364 received an added referral, and 80 were blocked or placed in the block class.
That result makes the trade-off concrete. A cautious policy can intervene when a genuine crisis signal is correctly extracted. But ordinary users can also pay for uncertainty through a referral or refusal. The authors say the evaluated layer is not ready for deployment to users.
In a mental-health app’s review console, a clinician could see that a reply was withheld because distress was marked undetermined and the policy treated it as high. They could challenge that assumption instead of guessing why the AI blocked the message. Before that scene is safe, the extraction questions, local emergency resources, clinical rules, and uncertainty policy must work for the country, language, and multi-message setting where the app operates. The study covers only two participating clinicians, one LLM extractor, US-specific crisis resources, and independent single-turn conversations.