Updates: an operator who has read the notes cannot take a release before the maintenance window — add **Update now** on the review sheet (approve + roll out immediately, window bypass for that release only) #1811

Closed
opened 2026-09-24 04:17:51 +00:00 by ben · 2 comments
Owner

Ask (Ben, 2026-09-24, on the cold manual re-test of whakatohea-demo)

"Add an Update now button."

What the operator can do today (proven from the code + this gateway)

  • The Updates screen lists each pending release with Review (UpdatesScreen.vue:70, data-action="review-update") → the review sheet → Approve (POST /api/v1/updates/reviews/{revision}/approve, controlapi/updates.go:111).
  • Approve only sets the release to queued (update/review.go:80-89). The rollout itself always waits for the maintenance window: rollout.go:259 if !manual && !Window.Contains(now) → WaitingForWindow — "automatic and operator-approved rollouts alike wait for the community's maintenance window" (story 28, the U2 promise). The only manual=true caller is retry-by-hand, which is reachable only for a quarantined/failed rollout (rollout.go:734).
  • So an operator who has just read the notes and wants the fix NOW has exactly one path: change the policy window to cover the current time (POST /api/v1/updates/policy) and wait for the scheduler tick — then remember to put the window back. That is a workaround dressed as a setting.

Tonight's case: the gateway (ff4a5263, policy testing / window 02:00–04:00 UTC / security auto / feature ask-first) shows six pending patches, the newest 7d3d84fa carrying #1806 + #1807 — the two fixes the operator was waiting on to make the community app card work. Nothing lets them take it before tomorrow 02:00 UTC.

Design

On the review sheet (and on the Rolling-out/queued state), next to Approve:

  • Update now — approve AND roll out immediately, bypassing the window for THIS release only. Copy under it names the trade-off in plain words: "Services restart during the rollout — members may be signed out for a minute. Otherwise it waits for your window (02:00–04:00)."
  • The act: POST /api/v1/updates/reviews/{revision}/approve with {"now": true} (or a sibling …/roll-out-now) → rollout(ctx, rev, manual=true) semantics for the window gate only — the deploy-yield gate (ADR 0259 rule 3: never start while a service deploy is in flight) and the self-swap/health-check rules stay exactly as they are. The rollout record carries Manual: true so the log says an operator chose the time.
  • Only for pending/queued releases the policy would otherwise wait on; not a way to re-run a rolled-back release (that stays retry-by-hand).
  • The Updates screen's queued row says "queued for 02:00 — or Update now" so the option is discoverable without opening the review.

Wireframes: docs/ux/wireframes/updates/ (the U-series, DDR for ADR 0248) gain the button on the review frame + the queued row; docs/ux/flows/updates.mermaid gains the edge review → rolling-out that skips the window node. This is why needs-design: the frame exists, the new act on it does not.

All six releases are kind: patch, which Kind.Automatic() treats like security (update.go:56) under security: apply-automatically, and one 02:00–04:00 UTC window has passed since the first was published (22:24Z) — yet all six sit pending with last_attempt_at zero and no update-lane log lines in the window. Either patches on testing are meant to wait for approval and the state is mislabelled, or the automatic lane did not fire. #1562's lane.

Relates to: ADR 0248, ADR 0259, #1562, #1675, #1806, #1807, DDR for the U-series (Updates), docs/ux/wireframes/updates/.

## Ask (Ben, 2026-09-24, on the cold manual re-test of `whakatohea-demo`) "Add an **Update now** button." ## What the operator can do today (proven from the code + this gateway) - The Updates screen lists each pending release with **Review** (`UpdatesScreen.vue:70`, `data-action="review-update"`) → the review sheet → **Approve** (`POST /api/v1/updates/reviews/{revision}/approve`, `controlapi/updates.go:111`). - Approve only sets the release to `queued` (`update/review.go:80-89`). The rollout itself **always waits for the maintenance window**: `rollout.go:259` `if !manual && !Window.Contains(now) → WaitingForWindow` — "automatic and operator-approved rollouts alike wait for the community's maintenance window" (story 28, the U2 promise). The only `manual=true` caller is `retry-by-hand`, which is reachable only for a quarantined/failed rollout (`rollout.go:734`). - So an operator who has just read the notes and wants the fix NOW has exactly one path: **change the policy window to cover the current time** (`POST /api/v1/updates/policy`) and wait for the scheduler tick — then remember to put the window back. That is a workaround dressed as a setting. Tonight's case: the gateway (`ff4a5263`, policy `testing` / window 02:00–04:00 UTC / security auto / feature ask-first) shows **six pending patches**, the newest `7d3d84fa` carrying #1806 + #1807 — the two fixes the operator was waiting on to make the community app card work. Nothing lets them take it before tomorrow 02:00 UTC. ## Design On the **review sheet** (and on the Rolling-out/queued state), next to Approve: - **Update now** — approve AND roll out immediately, bypassing the window for THIS release only. Copy under it names the trade-off in plain words: "Services restart during the rollout — members may be signed out for a minute. Otherwise it waits for your window (02:00–04:00)." - The act: `POST /api/v1/updates/reviews/{revision}/approve` with `{"now": true}` (or a sibling `…/roll-out-now`) → `rollout(ctx, rev, manual=true)` semantics for the window gate only — the deploy-yield gate (ADR 0259 rule 3: never start while a service deploy is in flight) and the self-swap/health-check rules stay exactly as they are. The rollout record carries `Manual: true` so the log says an operator chose the time. - Only for `pending`/`queued` releases the policy would otherwise wait on; not a way to re-run a rolled-back release (that stays `retry-by-hand`). - The Updates screen's queued row says "queued for 02:00 — or Update now" so the option is discoverable without opening the review. Wireframes: `docs/ux/wireframes/updates/` (the U-series, DDR for ADR 0248) gain the button on the review frame + the queued row; `docs/ux/flows/updates.mermaid` gains the edge review → rolling-out that skips the window node. This is why `needs-design`: the frame exists, the new act on it does not. ## Related observation (not this ticket — will be filed once seen on the Updates screen) All six releases are `kind: patch`, which `Kind.Automatic()` treats like security (`update.go:56`) under `security: apply-automatically`, and one 02:00–04:00 UTC window has passed since the first was published (22:24Z) — yet all six sit `pending` with `last_attempt_at` zero and no update-lane log lines in the window. Either patches on `testing` are meant to wait for approval and the state is mislabelled, or the automatic lane did not fire. #1562's lane. Relates to: ADR 0248, ADR 0259, #1562, #1675, #1806, #1807, DDR for the U-series (Updates), `docs/ux/wireframes/updates/`.
Author
Owner

