notes

Calendar and wall-clock entries: a proposal

Name: ratified 2026-10-18 (calef, convention-rulings Rule 3).

Status: settled 2026-09-26 (UTC) in calendar-grammar-g5.md: calef ruled "G5 full", and the step rule is S3 with a SET fix, the maintainer's default. Originally PROPOSED 2026-09-26. Written by the lane for milestone 129 (scheduled execution) for calef's decision. The block has called each of these "its own decision" since 2026-08-15, and they turn out to be one: a calendar entry is a wall-clock entry with a vocabulary. What is asked is the grammar, which is a format two programs agree on, and the rule for a clock that steps.

What is being decided

A timetable today knows two schedules, every <interval> and at-boot, both on the monotonic counter, which needs no capability. The housekeeping milestone 55 (Time Machine) wants is "thin snapshots at 02:00", which is a time of day. Three questions follow:

  1. What an entry saying a time of day is written as.
  2. Which time zone that time is in.
  3. What it does when the wall clock steps under it.

What the tree already settles

The options for the grammar

shape why
G1 cron's five fields, 0 2 * * * Familiar, and a whole language: ranges, lists, steps, day-of-month versus day-of-week union. Most of it is unused by housekeeping, and every part is a parser to prove.
G2 systemd's OnCalendar= More expressive than cron, larger again. Read, not built: systemd.timer(5).
G3 (recommended) two words, daily HH:MM and weekly <mon..sun> HH:MM, in UTC Matches the two words this document already has. Covers nightly and weekly housekeeping. Adding monthly later is an additive line, not a new language.

The options for a step

rule cost
S1 Vixie cron's: a forward jump under three hours runs the skipped jobs soon after; a backward jump under three hours does not re-run the repeated ones; three hours or more is a correction and the new time is used as is (cron(8), read 2026-09-26). A magic number, chosen for daylight saving, which this tree does not have.
S2 systemd's: Persistent= stores the last trigger on disk and fires once for whatever elapsed while off (systemd.timer(5), read 2026-09-26). Corrected 2026-09-26 (UTC): not a stampede, since systemd fires once. It differs from S3 by persisting a stamp across power-off. See calendar-grammar-g5.md.
S3 (recommended) Recompute every deadline when the generation moves. An occurrence whose time a forward step jumped past fires once. An occurrence already fired is never fired again after a backward step, because each entry remembers the last wall-clock occurrence it fired. One word of state per entry. It is the interval rule (skip, do not catch up, never twice) applied to wall time.

And while the clock's state is not known (state::UNKNOWN), a calendar entry is dormant: armed, not due. A machine that does not know the date should not guess it at 02:00.

Costs, measured where they can be

Reversibility

The grammar is stored on disk per identity (§122), so once a user writes daily 02:00 it is a format somebody has acted on. That makes G3 the expensive half. The step rule is behavior, cheap to change until a housekeeping job depends on it.

Would we still choose G3 and S3 at equal cost

Yes. G3 is smaller and matches the existing document; S3 is the rule this timetable already follows for intervals, so a reader learns one rule rather than two.

What a yes unblocks

A lane adds daily and weekly to the grammar, a clock grant to a registrar-mode timetable's spawn, the generation check to the loop, and the Kani harnesses, on all three architectures. A no leaves the grammar at two words and milestone 129 PARTIAL on this item.