updates screens: times are shown in UTC with no zone marker — "applied 02:08" on a screen the operator reads at 14:08 #1721

Closed
opened 2026-09-22 05:30:12 +00:00 by ben · 4 comments
Owner

What

U4 Applied on Whakatōhea Demo reads applied 02:08; the gateway's journal says 02:08:22Z. Ben read the screen in NZ at 14:08 local. U5's maintenance window (02:00–04:00) has the same problem: it is the GATEWAY clock (UTC), and nothing on the screen says so — an operator setting "02:00–04:00" expects the middle of their night and gets the middle of their afternoon (14:00–16:00 NZST). Found during the hand re-founding 2026-09-22.

Fix (DDR 0261/0262 screens, wireframes p4b-updates)

  • Every timestamp on U1/U3/U4/U4x/U5 renders in the viewer's local time with the zone named once (applied 14:08 NZST), the UTC in a title/tooltip.
  • U5's window: entered and displayed in the operator's local zone (02:00–04:00 NZST), stored as UTC (or as local + IANA zone — decide; the scheduler gates on the gateway clock today, internal/update/rollout.go:741). The read-first view says which zone in words.
  • Unit tests on the formatting; the harness scenarios (:5198 ?scenario=updates-…) render with a fixed zone.
## What U4 Applied on Whakatōhea Demo reads `applied 02:08`; the gateway's journal says 02:08:22**Z**. Ben read the screen in NZ at 14:08 local. U5's maintenance window (`02:00–04:00`) has the same problem: it is the GATEWAY clock (UTC), and nothing on the screen says so — an operator setting "02:00–04:00" expects the middle of their night and gets the middle of their afternoon (14:00–16:00 NZST). Found during the hand re-founding 2026-09-22. ## Fix (DDR 0261/0262 screens, wireframes `p4b-updates`) - Every timestamp on U1/U3/U4/U4x/U5 renders in the **viewer's** local time with the zone named once (`applied 14:08 NZST`), the UTC in a title/tooltip. - U5's window: entered and displayed in the operator's local zone (`02:00–04:00 NZST`), stored as UTC (or as local + IANA zone — decide; the scheduler gates on the gateway clock today, `internal/update/rollout.go:741`). The read-first view says which zone in words. - Unit tests on the formatting; the harness scenarios (`:5198 ?scenario=updates-…`) render with a fixed zone.

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

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

Ruled by agent under ADR 0174 — veto anytime.

The ticket asks me to "decide" how U5's window is stored: UTC, or local + IANA zone (the scheduler gates on the gateway clock today, internal/update/rollout.go).

Ruling: keep the window STORED and SCHEDULED as the gateway UTC "HH:MM" — the seam contract is untouched — and make the UI honest in presentation only. The dashboard converts the gateway UTC clock to the viewer's local zone for display and entry (localWindow/localClockToUtc in dashboard/src/lib/localtime.ts) and names the zone in words; Save converts local → UTC on the way out. Every instant on U3/U4/U4x/U3x renders as <time :title> — visible 14:08 NZST, the UTC gateway clock kept in the tooltip.

Why it is a two-way door: the change is presentation + a Save-time conversion, fully revertible by a later commit; it widens no security posture, touches no credential/trust/data, and spends nothing. It is proved by tests/unit/localtime.test.ts (the formatting and its inverse, with pinned zones) plus zone/title assertions in the screen tests.

Acknowledged caveat (the reason "decide" was flagged): because the stored value is a fixed UTC clock, a recurring nightly window shifts by an hour across a DST change twice a year. Storing local + IANA and making the Go scheduler zone-aware would remove that, but it is a larger, seam-level change with its own scheduler-behaviour risk; it can land later without reverting this slice. If you want the window stored local+zone instead, veto here and I'll file the scheduler change.

