crisis/metrics.py: CrisisMetrics class — aggregate crisis detection metrics Privacy-first: stores only counts, never user content Daily JSONL files in ~/.the-door/metrics/ get_summary(days) → AggregateMetrics get_report(days) → human-readable report get_json(days) → JSON export CLI: python3 -m crisis.metrics --summary/--json crisis/__init__.py: Export CrisisMetrics, AggregateMetrics Makefile: make metrics → summary report make metrics-json → JSON export tests/test_crisis_metrics.py: 6 tests record_session, summary, report, JSON export
Merge PR #74 (squash)
- Add hermes-gateway.service with restart=always and security hardening - Integrate service setup into deploy.sh - Add --service flag for standalone install - Add make service target Resolves #2