Updates: there is no “Update now” — the only way to take a waiting release is to rewrite the maintenance window #1745

Open
opened 2026-09-22 18:48:00 +00:00 by ben · 0 comments
Owner

Ben, 2026-09-22 (Whakatōhea Demo re-founding): an operator who wants a waiting release NOW has no way to take it. The only lever is the maintenance window — editing a nightly policy to a time that happens to be now, then editing it back. That is a policy surface being used as a verb, and it is nonsense from the operator's chair.

What is missing

internal/update has no apply-now path at all:

  • Orchestrator.Approve (review.go:80) moves a pending release to StateQueued and returns the window it is queued for — approval is consent, never a trigger;
  • every rollout is gated on Window.Contains(now) (rollout.go:741) plus the once-per-window throttle keyed on Window.OpeningAt (#1650);
  • POST /api/v1/updates/policy (controlapi/updates.go:69) is the only route that can change whether the gateway may act now.

So the operator app, the panel and the drives all have exactly one way to make an update happen: rewrite the community's maintenance policy. On the demo this was done by hand over the loopback API — not something an operator can or should do.

Wanted

An explicit act on P4b-U1 / U2: Update now. It applies the release the community is already entitled to (the same artifacts, the same signature check, the same self-restart and the same automatic rollback on a failed health check, ADR 0248/0259) — outside the window, once, on the operator's say-so, without touching the policy.

Design owes (hence needs-design):

  • where it sits: on the release row in U1, on the review screen U2 beside Approve, or both — and whether it replaces Approve for a release already queued;
  • what it says before it runs. Services restart and the gateway restarts itself, so members are interrupted: the confirm must name that plainly ("members will be signed out for about a minute"), in the operator's words, at a time they chose;
  • the running and finished states — U3/U4 already exist; a manual run should be distinguishable in the history from an automatic one ("applied — you asked for it now", vs the window's);
  • what it does to the window's once-per-window throttle: a manual run must not consume tonight's automatic attempt for a different release, and a failed manual run must not spin.

Not wanted: a "check for updates now" button on its own. The poll is every 5 minutes; the operator's problem is not the check, it is the wait.

Acceptance

  • A pending or queued release applies within seconds of Update now, outside the window, with the policy unchanged before and after.
  • Signature + digest verification, the ADR 0259 self-restart and rollback-on-red all behave exactly as the automatic path (one shared rollout, one code path — not a second applier).
  • History distinguishes a manual run from a window run.
  • A drive leg on a live gateway takes a waiting release by Update now with the window shut.

Filed out of #1562's update lane and the demo re-founding; relates to DDR 0261 (U4's exit), #1650 (window throttle), #1729 (the window in local time).

**Ben, 2026-09-22 (Whakatōhea Demo re-founding):** an operator who wants a waiting release NOW has no way to take it. The only lever is the maintenance window — editing a nightly policy to a time that happens to be now, then editing it back. That is a policy surface being used as a verb, and it is nonsense from the operator's chair. ## What is missing `internal/update` has **no apply-now path at all**: - `Orchestrator.Approve` (`review.go:80`) moves a pending release to `StateQueued` and *returns the window it is queued for* — approval is consent, never a trigger; - every rollout is gated on `Window.Contains(now)` (`rollout.go:741`) plus the once-per-window throttle keyed on `Window.OpeningAt` (#1650); - `POST /api/v1/updates/policy` (`controlapi/updates.go:69`) is the only route that can change whether the gateway may act now. So the operator app, the panel and the drives all have exactly one way to make an update happen: rewrite the community's maintenance policy. On the demo this was done by hand over the loopback API — not something an operator can or should do. ## Wanted **An explicit act on P4b-U1 / U2: *Update now*.** It applies the release the community is already entitled to (the same artifacts, the same signature check, the same self-restart and the same automatic rollback on a failed health check, ADR 0248/0259) — outside the window, once, on the operator's say-so, without touching the policy. Design owes (hence `needs-design`): - where it sits: on the release row in U1, on the review screen U2 beside *Approve*, or both — and whether it replaces *Approve* for a release already queued; - what it says before it runs. Services restart and the gateway restarts itself, so members are interrupted: the confirm must name that plainly ("members will be signed out for about a minute"), in the operator's words, at a time they chose; - the running and finished states — U3/U4 already exist; a manual run should be distinguishable in the history from an automatic one ("applied — you asked for it now", vs the window's); - what it does to the window's once-per-window throttle: a manual run must not consume tonight's automatic attempt for a *different* release, and a failed manual run must not spin. Not wanted: a "check for updates now" button on its own. The poll is every 5 minutes; the operator's problem is not the check, it is the wait. ## Acceptance - A pending or queued release applies within seconds of *Update now*, outside the window, with the policy unchanged before and after. - Signature + digest verification, the ADR 0259 self-restart and rollback-on-red all behave exactly as the automatic path (one shared rollout, one code path — not a second applier). - History distinguishes a manual run from a window run. - A drive leg on a live gateway takes a waiting release by *Update now* with the window shut. Filed out of #1562's update lane and the demo re-founding; relates to DDR 0261 (U4's exit), #1650 (window throttle), #1729 (the window in local time).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1745
No description provided.