provisioning: updates-review-approve — review a feature release and approve it for the window #62

Closed
opened 2026-07-25 04:57:06 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #17 (provisioning).

What to build

The review-and-approve step of the P4b journey, driven by the update
orchestrator seam. A feature or major release — or any release while auto is off —
arrives as pending-my-decision and the operator opens it to decide (P4b-U2). The
review shows release notes written in plain language and shipped signed with
the release, rendered verbatim (not generated per fleet, so two communities on the
same channel read identical text — ADR 0068), plus what it touches in this
fleet's terms: which nodes, which services, when, and what happens if it fails.
Approving queues it for the next maintenance window, so it applies when members are
least affected. Skipping returns it to the pending list where it keeps saying so —
nothing is lost, nothing applies itself, and the operator is neither nagged nor
overridden (ADR 0015).

Notes: release notes are Matou-authored and ship signed as a release artifact —
the dashboard adds only the local framing (which of this fleet's nodes/services
are touched), never what the change is. Flow: docs/ux/flows/p4b-updates.mermaid.

Acceptance criteria

  • (story 24) Given a feature or major release (or any release while auto is off), when it arrives, then it appears as pending-my-decision and the operator opens it to decide.
  • (story 25) Given P4b-U2, when the operator reviews an update, then it shows release notes written in plain language and shipped signed with the release (rendered verbatim, not generated per fleet), plus what it touches in this fleet's terms — which nodes, which services, when, and what happens if it fails.
  • (story 26) Given a reviewed update, when the operator approves it, then it is queued for the next maintenance window.
  • (story 27) Given a pending update, when the operator skips it, then it returns to the pending list and keeps saying so; nothing is lost and nothing applies itself (ADR 0015).

Blocked by

  • #52 — reviews an item from the Updates surface

Task manifest

task: provisioning:updates-review-approve
implements_flow: p4b-updates
implements_edge: U1→U2, U2→U3, U2→U1
wireframe: docs/ux/wireframes/p4b-updates/p4b-u2-review-update.html
interface: "`update` orchestrator seam — review(release) renders the signed release notes verbatim (ADR 0068) with this-fleet framing (nodes/services/when/failure); approve(release) queues it for the next maintenance window; skip(release) returns it to pending and keeps it there (ADR 0015)"
seam: "`update` orchestrator seam tests (control plane, Go) — fake channel (signed release metadata + notes), fake clock (maintenance windows); asserts feature/major queues for decision, verbatim notes + this-fleet framing, approve → queued-for-window, skip-and-stay-skipped"
acceptance:
  - given: a feature or major release (or any release while auto is off)
    when: it arrives
    then: it appears as pending-my-decision and the operator opens it to decide
  - given: P4b-U2
    when: the operator reviews an update
    then: it shows plain-language, signed, verbatim release notes plus this-fleet framing (which nodes, which services, when, and what happens if it fails)
  - given: a reviewed update
    when: the operator approves it
    then: it is queued for the next maintenance window
  - given: a pending update
    when: the operator skips it
    then: it returns to the pending list and keeps saying so; nothing is lost and nothing applies itself (ADR 0015)
depends_on: [updates-see-state]
out_of_scope:
  - "story 28 automatic security in-window (no approval) — updates-rollout-happy's"
  - "the staged rollout mechanics after approval — updates-rollout-happy's"
  - "authoring the release notes — Matou-authored, shipped signed; consumed here"