**Ruled by agent under ADR 0174 — veto anytime.** The ticket asks me to "decide" how U5's window is stored: UTC, or local + IANA zone (the scheduler gates on the gateway clock today, `internal/update/rollout.go`). **Ruling: keep the window STORED and SCHEDULED as the gateway UTC "HH:MM" — the seam contract is untouched — and make the UI honest in presentation only.** The dashboard converts the gateway UTC clock to the viewer's local zone for display and entry (`localWindow`/`localClockToUtc` in `dashboard/src/lib/localtime.ts`) and names the zone in words; Save converts local → UTC on the way out. Every instant on U3/U4/U4x/U3x renders as `<time :title>` — visible `14:08 NZST`, the UTC gateway clock kept in the tooltip. **Why it is a two-way door:** the change is presentation + a Save-time conversion, fully revertible by a later commit; it widens no security posture, touches no credential/trust/data, and spends nothing. It is proved by `tests/unit/localtime.test.ts` (the formatting and its inverse, with pinned zones) plus zone/title assertions in the screen tests. **Acknowledged caveat (the reason "decide" was flagged):** because the stored value is a fixed UTC clock, a recurring nightly window shifts by an hour across a DST change twice a year. Storing local + IANA and making the Go scheduler zone-aware would remove that, but it is a larger, seam-level change with its own scheduler-behaviour risk; it can land later without reverting this slice. If you want the window stored local+zone instead, veto here and I'll file the scheduler change.

close-report for #1721 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 8a0e9c6147 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'dashboard/playwright.harness.config.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/AppliedScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/RefusedScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/RolledBackScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/RollingOutScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/UpToDateScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/UpdatePolicyScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/provisioning/UpdatesScreen.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/lib/rollout.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/lib/localtime.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/rollout.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/updatePolicy.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/localtime.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1721,
  "status": "success",
  "commits": [
    "8a0e9c61472500e041a041b3318f8b50e93fdac3"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/playwright.harness.config.ts",
    "dashboard/src/components/provisioning/AppliedScreen.vue",
    "dashboard/src/components/provisioning/RefusedScreen.vue",
    "dashboard/src/components/provisioning/RolledBackScreen.vue",
    "dashboard/src/components/provisioning/RollingOutScreen.vue",
    "dashboard/src/components/provisioning/UpToDateScreen.vue",
    "dashboard/src/components/provisioning/UpdatePolicyScreen.vue",
    "dashboard/src/components/provisioning/UpdatesScreen.vue",
    "dashboard/src/lib/rollout.ts",
    "dashboard/src/lib/localtime.ts",
    "dashboard/tests/unit/rollout.test.ts",
    "dashboard/tests/unit/updatePolicy.test.ts",
    "dashboard/tests/unit/localtime.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Every timestamp on U1/U3/U4/U4x/U5 renders in the viewer's local time with the zone named once (applied 14:08 NZST), the UTC in a title/tooltip": "dashboard/src/lib/localtime.ts localInstant returns {label:'14:08 NZST', utc:'02:08 UTC'}; AppliedScreen/RollingOutScreen/RolledBackScreen/RefusedScreen render <time :title> (data-field applied-at/started-at/rolled-back-at); U1/U1x window echoes and U5 window via windowPhrase/localWindow name the zone. Proven by localtime.test.ts and zone/title assertions in rollout.test.ts.",
    "U5's window: entered and displayed in the operator's local zone (02:00-04:00 NZST), stored as UTC; the read-first view says which zone in words": "UpdatePolicyScreen load converts standing UTC window -> local via localWindow, Save converts local -> UTC via localClockToUtc; read-window and window-zone hint carry windowZone in words. Decision (store UTC, presentation-only) ruled under ADR 0174 and posted to the issue. Proven by updatePolicy.test.ts (#1721 read-first view names the window zone).",
    "Unit tests on the formatting; the harness scenarios render with a fixed zone": "dashboard/tests/unit/localtime.test.ts covers localInstant/localWindow/localClockToUtc/zoneName with pinned zones; dashboard/playwright.harness.config.ts pins timezoneId 'Pacific/Auckland' and locale 'en-NZ' so scenario renders are deterministic."
  },
  "summary": "The Updates screens render every instant and maintenance window in the viewer's local zone with the zone named once, the gateway UTC clock kept in the tooltip; the scheduler contract is unchanged.",
  "blockers": []
}
**close-report** for #1721 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 8a0e9c61472500e041a041b3318f8b50e93fdac3 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'dashboard/playwright.harness.config.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/AppliedScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/RefusedScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/RolledBackScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/RollingOutScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/UpToDateScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/UpdatePolicyScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/provisioning/UpdatesScreen.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/lib/rollout.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/src/lib/localtime.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/rollout.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/updatePolicy.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/localtime.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1721, "status": "success", "commits": [ "8a0e9c61472500e041a041b3318f8b50e93fdac3" ], "changed_files": [ "STATUS.md", "dashboard/playwright.harness.config.ts", "dashboard/src/components/provisioning/AppliedScreen.vue", "dashboard/src/components/provisioning/RefusedScreen.vue", "dashboard/src/components/provisioning/RolledBackScreen.vue", "dashboard/src/components/provisioning/RollingOutScreen.vue", "dashboard/src/components/provisioning/UpToDateScreen.vue", "dashboard/src/components/provisioning/UpdatePolicyScreen.vue", "dashboard/src/components/provisioning/UpdatesScreen.vue", "dashboard/src/lib/rollout.ts", "dashboard/src/lib/localtime.ts", "dashboard/tests/unit/rollout.test.ts", "dashboard/tests/unit/updatePolicy.test.ts", "dashboard/tests/unit/localtime.test.ts" ], "tests": [ { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd dashboard && npx eslint .", "exit_code": 0 } ], "criteria": { "Every timestamp on U1/U3/U4/U4x/U5 renders in the viewer's local time with the zone named once (applied 14:08 NZST), the UTC in a title/tooltip": "dashboard/src/lib/localtime.ts localInstant returns {label:'14:08 NZST', utc:'02:08 UTC'}; AppliedScreen/RollingOutScreen/RolledBackScreen/RefusedScreen render <time :title> (data-field applied-at/started-at/rolled-back-at); U1/U1x window echoes and U5 window via windowPhrase/localWindow name the zone. Proven by localtime.test.ts and zone/title assertions in rollout.test.ts.", "U5's window: entered and displayed in the operator's local zone (02:00-04:00 NZST), stored as UTC; the read-first view says which zone in words": "UpdatePolicyScreen load converts standing UTC window -> local via localWindow, Save converts local -> UTC via localClockToUtc; read-window and window-zone hint carry windowZone in words. Decision (store UTC, presentation-only) ruled under ADR 0174 and posted to the issue. Proven by updatePolicy.test.ts (#1721 read-first view names the window zone).", "Unit tests on the formatting; the harness scenarios render with a fixed zone": "dashboard/tests/unit/localtime.test.ts covers localInstant/localWindow/localClockToUtc/zoneName with pinned zones; dashboard/playwright.harness.config.ts pins timezoneId 'Pacific/Auckland' and locale 'en-NZ' so scenario renders are deterministic." }, "summary": "The Updates screens render every instant and maintenance window in the viewer's local zone with the zone named once, the gateway UTC clock kept in the tooltip; the scheduler contract is unchanged.", "blockers": [] } ``` </details>

