provisioning: updates-see-state — one Updates surface telling the whole update story #52

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

Parent

Feature spec: #17 (provisioning).

What to build

The Updates surface of the P4b journey, driven by the update orchestrator seam
(ADR 0065) and mounted under shell's Settings (DS→P4b-U1, DDR 0099). It is the one
surface that tells the whole update story: P4b-U1 shows the updates pending the
operator's decision, the updates applying automatically, the quarantined releases,
and the revision the fleet is currently running, with the channel and last-checked
time. When nothing is pending and the fleet has converged, P4b-U1x is the resting
"up to date" state — it names the channel, revision and last-checked time and
reassures what happens without the operator (security auto-applies in the window;
features queue; a broken update rolls back), so a quiet fleet reads as working
rather than empty. When the control plane's own poll finds a signed release on the
pinned channel, P4b-U1 surfaces it, moving off the resting state.

The operator can drill into update history: each past update, what it did, and its
logs are available (ADR 0027), so "what changed just before this broke?" is always
answerable.

Notes: mounted under shell's Settings — hence the shell:settings edge. Release
notes are shipped signed with the release, rendered verbatim (no LLM in the update
path). Flow: docs/ux/flows/p4b-updates.mermaid.

Acceptance criteria

  • (story 21) Given the Updates screen, when the operator opens it, then P4b-U1 shows pending-my-decision updates, updates applying automatically, quarantined releases, and the revision the fleet is currently running, with the channel and last-checked time.
  • (story 22) Given nothing pending and the fleet converged, when the operator opens Updates, then P4b-U1x states everything is up to date, names the channel, revision and last-checked time, and reassures what happens without them (security auto-applies in the window; features queue; a broken update rolls back).
  • (story 22) Given a signed release appears on the pinned channel, when the control plane's own poll finds it, then P4b-U1 surfaces it (moving off the resting state).
  • (story 23) Given past updates, when the operator drills in, then each update, what it did, and its logs are available (ADR 0027).

Blocked by

  • #25 — reads fleet revision via clan
  • #37 — mounts under shell's Settings

Task manifest

task: provisioning:updates-see-state
implements_flow: p4b-updates
implements_edge: U1x→U1, U1→U1x
wireframe:
  - docs/ux/wireframes/p4b-updates/p4b-u1-updates.html
  - docs/ux/wireframes/p4b-updates/p4b-u1x-up-to-date.html
interface: "`update` orchestrator seam — updateState() aggregates one surface (pending / applying / quarantined / current revision + channel + last-checked); the control plane's own poll of the pinned channel surfaces a newly-found signed release; history(update) exposes what each past update did and its logs (ADR 0027)"
seam: "`update` orchestrator seam tests (control plane, Go) — fake channel (signed release metadata + notes) and fake clock; asserts the composed U1 surface, the U1x resting state, the poll moving off resting, and history drill-in"
acceptance:
  - given: the Updates screen
    when: the operator opens it
    then: P4b-U1 shows pending-my-decision, applying-automatically, quarantined, and the current revision, with channel and last-checked time
  - given: nothing pending and the fleet converged
    when: the operator opens Updates
    then: P4b-U1x states up to date, names channel/revision/last-checked, and reassures what happens without them
  - given: a signed release appears on the pinned channel
    when: the control plane's own poll finds it
    then: P4b-U1 surfaces it, moving off the resting state
  - given: past updates
    when: the operator drills in
    then: each update, what it did, and its logs are available (ADR 0027)
depends_on: [bootstrap:clan-seam, shell:settings]
out_of_scope:
  - "story 24–27 reviewing and approving a release — updates-review-approve's"
  - "the signed channel / binary cache / build host internals — settled in ADR 0017 and docs/architecture/11-update-supply-chain.md, consumed here"
needs_human_decision: []
## Parent Feature spec: #17 (provisioning). ## What to build The Updates surface of the P4b journey, driven by the `update` orchestrator seam (ADR 0065) and mounted under shell's Settings (DS→P4b-U1, DDR 0099). It is the one surface that tells the whole update story: P4b-U1 shows the updates pending the operator's decision, the updates applying automatically, the quarantined releases, and the revision the fleet is currently running, with the channel and last-checked time. When nothing is pending and the fleet has converged, P4b-U1x is the resting "up to date" state — it names the channel, revision and last-checked time and reassures what happens without the operator (security auto-applies in the window; features queue; a broken update rolls back), so a quiet fleet reads as working rather than empty. When the control plane's own poll finds a signed release on the pinned channel, P4b-U1 surfaces it, moving off the resting state. The operator can drill into update history: each past update, what it did, and its logs are available (ADR 0027), so "what changed just before this broke?" is always answerable. Notes: mounted under shell's Settings — hence the `shell:settings` edge. Release notes are shipped signed with the release, rendered verbatim (no LLM in the update path). Flow: `docs/ux/flows/p4b-updates.mermaid`. ## Acceptance criteria - [ ] (story 21) Given the Updates screen, when the operator opens it, then P4b-U1 shows pending-my-decision updates, updates applying automatically, quarantined releases, and the revision the fleet is currently running, with the channel and last-checked time. - [ ] (story 22) Given nothing pending and the fleet converged, when the operator opens Updates, then P4b-U1x states everything is up to date, names the channel, revision and last-checked time, and reassures what happens without them (security auto-applies in the window; features queue; a broken update rolls back). - [ ] (story 22) Given a signed release appears on the pinned channel, when the control plane's own poll finds it, then P4b-U1 surfaces it (moving off the resting state). - [ ] (story 23) Given past updates, when the operator drills in, then each update, what it did, and its logs are available (ADR 0027). ## Blocked by - #25 — reads fleet revision via clan - #37 — mounts under shell's Settings ## Task manifest ```yaml task: provisioning:updates-see-state implements_flow: p4b-updates implements_edge: U1x→U1, U1→U1x wireframe: - docs/ux/wireframes/p4b-updates/p4b-u1-updates.html - docs/ux/wireframes/p4b-updates/p4b-u1x-up-to-date.html interface: "`update` orchestrator seam — updateState() aggregates one surface (pending / applying / quarantined / current revision + channel + last-checked); the control plane's own poll of the pinned channel surfaces a newly-found signed release; history(update) exposes what each past update did and its logs (ADR 0027)" seam: "`update` orchestrator seam tests (control plane, Go) — fake channel (signed release metadata + notes) and fake clock; asserts the composed U1 surface, the U1x resting state, the poll moving off resting, and history drill-in" acceptance: - given: the Updates screen when: the operator opens it then: P4b-U1 shows pending-my-decision, applying-automatically, quarantined, and the current revision, with channel and last-checked time - given: nothing pending and the fleet converged when: the operator opens Updates then: P4b-U1x states up to date, names channel/revision/last-checked, and reassures what happens without them - given: a signed release appears on the pinned channel when: the control plane's own poll finds it then: P4b-U1 surfaces it, moving off the resting state - given: past updates when: the operator drills in then: each update, what it did, and its logs are available (ADR 0027) depends_on: [bootstrap:clan-seam, shell:settings] out_of_scope: - "story 24–27 reviewing and approving a release — updates-review-approve's" - "the signed channel / binary cache / build host internals — settled in ADR 0017 and docs/architecture/11-update-supply-chain.md, consumed here" needs_human_decision: [] ```
Author
Owner

