U5 update policy: maintenance window in the operator's LOCAL 24-hour time (no "every night"), new helper sentence; and the channel picker explains each channel plainly instead of "This is the exit" #1729

Closed
opened 2026-09-22 13:48:41 +00:00 by ben · 3 comments
Owner

Ask (Ben, 2026-09-22, after reading U5 on Whakatōhea Demo)

The maintenance window on U5 Update policy (read view + edit form) must:

  1. Show and calculate in the operator's local time, 24-hour clock, the zone named — e.g. 14:00–16:00 NZST. Never a bare UTC time, and never a UTC pair masquerading as local (Whakatōhea Demo read 02:00–04:00 while the gateway rolled at 14:00 NZST). #1721 landed the local rendering + the local→UTC inverse on Save (dashboard/src/lib/localtime.ts); this ticket finishes the screen's WORDS and the picker so the whole row is unambiguous.
  2. Drop the night framing. Remove "every night" from the read view (read-window) and the edit input (maintenance-window), and the "when members are least likely to be using your services" hint. A window need not be at night — 24-hour times, any two hours of the day.
  3. New helper copy, verbatim: "Pick a time when members are most likely not using your services so that when an update is available this is the time it will be rolled out." — on the edit form under the picker; the read view says the window in words with the zone (14:00–16:00 NZST · daily is acceptable; "every night" is not).
  4. The picker is two 24-hour time fields (start / end) in local time, wrapping past midnight allowed (stored as UTC per #1721; gating unchanged, internal/update/rollout.go). Both the preset (the founding default 02:00–04:00 UTC) and what the operator picks render through the same local formatter, so the default also reads as the operator's local pair.
  5. Wireframes p4b-updates/p4b-u5-update-policy.html (read + edit) updated in the same commit — they are the contract (ADR 0122); harness scenario updates-policy re-eyeballed on :5198.

Tests

  • Unit: read-view string for a UTC window renders local 24 h + zone, contains no "night"; edit form's helper text equals the sentence above; Save of a local pair stores the right UTC pair (extend #1721's localtime.test.ts + updatePolicy.test.ts).
  • Drive: the #1614 Updates leg's setMaintenanceWindow types local times and asserts the read view echoes them with the zone.

Two-way door (ADR 0174) — Ben asked for it directly. Relates to #1721, DDR 0261/0262.

## Ask (Ben, 2026-09-22, after reading U5 on Whakatōhea Demo) The maintenance window on **U5 Update policy** (read view + edit form) must: 1. **Show and calculate in the operator's local time**, 24-hour clock, the zone named — e.g. `14:00–16:00 NZST`. Never a bare UTC time, and never a UTC pair masquerading as local (Whakatōhea Demo read `02:00–04:00` while the gateway rolled at 14:00 NZST). #1721 landed the local rendering + the local→UTC inverse on Save (`dashboard/src/lib/localtime.ts`); this ticket finishes the screen's WORDS and the picker so the whole row is unambiguous. 2. **Drop the night framing.** Remove "every night" from the read view (`read-window`) and the edit input (`maintenance-window`), and the "when members are least likely to be using your services" hint. A window need not be at night — 24-hour times, any two hours of the day. 3. **New helper copy, verbatim:** *"Pick a time when members are most likely not using your services so that when an update is available this is the time it will be rolled out."* — on the edit form under the picker; the read view says the window in words with the zone (`14:00–16:00 NZST · daily` is acceptable; "every night" is not). 4. **The picker is two 24-hour time fields (start / end)** in local time, wrapping past midnight allowed (stored as UTC per #1721; gating unchanged, `internal/update/rollout.go`). Both the preset (the founding default 02:00–04:00 **UTC**) and what the operator picks render through the same local formatter, so the default also reads as the operator's local pair. 5. Wireframes `p4b-updates/p4b-u5-update-policy.html` (read + edit) updated in the same commit — they are the contract (ADR 0122); harness scenario `updates-policy` re-eyeballed on `:5198`. ## Tests - Unit: read-view string for a UTC window renders local 24 h + zone, contains no "night"; edit form's helper text equals the sentence above; Save of a local pair stores the right UTC pair (extend #1721's `localtime.test.ts` + `updatePolicy.test.ts`). - Drive: the #1614 Updates leg's `setMaintenanceWindow` types local times and asserts the read view echoes them with the zone. Two-way door (ADR 0174) — Ben asked for it directly. Relates to #1721, DDR 0261/0262.
Author
Owner

