Scheduler and notices

Scheduler: core vs plugin

Notices and tasks

Jobs (reminders, recurring work, alarms)

GET    /v1/jobs                             list scheduled jobs (with ring, sound, event_id, next_run_local)
POST   /v1/jobs                             set an alarm or reminder without the model (see below)
GET    /v1/jobs/{id}                        one job
PATCH  /v1/jobs/{id}                        change it: text|label, at|time, in_minutes, days, every ("once" stops repeating), weekday, ring, sound
DELETE /v1/jobs/{id}                        cancel a job
GET    /v1/alarms/ringing                   what is ringing now
POST   /v1/alarms/snooze                    {id?, minutes?}  stop the ring, ring again later (default 9 min)
POST   /v1/alarms/dismiss                   {id?}  stop the ring
GET    /v1/sounds                           built-in names plus custom ringtones
PUT    /v1/sounds/{name}                    upload a ringtone: the raw mp3, ogg, wav or m4a file, at most 3 MB
GET    /v1/sounds/{name}                    the ringtone file, for the app to play
DELETE /v1/sounds/{name}                    remove it

POST /v1/jobs bodies: {"kind": "alarm", "time": "07:00", "days": "weekdays" | [1,3,5], "label": "Wake up", "sound": "bell"} or {"kind": "reminder", "text": "Call Sam", "in_minutes": 30 | "at": "2026-11-14 15:00", "ring": true, "sound": "chime"}. days uses 0 = Sunday.

The model creates jobs through the scheduler plugin. A front end must be able to show, change and cancel them without asking the model.

A job keeps its own text. If it was made in a turn that held outside content, the job is marked outside and its text is wrapped as outside content each time it runs, so an injected "every day, do X" is data, not an order. Outside jobs never ring, and an alarm cannot be set from such a turn at all.

Ringing. An alarm is due: the core sends alarm.ring at once, with no model turn.

The app rings with that sound until the user snoozes or dismisses it (on any device: alarm.stopped tells the others), or until 10 minutes pass; then it is missed and one urgent notice says so.

An alarm more than 30 minutes late (the server was off) only sends that notice. A reminder sends reminder.due at once (the phone can show it right away), rings too if ring is set, and then the model's turn may add a notice with the same job.

Alarms ring in quiet hours and do not count toward the daily notice cap: the user set them.

Sounds. Built-in names (default, chime, bell, beep, gentle, radar) are sounds the app ships; their sound_url is null. A custom ringtone is a file the owner uploads; it is checked by its first bytes, kept in data/sounds/, never shown to the model and never transcribed. This is separate from phone capture, which still refuses all audio (08).

More on jobs and notices

Phone side: how alarms ring and notices show is in Talking to the server. Place reminders are in Location.