Done — implemented the update orchestrator's see-state face (ADR 0065) in internal/update/, the P4b-U1 / P4b-U1x Updates surface (DDR 0099). Committed as 3af3859.

What shipped (every acceptance clause at the seam):

  • State() composes the one surface — pending-your-decision / applying-automatically / quarantined (each quarantine carrying failing node + failed check + attempts + log, ADR 0067) + the revision the fleet is running (channel + convergence) + the last-checked stamp. (story 21)
  • Resting is the U1x "up to date" state — true only when nothing is pending/automatic/quarantined and the fleet has converged — carrying the "what happens without you" reassurance (security auto-applies in the window; features queue; a broken update rolls back), so a quiet fleet reads as working, not empty (DDR 0095). (story 22)
  • Poll(ctx) is the control plane's own poll of the pinned channel via a ReleaseSource port; always stamps last-checked, records a newly-found signed release (placed by ADR 0017's policy split), and moves the surface off the resting state. Idempotent; the current revision is never surfaced as new. (story 22)
  • History() / HistoryFor(rev) drill-in (ADR 0027) — each past update names what it did (verbatim notes, no LLM per ADR 0068) and its Open/download log. (story 23)

Evidence: internal/update/{update,store,surface,history,fake}.go + update_test.go — 6 seam tests over FakeReleaseSource (signed metadata + notes) + a fake clock, covering the composed U1 surface, the U1x resting state + reassurance, the poll moving off resting, the policy-split classification, poll idempotency, and the history drill-in. go test ./..., go vet, gofmt all clean.

Deliberately out of scope (their own slices): the review/approve side P4b-U2 (stories 24–27), the rollout/rollback state machine that writes the applying/quarantined/history transitions (#70/#74 — the Store exposes Quarantine()/Record()/SetCurrent() as their write points), the update-policy editor P4b-U5, and the signed-channel/binary-cache internals (ADR 0017, consumed here).

Done — implemented the `update` orchestrator's **see-state** face (ADR 0065) in `internal/update/`, the P4b-U1 / P4b-U1x Updates surface (DDR 0099). Committed as `3af3859`. **What shipped (every acceptance clause at the seam):** - **`State()`** composes the one surface — pending-your-decision / applying-automatically / quarantined (each quarantine carrying failing node + failed check + attempts + log, ADR 0067) + the revision the fleet is running (channel + convergence) + the last-checked stamp. *(story 21)* - **`Resting`** is the U1x "up to date" state — true only when nothing is pending/automatic/quarantined **and** the fleet has converged — carrying the "what happens without you" reassurance (security auto-applies in the window; features queue; a broken update rolls back), so a quiet fleet reads as working, not empty (DDR 0095). *(story 22)* - **`Poll(ctx)`** is the control plane's own poll of the pinned channel via a `ReleaseSource` port; always stamps last-checked, records a newly-found signed release (placed by ADR 0017's policy split), and moves the surface off the resting state. Idempotent; the current revision is never surfaced as new. *(story 22)* - **`History()` / `HistoryFor(rev)`** drill-in (ADR 0027) — each past update names what it did (verbatim notes, no LLM per ADR 0068) and its Open/download log. *(story 23)* **Evidence:** `internal/update/{update,store,surface,history,fake}.go` + `update_test.go` — 6 seam tests over `FakeReleaseSource` (signed metadata + notes) + a fake clock, covering the composed U1 surface, the U1x resting state + reassurance, the poll moving off resting, the policy-split classification, poll idempotency, and the history drill-in. `go test ./...`, `go vet`, `gofmt` all clean. **Deliberately out of scope (their own slices):** the review/approve side P4b-U2 (stories 24–27), the rollout/rollback state machine that writes the applying/quarantined/history transitions (#70/#74 — the `Store` exposes `Quarantine()`/`Record()`/`SetCurrent()` as their write points), the update-policy editor P4b-U5, and the signed-channel/binary-cache internals (ADR 0017, consumed here).
ben closed this issue 2026-07-25 11:58:58 +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#52
No description provided.