Files
eb5c14ce1a feat(cat): the Cat keeps a routine (#1841)
"Every morning at 8, send me the weather in Zurich" made the Cat propose a
project (live, 2026-11-15): it had no recurring action. Now:

- cat_routines (new migration, RLS: a routine is its owner's): instruction,
  time of day, zone, days of the week, enabled, next/last run.
- Cat actions routine_add (confirmed), routine_list, routine_remove, with
  summaries, card descriptions, chip labels and handlers. routine_add says
  NOT create_project and create_project points back at it.
- A routine ask is recognised in code before the model (turn/in-code.ts):
  the model is told to propose routine_add, and the turn is not mailed,
  written to the calendar or answered now.
- The runner runs on the routines timer (every 15 minutes), once a day per
  routine in the owner's zone, never hours late. The answer is worked out in
  code first (weather, bitcoin price, sum, calendar, list); a model only on
  the owner's own key. Delivered as the Cat in Messages, and Telegram via Loki.
- Weather from Open-Meteo (keyless, timeout, CC BY 4.0 attribution), as a
  pre-read used by chat and routines.


Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-21 18:21:28 +01:00
..