ADR-0091 — A link's schedule is scheduled_at, and start_date is a column nothing writes
Status: Accepted · Date: 2026-08-29 · Track: 007-enforcement, phase 01 · Follows ADR-0089, ADR-0090.
The finding
007's charter, and the assessment behind it, name the link schedule as
StartDate/EndDate — "both real columns on models.Link". The columns are
real. The schedule is not there.
A census of both trees, taken before the branch was written:
| Spelling | Where it is | Who writes it |
|---|---|---|
links.scheduled_at / scheduled_end | column, model field, LinkInput JSON, services/links.ts | the link form → handlers/links.go:184,346 → repository/links.go:206,220 |
links.start_date / end_date | column (migration 000001), model field, types/api.ts:65 | nothing, in either tree |
display_rules.scheduled_start / scheduled_end | inside the rules JSON | DisplayRulesEditor.tsx:239 — and the matcher reads scheduled_at there, so it matches nothing |
biolinks_blocks.start_date/end_date are written, by the block editor,
and that is the schedule redirect.go and public_biolink.go already filter
blocks on — which is exactly why the wrong pair looked right: the same two
names, one table over, doing the job in a neighbouring loop.
The decision
The link's schedule is scheduled_at/scheduled_end. The redirect path
enforces on those, the query loads those, and the ledger row names those.
links.start_date/end_date are recorded here as vestigial: columns and a
model field with no writer. This track does not remove them — a column drop is
a migration and belongs to whoever owns the schema's cleanup — but naming them
stops the next reader repeating the mistake this ADR exists to record.
The third spelling, display_rules.scheduled_start against the matcher's
scheduled_at, is a live defect in the targeting editor and is one PR of its
own, on 007's open items. It is not fixed here: picking which spelling wins
decides what already-stored rules mean.
Why this is worth an ADR rather than a commit message
Because the mistake was one line from shipping, and it is the same mistake the track exists to close, in its third costume:
- a control stored and never read (the assessment's finding),
- a branch reading a column the query never selected (#393),
- a branch reading a column no writer ever fills (this one).
All three pass a diff review. All three are absences. The rule that covers the family, and the bar for every remaining row in the ledger: a control is enforced when a write path fills it, a query loads it, and a serving path reads it — and the row names all three or it is not enforcement.
Consequences
- The
redirect-scheduleledger row namesscheduled_at/scheduled_end, and itsreaderlist names both the branch and the query, per ADR-0089. - Comparison is in UTC on two TIMESTAMPTZ columns.
links.timezoneis what the authoring surface renders the instant in, not a second definition of when the window opens. - Out of window takes ADR-0090's 404: out of window is out of audience in time.
Source: docs/decisions/0091-the-links-schedule-is-scheduled-at-and-start-date-is-a-column-nothing-writes.md