provisioning: updates-policy-ui — the P4b-U5 policy screen and U5x auto-security-off indicator #109

Closed
opened 2026-07-25 12:58:43 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #17 (provisioning). Follow-up UI slice filed by design-verify 2026-07-25: #63 closed seam-only; this slice ships the owed screen(s) P4b-U5/U5x per swarm prompt rule 2b (the wireframe is the binding UI contract).

What to build

The U5 policy screen (security/patch and feature/major ranges, maintenance window, pin-or-fork the channel) and the U5x standing auto-security-off indicator as the first tenant of shell's chrome slot — evidence-based (pending count, oldest age, gateway affected), drill-in to the pending patches, gone the moment auto-security returns. Build to the two wireframes.

Acceptance criteria

  • Given Updates, when I open policy, then U5 renders both ranges, the window, and the channel setting incl. pin-or-fork (fields per wireframe).
  • Given auto-security turned off, when I save, then the chrome indicator appears with pending count, oldest age, and gateway-affected; drill-in lands on the pending patches; re-enabling removes it.

Blocked by

  • #63 provisioning:updates-policy-channel — the seam.
  • #106 — U1→U5 navigation.
  • #29 shell:ui-kit-mount-slot-contract — the chrome indicator slot.

Task manifest

task: provisioning:updates-policy-ui
implements_flow: p4b-updates
implements_edge: "U1→U5, U5→U5x, U5x→U1"
wireframe: [p4b-u5-update-policy.html, p4b-u5x-auto-security-off.html] (docs/ux/wireframes/p4b-updates/)
interface: "the U5 policy screen + the U5x chrome-slot indicator over the update seam's policy API"
seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard); reads only through the closed seam's API — no local truth"
acceptance: "the UI-facing Given/When/Then clauses of the parent seam ticket, verified against the rendered screen (see Acceptance criteria above)"
depends_on: [provisioning:updates-policy-channel, provisioning:updates-see-state-ui, shell:ui-kit-mount-slot-contract]
out_of_scope: [the seam behaviour itself (closed in the parent seam ticket) — this slice renders it, never reimplements it]
needs_human_decision: []
## Parent Feature spec: #17 (provisioning). Follow-up UI slice filed by design-verify 2026-07-25: #63 closed seam-only; this slice ships the owed screen(s) P4b-U5/U5x per swarm prompt rule 2b (the wireframe is the binding UI contract). ## What to build The U5 policy screen (security/patch and feature/major ranges, maintenance window, pin-or-fork the channel) and the U5x standing auto-security-off indicator as the first tenant of shell's chrome slot — evidence-based (pending count, oldest age, gateway affected), drill-in to the pending patches, gone the moment auto-security returns. Build to the two wireframes. ## Acceptance criteria - [ ] Given Updates, when I open policy, then U5 renders both ranges, the window, and the channel setting incl. pin-or-fork (fields per wireframe). - [ ] Given auto-security turned off, when I save, then the chrome indicator appears with pending count, oldest age, and gateway-affected; drill-in lands on the pending patches; re-enabling removes it. ## Blocked by - #63 provisioning:updates-policy-channel — the seam. - #106 — U1→U5 navigation. - #29 shell:ui-kit-mount-slot-contract — the chrome indicator slot. ## Task manifest ```yaml task: provisioning:updates-policy-ui implements_flow: p4b-updates implements_edge: "U1→U5, U5→U5x, U5x→U1" wireframe: [p4b-u5-update-policy.html, p4b-u5x-auto-security-off.html] (docs/ux/wireframes/p4b-updates/) interface: "the U5 policy screen + the U5x chrome-slot indicator over the update seam's policy API" seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard); reads only through the closed seam's API — no local truth" acceptance: "the UI-facing Given/When/Then clauses of the parent seam ticket, verified against the rendered screen (see Acceptance criteria above)" depends_on: [provisioning:updates-policy-channel, provisioning:updates-see-state-ui, shell:ui-kit-mount-slot-contract] out_of_scope: [the seam behaviour itself (closed in the parent seam ticket) — this slice renders it, never reimplements it] needs_human_decision: [] ```
Author
Owner

