Defer weekend document reminders to Monday

Reminders that fall due on Saturday or Sunday no longer send
over the weekend or spend the escalation ladder unused. SQL
keeps calendar cadence and rolls weekend due times to Monday
at the same clock hour. The first debounced notice is unchanged.

Co-authored-by: Sacha Al Himdani <sacha@probo.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Cursor Agent
2026-07-30 14:04:37 +00:00
parent eaff3c9dda
commit a26a4ad898
4 changed files with 88 additions and 8 deletions

View File

@@ -40,7 +40,9 @@ type DocumentNotificationConfig struct {
// DebounceDelay is how long a request must have been pending before its
// first notification is sent.
DebounceDelay int `json:"debounce-delay"`
// ReminderInterval is the base reminder cadence. Reminders are sent at
// 1x, 2x and 3x this interval after the previous email, then stop.
// ReminderInterval is the base reminder cadence in seconds. Reminders are
// sent at 1x, 2x and 3x this interval after the previous email, then stop.
// Reminder sends that fall on Saturday or Sunday are deferred to Monday at
// the same clock time; the first (debounced) notice is unchanged.
ReminderInterval int `json:"reminder-interval"`
}