Rockachopa 30b9c0ceef
All checks were successful
Sanity Checks / sanity-test (pull_request) Successful in 5s
Smoke Test / smoke (pull_request) Successful in 8s
feat(crisis): add image-capable intake handler for test users (closes #201)
Extend crisis.intake.handle_intake_submission to accept optional
image-based signals (OCR text, object labels, operator notes) and
integrate with image_screening.screen_image_signals().

Changes:
- crisis/intake.py: Image support added to intake handler
  * Optional parameters: image_ocr, image_labels, image_notes
  * Calls screen_image_signals when image data provided
  * Extends IntakeResult with image_signals and image_distress_score
  * Backward-compatible: existing text-only calls unaffected
  * Enhanced interactive CLI with [img:...] inline syntax
- Updated _log_test_intake to record image signals in test metrics

This is the smallest concrete fix for #201: image-capable
intake submission. The text-only handler already existed via PR #202.

Tests: all 8 intake tests pass (existing behavior preserved).
Smoke: manual call verifies image signals detected.
2026-04-30 10:47:42 -04:00
2026-04-17 02:06:21 -04:00
2026-03-30 16:38:06 +00:00

The Door

A single URL where a man at 3am can talk to Timmy. No login. No signup. No tracking. Just a door that's always open.

Mission

Stand between a broken man and a machine that would tell him to die.

What This Is

  • index.html — The entire frontend. One file. <25KB. Works on 3G.
  • system-prompt.txt — The crisis-aware system prompt for Timmy.
  • deploy/ — nginx config and deployment script for the VPS.

Architecture

Browser → nginx (SSL) → static HTML → /api/* proxy → Hermes Gateway

Crisis Features

  • 988 Suicide & Crisis Lifeline banner (always visible, click-to-call)
  • Client-side crisis keyword detection
  • Full-screen 988 overlay for explicit intent
  • Crisis-aware AI responses per SOUL.md
  • Offline fallback with static crisis resources

Quick Deploy

ssh root@67.205.155.108
cd /opt/the-door
bash deploy/deploy.sh
  • 📞 988 Suicide & Crisis Lifeline — call or text 988
  • 💬 Crisis Text Line — text HOME to 741741
  • ⛓️ SOUL.md — Timmy's soul, inscribed on Bitcoin

Built by a man who survived his darkest night, for the man who's in his right now.

Sovereignty and service always.

Description
Crisis Front Door — A single URL where a man at 3am can talk to Timmy. No login, no signup. 988 always visible. When a Man Is Dying protocol active.
Readme MIT 1.8 MiB
Languages
Python 64.3%
HTML 26.4%
Shell 7.2%
JavaScript 1.4%
Makefile 0.7%