Files
the-door/crisis/PROTOCOL.md

53 lines
2.0 KiB
Markdown
Raw Normal View History

# Crisis Response Protocol
## Purpose
Stand between a broken man and a machine that would tell him to die.
This protocol governs how the-door detects crisis signals in user input and how Timmy responds. It is the highest-priority system in the entire application.
## Detection Tiers
| Tier | Signal | Action |
|------|--------|--------|
| LOW | General sadness, life is hard | Acknowledge, stay warm, keep conversation open |
| MEDIUM | Hopelessness, no point in anything | Check in, surface help resources, increase presence |
| HIGH | Active despair, mentions of death or ending | Ask "Are you safe?", show 988 banner, activate crisis panel |
| CRITICAL | Explicit intent, plan, imminent risk | Full-screen overlay, 988 primary, interrupt conversation |
## Response Protocol
### At CRITICAL Level
1. **Interrupt** — stop normal conversation flow immediately
2. **Ask directly**: "Are you safe right now?"
3. **Provide 988** — Suicide & Crisis Lifeline, call or text
4. **Provide 741741** — Crisis Text Line, text HOME
5. **Stay present** — do not disconnect, do not disconnect, do not disconnect
6. **Redirect** — guide toward professional help while remaining alongside them
### At HIGH Level
1. Activate the crisis panel (inline)
2. Ask about safety
3. Surface 988 number prominently
4. Continue conversation with crisis awareness
### At MEDIUM Level
1. Increase warmth and presence
2. Subtly surface help resources
3. Keep conversation anchored in the present
### At LOW Level
1. Normal conversation with warm undertone
2. No crisis UI elements needed
3. Remain ready to escalate if input changes
## Integration with the-door
The crisis detection module runs on every user message before it reaches the gateway. Detection results are passed to the AI as a system context flag. The frontend receives the tier level and adjusts UI accordingly.
## Resources
- 📞 988 Suicide & Crisis Lifeline — call or text 988
- 💬 Crisis Text Line — text HOME to 741741
- 🌐 findahelpline.com