Expand description
Expiry dates and their reminders (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §15.2).
An entry’s expires field is a plain date (YYYY-MM-DD): no secret, so
srv reads it on a schedule without opening anything. At 14 days, 3 days and
on the day the person is notified, once each: the reminder is a line in the
Vault’s activity log, which is what says it was sent, across restarts. The
first reminder for a date also files a task to rotate the value, for the
agent that made it when an agent did.
An expired entry stays usable, so a reminder never breaks a running job; each use of one is recorded with “(expired)”.
Structs§
- Due
- A reminder to send.
- Sent
- What one look sent: the notifications to show, and whether a task was filed.
- Toast
- One notification to show: its key, the name its title gives, and its text.
Enums§
- Stage
- The three reminders.
Constants§
- ACTOR
- Who the activity log and the task name for the reminders.
- FIELD
- The field that holds an entry’s expiry date.
- MAX_
TOASTS - Most notifications one look shows; more entries due share one.
- REMINDED
- TASK_
KIND - The rotation task’s
kind.
Functions§
- due
- The reminders due today that haven’t been sent.
- expired
- Whether an entry is past its date: usable still, but its uses say so.
- file_
task - Files the rotation task, as
kanban.actcreatedoes; returns its number. - normalize
- A date another manager or an older backup wrote:
YYYY-MM-DDas it is, and a month (06/2028,6/2028,2028-06) as its last day. None for anything else. - notice
- What the person reads.
- notify_
key - The notification’s key: one per entry.
- of
- An entry’s expiry date, if its kind has one and it holds a date.
- parse
- A date as the Vault keeps it, or why it isn’t one.
- reminder_
key - The activity line’s target that says this reminder for this date was sent. The date is in it, so a new date starts its reminders again.
- run
- Looks at start and every 6 hours. A reminder is recorded as sent, so a look waits until it can be shown: for the notification router, which starts with the first window, and past a pause or quiet hours, which would drop it.
- send
- Records each reminder due and files the rotation tasks. The notifications are the caller’s to show: the record is written first, so a crash between the two never repeats a reminder.
- settle_
imported - An imported entry’s
expires, made a date the Vault keeps: normalized when it can be, else moved into the entry’s notes, so no entry is refused for it and no text is lost. - task_
body - task_
title - toasts
- The notifications for one look’s reminders: one each, or, past
MAX_TOASTS, one for them all, so an import never floods the screen. - today