needs_human_decision: []
## Parent Feature spec: #17 (provisioning). ## What to build The review-and-approve step of the P4b journey, driven by the `update` orchestrator seam. A feature or major release — or any release while auto is off — arrives as pending-my-decision and the operator opens it to decide (P4b-U2). The review shows release notes written in plain language and shipped **signed** with the release, rendered verbatim (not generated per fleet, so two communities on the same channel read identical text — ADR 0068), plus what it touches in *this* fleet's terms: which nodes, which services, when, and what happens if it fails. Approving queues it for the next maintenance window, so it applies when members are least affected. Skipping returns it to the pending list where it keeps saying so — nothing is lost, nothing applies itself, and the operator is neither nagged nor overridden (ADR 0015). Notes: release notes are Matou-authored and ship signed as a release artifact — the dashboard adds only the local framing (which of this fleet's nodes/services are touched), never what the change is. Flow: `docs/ux/flows/p4b-updates.mermaid`. ## Acceptance criteria - [ ] (story 24) Given a feature or major release (or any release while auto is off), when it arrives, then it appears as pending-my-decision and the operator opens it to decide. - [ ] (story 25) Given P4b-U2, when the operator reviews an update, then it shows release notes written in plain language and shipped signed with the release (rendered verbatim, not generated per fleet), plus what it touches in *this* fleet's terms — which nodes, which services, when, and what happens if it fails. - [ ] (story 26) Given a reviewed update, when the operator approves it, then it is queued for the next maintenance window. - [ ] (story 27) Given a pending update, when the operator skips it, then it returns to the pending list and keeps saying so; nothing is lost and nothing applies itself (ADR 0015). ## Blocked by - #52 — reviews an item from the Updates surface ## Task manifest ```yaml task: provisioning:updates-review-approve implements_flow: p4b-updates implements_edge: U1→U2, U2→U3, U2→U1 wireframe: docs/ux/wireframes/p4b-updates/p4b-u2-review-update.html interface: "`update` orchestrator seam — review(release) renders the signed release notes verbatim (ADR 0068) with this-fleet framing (nodes/services/when/failure); approve(release) queues it for the next maintenance window; skip(release) returns it to pending and keeps it there (ADR 0015)" seam: "`update` orchestrator seam tests (control plane, Go) — fake channel (signed release metadata + notes), fake clock (maintenance windows); asserts feature/major queues for decision, verbatim notes + this-fleet framing, approve → queued-for-window, skip-and-stay-skipped" acceptance: - given: a feature or major release (or any release while auto is off) when: it arrives then: it appears as pending-my-decision and the operator opens it to decide - given: P4b-U2 when: the operator reviews an update then: it shows plain-language, signed, verbatim release notes plus this-fleet framing (which nodes, which services, when, and what happens if it fails) - given: a reviewed update when: the operator approves it then: it is queued for the next maintenance window - given: a pending update when: the operator skips it then: it returns to the pending list and keeps saying so; nothing is lost and nothing applies itself (ADR 0015) depends_on: [updates-see-state] out_of_scope: - "story 28 automatic security in-window (no approval) — updates-rollout-happy's" - "the staged rollout mechanics after approval — updates-rollout-happy's" - "authoring the release notes — Matou-authored, shipped signed; consumed here" needs_human_decision: [] ```
Author
Owner

Done in commit f1a96be (internal/update/).

Built the update orchestrator's review-and-approve face (P4b-U2) test-first at the control-plane seam (review_test.go, stories 24–27):

  • Review(rev) — renders the release notes shipped signed with the release, verbatim (no LLM in the path, ADR 0068), plus this fleet's own framing: which nodes (gateway updated last), which services members feel, when (the next maintenance window), and what happens if it fails (rolled back automatically to the revision the fleet runs now). Only a pending-your-decision release is reviewable. (stories 24, 25)
  • Approve(rev) — moves the pending release to the new StateQueued: queued for the next maintenance window on the operator's explicit say-so; returns the window; idempotent. (story 26)
  • Skip(rev) — a real, first-class no-op that keeps the release pending and saying so (ADR 0015 — advice, never veto): nothing is lost, nothing applies itself; still reviewable and approvable later; survives a re-poll exactly once. (story 27)

Model: SignedRelease gained itemised per-fleet Nodes/Services framing beside U1's one-line Touches summary (both computed locally, not part of the signed payload); StateQueued added and surfaced in a new Queued section on the Updates surface, counted in the resting calc so an approved release keeps the surface off its resting U1x.

Out of scope, untouched: staged rollout mechanics after approval and story 28 automatic-security-in-window (updates-rollout-happy #70); authoring the notes (Matou-authored, consumed here).

Evidence: go test ./internal/update/ green (stories 24–27 in review_test.go); go build/vet/gofmt clean across the module. STATUS.md header updated in the same commit.

Done in commit `f1a96be` (`internal/update/`). Built the `update` orchestrator's **review-and-approve face** (P4b-U2) test-first at the control-plane seam (`review_test.go`, stories 24–27): - **`Review(rev)`** — renders the release notes shipped **signed with the release, verbatim** (no LLM in the path, ADR 0068), plus this fleet's own framing: which **nodes** (gateway updated last), which **services** members feel, **when** (the next maintenance window), and **what happens if it fails** (rolled back automatically to the revision the fleet runs now). Only a pending-your-decision release is reviewable. *(stories 24, 25)* - **`Approve(rev)`** — moves the pending release to the new `StateQueued`: **queued for the next maintenance window** on the operator's explicit say-so; returns the window; idempotent. *(story 26)* - **`Skip(rev)`** — a real, first-class no-op that keeps the release **pending and saying so** (ADR 0015 — advice, never veto): nothing is lost, nothing applies itself; still reviewable and approvable later; survives a re-poll exactly once. *(story 27)* **Model:** `SignedRelease` gained itemised per-fleet `Nodes`/`Services` framing beside U1's one-line `Touches` summary (both computed locally, not part of the signed payload); `StateQueued` added and surfaced in a new `Queued` section on the Updates surface, counted in the resting calc so an approved release keeps the surface off its resting U1x. **Out of scope, untouched:** staged rollout mechanics after approval and story 28 automatic-security-in-window (`updates-rollout-happy` #70); authoring the notes (Matou-authored, consumed here). Evidence: `go test ./internal/update/` green (stories 24–27 in `review_test.go`); `go build`/`vet`/`gofmt` clean across the module. `STATUS.md` header updated in the same commit.
ben closed this issue 2026-07-25 12:17:26 +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#62
No description provided.