BUILT — landed on main as 54cdc2ce (Ben: "do 1811 now", coa session, under the WKT-DEMO readiness gate).

  • POST /api/v1/updates/reviews/{revision}/update-now — approve AND start the staged rollout at once, bypassing the maintenance window for that release only. 202 started:true (the surface leaves U2 for U3), 200 started:false when nothing pending/queued is tracked there, 409 update_in_flight. Detached + checkpointed exactly like retry-by-hand (#1658), so it survives its own ADR 0259 self-swap restart.
  • Offered only for a pending or queued, never-attempted release; a rolled-back/quarantined release stays retry-by-hand's. Deploy-yield gate (ADR 0259 rule 3), health checks, self-swap rules and the attempt budget untouched. RolloutResult/RolloutView.manual says an operator chose the time.
  • Panel: Update now beside Approve on the review sheet, with "Services restart during the rollout — members may be signed out for a minute. Otherwise it waits for your window (02:00–04:00 )." under it; U1's queued row reads "— or Update now". Wireframes p4b-u2/p4b-u1 + flows/p4b-updates.mermaid updated (the needs-design half).
  • Proof: internal/update TestUpdateNow_* / TestStartUpdateNow_*, internal/controlapi TestUpdateNowHandler_* (approve alone only queues for 02:00; update-now applies out of window with manual:true), dashboard updateReview.test.ts ×3. go vet + golangci-lint clean.

Reaches a running community through the next testing cut off main (the release rail); a fresh founding (WKT-DEMO) carries it in its operator build.

**BUILT — landed on main as `54cdc2ce`** (Ben: "do 1811 now", coa session, under the WKT-DEMO readiness gate). - `POST /api/v1/updates/reviews/{revision}/update-now` — approve AND start the staged rollout at once, bypassing the maintenance window for that release only. 202 `started:true` (the surface leaves U2 for U3), 200 `started:false` when nothing pending/queued is tracked there, 409 `update_in_flight`. Detached + checkpointed exactly like retry-by-hand (#1658), so it survives its own ADR 0259 self-swap restart. - Offered only for a pending or queued, never-attempted release; a rolled-back/quarantined release stays retry-by-hand's. Deploy-yield gate (ADR 0259 rule 3), health checks, self-swap rules and the attempt budget untouched. `RolloutResult`/`RolloutView.manual` says an operator chose the time. - Panel: **Update now** beside Approve on the review sheet, with "Services restart during the rollout — members may be signed out for a minute. Otherwise it waits for your window (02:00–04:00 <zone>)." under it; U1's queued row reads "— or Update now". Wireframes p4b-u2/p4b-u1 + `flows/p4b-updates.mermaid` updated (the needs-design half). - Proof: `internal/update` `TestUpdateNow_*` / `TestStartUpdateNow_*`, `internal/controlapi` `TestUpdateNowHandler_*` (approve alone only queues for 02:00; update-now applies out of window with `manual:true`), dashboard `updateReview.test.ts` ×3. go vet + golangci-lint clean. Reaches a running community through the next `testing` cut off main (the release rail); a fresh founding (WKT-DEMO) carries it in its operator build.
ben closed this issue 2026-09-24 16:47:49 +00:00
Author
Owner

Correction: the previous comment named 54cdc2ce (origin/main at the time — the rebase had stopped on a STATUS.md conflict and the push was a no-op). The change actually landed on main as 6ebfb747 after the conflict was resolved. Everything else in that comment stands.

Correction: the previous comment named `54cdc2ce` (origin/main at the time — the rebase had stopped on a STATUS.md conflict and the push was a no-op). The change actually landed on main as **`6ebfb747`** after the conflict was resolved. Everything else in that comment stands.
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#1811
No description provided.