Also (Ben 2026-09-22): replace the "This is the exit" callout with a plain description of what each channel means

Remove the sovereignty-exit callout (UpdatePolicyScreen.vue:131-135, wireframe p4b-u5-update-policy.html:60: "This is the exit. Your community can pin to an exact revision… sovereignty that needs a support ticket is not sovereignty."). In its place, one short line per channel, next to the picker (and the read view's CHANNEL row says the chosen one's line):

  • stable — Matou's released and tested software. Updates arrive less often; each one has already run on other communities. The recommended choice.
  • testing — the newest software as soon as Matou finishes it. You get fixes and features first, and you may meet problems first. (Communities founded during the alpha start here — ADR 0248.)
  • pin to an exact revision — stay on exactly the software you have now. Nothing changes until you choose again; security fixes stop arriving.
  • point at your own fork — take software from a source you run yourself instead of Matou. For communities that maintain their own version.

Rules: plain words, no "sovereignty", no "exit"; the ADR 0248/0185 fact the callout carried (pin and fork stop Matou's releases entirely) survives as the honest last clause of those two lines, not as a slogan. Selecting pin or fork still shows its input; the read view for a pin/fork states it as what it is ("pinned at 5b910ef3 — no updates arrive"), as DDR 0261 already requires. Copy lives in the i18n table; unit test asserts each option's line renders and the old callout is gone; wireframe read + edit frames updated in the same commit.

## Also (Ben 2026-09-22): replace the "This is the exit" callout with a plain description of what each channel means Remove the `sovereignty-exit` callout (`UpdatePolicyScreen.vue:131-135`, wireframe `p4b-u5-update-policy.html:60`: *"This is the exit. Your community can pin to an exact revision… sovereignty that needs a support ticket is not sovereignty."*). In its place, one short line per channel, next to the picker (and the read view's CHANNEL row says the chosen one's line): - **stable** — Matou's released and tested software. Updates arrive less often; each one has already run on other communities. *The recommended choice.* - **testing** — the newest software as soon as Matou finishes it. You get fixes and features first, and you may meet problems first. *(Communities founded during the alpha start here — ADR 0248.)* - **pin to an exact revision** — stay on exactly the software you have now. Nothing changes until you choose again; security fixes stop arriving. - **point at your own fork** — take software from a source you run yourself instead of Matou. For communities that maintain their own version. Rules: plain words, no "sovereignty", no "exit"; the ADR 0248/0185 fact the callout carried (pin and fork stop Matou's releases entirely) survives as the honest last clause of those two lines, not as a slogan. Selecting *pin* or *fork* still shows its input; the read view for a pin/fork states it as what it is ("pinned at `5b910ef3` — no updates arrive"), as DDR 0261 already requires. Copy lives in the i18n table; unit test asserts each option's line renders and the old callout is gone; wireframe read + edit frames updated in the same commit.
ben changed title from U5 maintenance window: show and take it in the operator's LOCAL 24-hour time, drop "every night" — "Pick a time when members are most likely not using your services…" to U5 update policy: maintenance window in the operator's LOCAL 24-hour time (no "every night"), new helper sentence; and the channel picker explains each channel plainly instead of "This is the exit" 2026-09-22 13:51:11 +00:00

swarm-claim host=matou-dev-server-01 run=30140
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=30140 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1729 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1729,
  "status": "success",
  "commits": [
    "48916231"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/updatesDrive.ts",
    "dashboard/src/components/provisioning/UpdatePolicyScreen.vue",
    "dashboard/src/lib/updatePolicy.ts",
    "dashboard/tests/unit/updatePolicy.test.ts",
    "docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html"
  ],
  "tests": [
    {
      "command": "pnpm exec vitest run tests/unit/updatePolicy.test.ts tests/unit/localtime.test.ts tests/unit/themingDashboardCore.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vitest run (full dashboard suite, 139 files / 1804 passed, 3 skipped)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec eslint UpdatePolicyScreen.vue updatePolicy.ts updatePolicy.test.ts (dashboard) + updatesDrive.ts (app)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Window shows/calculates in the operator's LOCAL 24h time, zone named (e.g. 14:00-16:00 NZST), never a bare/masquerading UTC": "UpdatePolicyScreen.vue read-window renders `{{windowStart}}–{{windowEnd}} {{windowZone}}` via #1721's localWindow; test '#1729: the read-first window reads local 24h + zone' asserts windowPhrase({02:00,04:00}) and no 'night' (updatePolicy.test.ts)",
    "Drop the night framing from read view (read-window), edit input (maintenance-window) and the 'least likely' hint": "removed 'every night' + the least-likely hint in both read-window and maintenance-window cards; test '#1729: the edit form drops the night framing' asserts /night/i and /least likely/i absent",
    "New helper copy verbatim under the picker on the edit form": "WINDOW_HELPER in src/lib/updatePolicy.ts rendered at data-field='window-helper'; test asserts window-helper text === WINDOW_HELPER (the exact sentence)",
    "Picker is two 24h local time fields, wrapping past midnight allowed, stored as UTC (#1721), gating unchanged": "two aria-label window start/end inputs kept; localClockToUtc on Save unchanged; internal/update/rollout.go untouched",
    "Read view says the window in words with the zone ('14:00-16:00 NZST · daily' acceptable, 'every night' not)": "read-window renders '<b>start–end zone</b> · daily'; wireframe read frame shows '14:00–16:00 NZST · daily'",
    "Wireframes p4b-u5-update-policy.html (read + edit) updated in the same commit (ADR 0122)": "docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html read + edit frames updated in commit 48916231",
    "Replace the 'This is the exit' sovereignty-exit callout with one plain line per channel next to the picker; no 'sovereignty', no 'exit'": "sovereignty-exit callout removed; channel-legend with channel-line-{stable,testing,pin,fork} from CHANNELS table; test asserts sovereignty-exit gone, legend has no /sovereignty/i and no 'This is the exit', and each channel line renders",
    "The ADR 0248/0185 fact survives as the honest last clause of the pin and fork lines": "pin line ends 'security fixes stop arriving'; fork line 'For communities that maintain their own version'; test asserts pin line contains 'security fixes stop arriving'",
    "Read view CHANNEL row says the chosen channel's line; pin/fork read as their state ('pinned at <rev> — no updates arrive', DDR 0261)": "channelWords echoes CHANNELS line for stable/testing, 'pinned at <rev> — no updates arrive' for pin, 'pointed at your own fork <fork> — no updates arrive from Matou' for fork; test asserts stable line echoed and pin reads 'pinned at 5b910ef3 … no updates arrive'",
    "Copy lives in the strings table; unit test asserts each option's line renders and the old callout is gone": "CHANNELS + WINDOW_HELPER centralised in src/lib/updatePolicy.ts (panel i18n namespace empty pending #1377); updatePolicy.test.ts covers both",
    "Drive: the #1614 Updates leg's setMaintenanceWindow types local times and asserts the read view echoes them with the zone": "updatesDrive.ts already fills local times into the local-zone fields; setMaintenanceWindow now asserts the U5 read-window matches HH:MM–HH:MM <zone> and does not contain 'night' (guarded so a pre-read-first gateway with no read-window is skipped)"
  },
  "summary": "U5 shows the maintenance window in the operator's local 24h time ('daily', not 'every night') with the verbatim helper, and replaces the 'This is the exit' callout with one plain line per channel; component, tests and wireframe shipped together.",
  "blockers": []
}
**close-report** for #1729 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1729, "status": "success", "commits": [ "48916231" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/updatesDrive.ts", "dashboard/src/components/provisioning/UpdatePolicyScreen.vue", "dashboard/src/lib/updatePolicy.ts", "dashboard/tests/unit/updatePolicy.test.ts", "docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html" ], "tests": [ { "command": "pnpm exec vitest run tests/unit/updatePolicy.test.ts tests/unit/localtime.test.ts tests/unit/themingDashboardCore.test.ts (dashboard)", "exit_code": 0 }, { "command": "pnpm exec vitest run (full dashboard suite, 139 files / 1804 passed, 3 skipped)", "exit_code": 0 }, { "command": "pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "pnpm exec eslint UpdatePolicyScreen.vue updatePolicy.ts updatePolicy.test.ts (dashboard) + updatesDrive.ts (app)", "exit_code": 0 } ], "criteria": { "Window shows/calculates in the operator's LOCAL 24h time, zone named (e.g. 14:00-16:00 NZST), never a bare/masquerading UTC": "UpdatePolicyScreen.vue read-window renders `{{windowStart}}–{{windowEnd}} {{windowZone}}` via #1721's localWindow; test '#1729: the read-first window reads local 24h + zone' asserts windowPhrase({02:00,04:00}) and no 'night' (updatePolicy.test.ts)", "Drop the night framing from read view (read-window), edit input (maintenance-window) and the 'least likely' hint": "removed 'every night' + the least-likely hint in both read-window and maintenance-window cards; test '#1729: the edit form drops the night framing' asserts /night/i and /least likely/i absent", "New helper copy verbatim under the picker on the edit form": "WINDOW_HELPER in src/lib/updatePolicy.ts rendered at data-field='window-helper'; test asserts window-helper text === WINDOW_HELPER (the exact sentence)", "Picker is two 24h local time fields, wrapping past midnight allowed, stored as UTC (#1721), gating unchanged": "two aria-label window start/end inputs kept; localClockToUtc on Save unchanged; internal/update/rollout.go untouched", "Read view says the window in words with the zone ('14:00-16:00 NZST · daily' acceptable, 'every night' not)": "read-window renders '<b>start–end zone</b> · daily'; wireframe read frame shows '14:00–16:00 NZST · daily'", "Wireframes p4b-u5-update-policy.html (read + edit) updated in the same commit (ADR 0122)": "docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html read + edit frames updated in commit 48916231", "Replace the 'This is the exit' sovereignty-exit callout with one plain line per channel next to the picker; no 'sovereignty', no 'exit'": "sovereignty-exit callout removed; channel-legend with channel-line-{stable,testing,pin,fork} from CHANNELS table; test asserts sovereignty-exit gone, legend has no /sovereignty/i and no 'This is the exit', and each channel line renders", "The ADR 0248/0185 fact survives as the honest last clause of the pin and fork lines": "pin line ends 'security fixes stop arriving'; fork line 'For communities that maintain their own version'; test asserts pin line contains 'security fixes stop arriving'", "Read view CHANNEL row says the chosen channel's line; pin/fork read as their state ('pinned at <rev> — no updates arrive', DDR 0261)": "channelWords echoes CHANNELS line for stable/testing, 'pinned at <rev> — no updates arrive' for pin, 'pointed at your own fork <fork> — no updates arrive from Matou' for fork; test asserts stable line echoed and pin reads 'pinned at 5b910ef3 … no updates arrive'", "Copy lives in the strings table; unit test asserts each option's line renders and the old callout is gone": "CHANNELS + WINDOW_HELPER centralised in src/lib/updatePolicy.ts (panel i18n namespace empty pending #1377); updatePolicy.test.ts covers both", "Drive: the #1614 Updates leg's setMaintenanceWindow types local times and asserts the read view echoes them with the zone": "updatesDrive.ts already fills local times into the local-zone fields; setMaintenanceWindow now asserts the U5 read-window matches HH:MM–HH:MM <zone> and does not contain 'night' (guarded so a pre-read-first gateway with no read-window is skipped)" }, "summary": "U5 shows the maintenance window in the operator's local 24h time ('daily', not 'every night') with the verbatim helper, and replaces the 'This is the exit' callout with one plain line per channel; component, tests and wireframe shipped together.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1729
No description provided.