close-report for #1721 — status success

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

envelope
{
  "issue": 1721,
  "status": "success",
  "commits": [
    "8a0e9c61472500e041a041b3318f8b50e93fdac3"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/playwright.harness.config.ts",
    "dashboard/src/components/provisioning/AppliedScreen.vue",
    "dashboard/src/components/provisioning/RefusedScreen.vue",
    "dashboard/src/components/provisioning/RolledBackScreen.vue",
    "dashboard/src/components/provisioning/RollingOutScreen.vue",
    "dashboard/src/components/provisioning/UpToDateScreen.vue",
    "dashboard/src/components/provisioning/UpdatePolicyScreen.vue",
    "dashboard/src/components/provisioning/UpdatesScreen.vue",
    "dashboard/src/lib/rollout.ts",
    "dashboard/src/lib/localtime.ts",
    "dashboard/tests/unit/rollout.test.ts",
    "dashboard/tests/unit/updatePolicy.test.ts",
    "dashboard/tests/unit/localtime.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Every timestamp on U1/U3/U4/U4x/U5 renders in the viewer's local time with the zone named once (applied 14:08 NZST), the UTC in a title/tooltip": "dashboard/src/lib/localtime.ts localInstant returns {label:'14:08 NZST', utc:'02:08 UTC'}; AppliedScreen/RollingOutScreen/RolledBackScreen/RefusedScreen render <time :title> (data-field applied-at/started-at/rolled-back-at); U1/U1x window echoes and U5 window via windowPhrase/localWindow name the zone. Proven by localtime.test.ts and zone/title assertions in rollout.test.ts.",
    "U5's window: entered and displayed in the operator's local zone (02:00-04:00 NZST), stored as UTC; the read-first view says which zone in words": "UpdatePolicyScreen load converts standing UTC window -> local via localWindow, Save converts local -> UTC via localClockToUtc; read-window and window-zone hint carry windowZone in words. Decision (store UTC, presentation-only) ruled under ADR 0174 and posted to the issue. Proven by updatePolicy.test.ts (#1721 read-first view names the window zone).",
    "Unit tests on the formatting; the harness scenarios render with a fixed zone": "dashboard/tests/unit/localtime.test.ts covers localInstant/localWindow/localClockToUtc/zoneName with pinned zones; dashboard/playwright.harness.config.ts pins timezoneId 'Pacific/Auckland' and locale 'en-NZ' so scenario renders are deterministic."
  },
  "summary": "The Updates screens render every instant and maintenance window in the viewer's local zone with the zone named once, the gateway UTC clock kept in the tooltip; the scheduler contract is unchanged.",
  "blockers": []
}
**close-report** for #1721 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1721, "status": "success", "commits": [ "8a0e9c61472500e041a041b3318f8b50e93fdac3" ], "changed_files": [ "STATUS.md", "dashboard/playwright.harness.config.ts", "dashboard/src/components/provisioning/AppliedScreen.vue", "dashboard/src/components/provisioning/RefusedScreen.vue", "dashboard/src/components/provisioning/RolledBackScreen.vue", "dashboard/src/components/provisioning/RollingOutScreen.vue", "dashboard/src/components/provisioning/UpToDateScreen.vue", "dashboard/src/components/provisioning/UpdatePolicyScreen.vue", "dashboard/src/components/provisioning/UpdatesScreen.vue", "dashboard/src/lib/rollout.ts", "dashboard/src/lib/localtime.ts", "dashboard/tests/unit/rollout.test.ts", "dashboard/tests/unit/updatePolicy.test.ts", "dashboard/tests/unit/localtime.test.ts" ], "tests": [ { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd dashboard && npx eslint .", "exit_code": 0 } ], "criteria": { "Every timestamp on U1/U3/U4/U4x/U5 renders in the viewer's local time with the zone named once (applied 14:08 NZST), the UTC in a title/tooltip": "dashboard/src/lib/localtime.ts localInstant returns {label:'14:08 NZST', utc:'02:08 UTC'}; AppliedScreen/RollingOutScreen/RolledBackScreen/RefusedScreen render <time :title> (data-field applied-at/started-at/rolled-back-at); U1/U1x window echoes and U5 window via windowPhrase/localWindow name the zone. Proven by localtime.test.ts and zone/title assertions in rollout.test.ts.", "U5's window: entered and displayed in the operator's local zone (02:00-04:00 NZST), stored as UTC; the read-first view says which zone in words": "UpdatePolicyScreen load converts standing UTC window -> local via localWindow, Save converts local -> UTC via localClockToUtc; read-window and window-zone hint carry windowZone in words. Decision (store UTC, presentation-only) ruled under ADR 0174 and posted to the issue. Proven by updatePolicy.test.ts (#1721 read-first view names the window zone).", "Unit tests on the formatting; the harness scenarios render with a fixed zone": "dashboard/tests/unit/localtime.test.ts covers localInstant/localWindow/localClockToUtc/zoneName with pinned zones; dashboard/playwright.harness.config.ts pins timezoneId 'Pacific/Auckland' and locale 'en-NZ' so scenario renders are deterministic." }, "summary": "The Updates screens render every instant and maintenance window in the viewer's local zone with the zone named once, the gateway UTC clock kept in the tooltip; the scheduler contract is unchanged.", "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#1721
No description provided.