updates: rollback-ui — the U4x rolled-back screen, end-early and retry wiring (#74) #112

Closed
opened 2026-07-26 19:40:52 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #17 (provisioning/P4b updates). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Blocker and a post-rule-2b violation: #74 shipped only the Go half; the U4x screen was never built and the #106–#109 remediation wave missed it. dashboard/src/lib/rollout.ts carries no failure fields (line 19 explicitly punts to #74), UpdatesSurface.vue branches only rolling-out→applied, and quarantine-now/EndEarly has no UI anywhere.

What to build

The U4x Rolled-back screen per p4b-u4x-rolled-back.html; failure fields on RolloutView; the U4x branch in UpdatesSurface.vue; wire quarantine-now to the seam's EndEarly and pre-quarantine retry to RetryByHand. The seam already exposes everything needed (internal/update/rollout.go:126-131, rollback.go:83,102). Flow edges U3→U4x, U4x→U3, U4x→U1 become reachable.

Acceptance criteria

  • Given a rollout whose first attempt failed and rolled back, when I open Updates, then U4x renders per the wireframe (what failed, evidence, what happens next) from seam data.
  • Given U4x, when I choose to end the attempts early, then the seam's EndEarly runs and the quarantine state is shown — without waiting for the second failure.
  • Given U4x before quarantine, when I retry by hand, then RetryByHand runs and the screen returns to rolling-out (U4x→U3).
  • Given a completed rollback, U4x offers the return to U1.

Blocked by

None — #74's seam is closed; #106–#109 shipped the sibling screens.

Task manifest

task: provisioning:updates-rollback-ui
implements_flow: p4b-updates
implements_edge: "U3→U4x; U4x→U3 (retry-by-hand); U4x→U1; quarantine-now→EndEarly"
wireframe: docs/ux/wireframes/p4b-updates/p4b-u4x-rolled-back.html
interface: "a dashboard RolledBackScreen (U4x) in the Updates surface, over the closed internal/update rollout/rollback seam; failure fields surfaced on RolloutView"
seam: "component tests against the wireframe's data-field/data-action/data-status contract; acts only through EndEarly/RetryByHand — no local truth"
acceptance: "#74's UI-facing clauses become true (see Acceptance criteria above)"
depends_on: []
out_of_scope: [rollback mechanics (closed in #74), maintenance-window queue-guard bypass in RetryByHand (tracked separately as nice-to-have)]
needs_human_decision: []
## Parent Feature spec: #17 (provisioning/P4b updates). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Blocker and a post-rule-2b violation: #74 shipped only the Go half; the U4x screen was never built and the #106–#109 remediation wave missed it. `dashboard/src/lib/rollout.ts` carries no failure fields (line 19 explicitly punts to #74), `UpdatesSurface.vue` branches only rolling-out→applied, and `quarantine-now`/`EndEarly` has no UI anywhere. ## What to build The U4x Rolled-back screen per `p4b-u4x-rolled-back.html`; failure fields on `RolloutView`; the U4x branch in `UpdatesSurface.vue`; wire `quarantine-now` to the seam's `EndEarly` and pre-quarantine retry to `RetryByHand`. The seam already exposes everything needed (`internal/update/rollout.go:126-131`, `rollback.go:83,102`). Flow edges U3→U4x, U4x→U3, U4x→U1 become reachable. ## Acceptance criteria - [ ] Given a rollout whose first attempt failed and rolled back, when I open Updates, then U4x renders per the wireframe (what failed, evidence, what happens next) from seam data. - [ ] Given U4x, when I choose to end the attempts early, then the seam's EndEarly runs and the quarantine state is shown — without waiting for the second failure. - [ ] Given U4x before quarantine, when I retry by hand, then RetryByHand runs and the screen returns to rolling-out (U4x→U3). - [ ] Given a completed rollback, U4x offers the return to U1. ## Blocked by None — #74's seam is closed; #106–#109 shipped the sibling screens. ## Task manifest ```yaml task: provisioning:updates-rollback-ui implements_flow: p4b-updates implements_edge: "U3→U4x; U4x→U3 (retry-by-hand); U4x→U1; quarantine-now→EndEarly" wireframe: docs/ux/wireframes/p4b-updates/p4b-u4x-rolled-back.html interface: "a dashboard RolledBackScreen (U4x) in the Updates surface, over the closed internal/update rollout/rollback seam; failure fields surfaced on RolloutView" seam: "component tests against the wireframe's data-field/data-action/data-status contract; acts only through EndEarly/RetryByHand — no local truth" acceptance: "#74's UI-facing clauses become true (see Acceptance criteria above)" depends_on: [] out_of_scope: [rollback mechanics (closed in #74), maintenance-window queue-guard bypass in RetryByHand (tracked separately as nice-to-have)] needs_human_decision: [] ```
Author
Owner

Done in 0ac036f (on origin/main).

The P4b-U4x rolled-back screen #74 never built is now real, over the closed internal/update rollout/rollback seam — no local truth, acts only through EndEarly/RetryByHand.

  • Failure fields on the dashboard rollout contract (dashboard/src/lib/rollout.ts): rolledBack / rollback (a RollbackDetail) / attempt / attemptsAllowed / rolledBackAt / quarantined on RolloutView; endEarly / retryByHand on RolloutSource; rolledBackView / quarantinedView / failureLine; FakeRolloutSource mirrors the seam (EndEarly quarantines in place; RetryByHand returns to rolling out).
  • RolledBackScreen.vue (P4b-U4x) built to the wireframe (p4b-u4x-rolled-back.html) data-field/data-action/data-status contract: rolled-back pill, attempt count + clock, failure summary (fleet back on its previous revision and healthy), evidence (node / check / rollback mechanic / now-on), and the next-attempt copy.
  • UpdatesSurface.vue U4x branch (edge U3→U4x). "Don't try again" → seam EndEarly — quarantine shown without waiting for the second failure (AC2); "Retry now" → RetryByHand returns to U3 (AC3, U4x→U3); the quarantined state offers the return to U1 (AC4, U4x→U1).

Acceptance: all four clauses covered.

Evidence: dashboard/tests/unit/rollback.test.ts (16 tests) against the wireframe contract; full dashboard suite green (432 tests); vue-tsc build clean.

Done in `0ac036f` (on `origin/main`). The P4b-U4x rolled-back screen #74 never built is now real, over the closed `internal/update` rollout/rollback seam — no local truth, acts only through `EndEarly`/`RetryByHand`. - **Failure fields** on the dashboard rollout contract (`dashboard/src/lib/rollout.ts`): `rolledBack` / `rollback` (a `RollbackDetail`) / `attempt` / `attemptsAllowed` / `rolledBackAt` / `quarantined` on `RolloutView`; `endEarly` / `retryByHand` on `RolloutSource`; `rolledBackView` / `quarantinedView` / `failureLine`; `FakeRolloutSource` mirrors the seam (EndEarly quarantines in place; RetryByHand returns to rolling out). - **`RolledBackScreen.vue` (P4b-U4x)** built to the wireframe (`p4b-u4x-rolled-back.html`) `data-field`/`data-action`/`data-status` contract: rolled-back pill, attempt count + clock, failure summary (fleet back on its previous revision and healthy), evidence (node / check / rollback mechanic / now-on), and the next-attempt copy. - **`UpdatesSurface.vue`** U4x branch (edge U3→U4x). "Don't try again" → seam `EndEarly` — quarantine shown **without waiting for the second failure** (AC2); "Retry now" → `RetryByHand` returns to U3 (AC3, U4x→U3); the quarantined state offers the return to U1 (AC4, U4x→U1). **Acceptance:** all four clauses covered. **Evidence:** `dashboard/tests/unit/rollback.test.ts` (16 tests) against the wireframe contract; full dashboard suite green (432 tests); `vue-tsc` build clean.
ben closed this issue 2026-07-26 21:59:27 +00:00
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#112
No description provided.