CI / ruff · pytest (pull_request) Successful in 1m3s
- app/scheduler/demo.py: run_until(now) replays due and fresh events in time order: dose rows + med_reminder, missed after 2 h without an answer → monitoring, daily_checkin, scale_due by the config/modules.yaml schedules, daily monitoring pass (silence, missed doses) → reach_out/scale_due - idempotent via scheduler_events (unique token+key); stale events are not sent; no contact without consent or during an open crisis - config/scheduler.yaml: times and windows; runs while the questionnaire release is off - POST /demo/clock/advance replays the scheduler up to the new time Refs #13 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
config/
Конфигурация клинической логики (ADR-008). Схемы задаёт зона core, значения утверждает психиатр (clinical).
scales/— шкалы: пункты, варианты, градации, флагиrules.yaml— правила алертов и действийmodules.yaml— модули и расписания шкалlexicon/risk_ru.yaml— лексикон рискаtexts/— тексты для пациента (кризисный скрипт, согласие, перефразировки)