Done in 1228ab9 (on top of a merge of 8cc9ea8, #106's surface, which this composes into).

Built the P4b-U5 policy screen and the P4b-U5x standing auto-security-off indicator over the update seam's policy API (#63). The screens render the seam, never reimplement it.

  • dashboard/src/lib/updatePolicy.ts — mirrors the seam's Mode/ChannelChoice/SecurityIndicator shapes + the UpdatePolicySource port (policy() / setPolicy / setChannel / securityIndicator), a recording FakeUpdatePolicySource with the orchestrator's pin/fork/Matou and self-clearing indicator semantics, autoSecuritySummary, and securityIndicatorSource — the adapter that makes provisioning the first tenant of shell's standing-indicator chrome slot (ui-kit IndicatorSource, ADRs 0068/0094).
  • UpdatePolicyScreen.vue (U5, to the wireframe's fields): security-policy and feature-policy sliders spanning the full ADR 0017 range (never-apply-automatically genuinely reachable for security too), maintenance-window, channel incl. pin-or-fork with the sovereignty-exit note verbatim; seeds from the seam's policy(), writes back only on Save via SetPolicy/SetChannel; Cancel writes nothing; saving auto-security off is never blocked (ADR 0015).
  • U1→U5 / U5→U1: composed in UpdatesSurface — open-policy lands on U5, Save/Cancel rest back on U1 (#106's emit contract unchanged when no policy source is injected).
  • U5x: warning-severity, non-dismissible, evidence-based — pending count, oldest age, gateway-affected — drill-in See them (drill-in-pending) → the pending patches; a query re-read each render, so it appears when the auto-security-off save lands and is gone the moment auto-security is back on.

Acceptance: (1) U5 renders both ranges, the window, and the channel incl. pin-or-fork from the seam's policy; (2) saving auto-security off raises the chrome indicator with count/oldest/gateway, drill-in lands on the pending patches, re-enabling removes it. Evidence: 12 component tests in dashboard/tests/unit/updatePolicy.test.ts, including mounting the real NavChrome over provisioning's source end-to-end; vue-tsc + eslint clean. STATUS.md updated in the same commit.

Note: the slot contract carries one drill-in, so the chrome line carries "See them"; "turn it back on" lives one step in, on U5 itself.

Done in `1228ab9` (on top of a merge of `8cc9ea8`, #106's surface, which this composes into). Built the **P4b-U5 policy screen** and the **P4b-U5x standing auto-security-off indicator** over the `update` seam's policy API (#63). The screens render the seam, never reimplement it. - **`dashboard/src/lib/updatePolicy.ts`** — mirrors the seam's `Mode`/`ChannelChoice`/`SecurityIndicator` shapes + the `UpdatePolicySource` port (`policy()` / `setPolicy` / `setChannel` / `securityIndicator`), a recording `FakeUpdatePolicySource` with the orchestrator's pin/fork/Matou and self-clearing indicator semantics, `autoSecuritySummary`, and **`securityIndicatorSource`** — the adapter that makes provisioning the **first tenant of shell's standing-indicator chrome slot** (ui-kit `IndicatorSource`, ADRs 0068/0094). - **`UpdatePolicyScreen.vue`** (U5, to the wireframe's fields): `security-policy` and `feature-policy` sliders spanning the full ADR 0017 range (never-apply-automatically genuinely reachable for security too), `maintenance-window`, `channel` incl. **pin-or-fork** with the `sovereignty-exit` note verbatim; seeds from the seam's `policy()`, writes back **only on Save** via `SetPolicy`/`SetChannel`; Cancel writes nothing; saving auto-security off is never blocked (ADR 0015). - **U1→U5 / U5→U1**: composed in `UpdatesSurface` — open-policy lands on U5, Save/Cancel rest back on U1 (#106's emit contract unchanged when no policy source is injected). - **U5x**: warning-severity, non-dismissible, evidence-based — pending count, oldest age, gateway-affected — drill-in `See them` (`drill-in-pending`) → the pending patches; a query re-read each render, so it appears when the auto-security-off save lands and is **gone the moment auto-security is back on**. **Acceptance:** (1) U5 renders both ranges, the window, and the channel incl. pin-or-fork from the seam's policy; (2) saving auto-security off raises the chrome indicator with count/oldest/gateway, drill-in lands on the pending patches, re-enabling removes it. Evidence: **12 component tests** in `dashboard/tests/unit/updatePolicy.test.ts`, including mounting the real `NavChrome` over provisioning's source end-to-end; vue-tsc + eslint clean. STATUS.md updated in the same commit. Note: the slot contract carries one drill-in, so the chrome line carries "See them"; "turn it back on" lives one step in, on U5 itself.
ben closed this issue 2026-07-25 13:22:01 +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.

Reference
Matou/idss#109
No description provided.