provisioning: updates-see-state — one Updates surface telling the whole update story #52
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#62 provisioning: updates-review-approve — review a feature release and approve it for the window
Matou/idss
Reference
Matou/idss#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #17 (provisioning).
What to build
The Updates surface of the P4b journey, driven by the
updateorchestrator 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:settingsedge. Releasenotes are shipped signed with the release, rendered verbatim (no LLM in the update
path). Flow:
docs/ux/flows/p4b-updates.mermaid.Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010Done — implemented the
updateorchestrator's see-state face (ADR 0065) ininternal/update/, the P4b-U1 / P4b-U1x Updates surface (DDR 0099). Committed as3af3859.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)Restingis 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 aReleaseSourceport; 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 overFakeReleaseSource(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,gofmtall 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
StoreexposesQuarantine()/Record()/SetCurrent()as their write points), the update-policy editor P4b-U5, and the signed-channel/binary-cache internals (ADR 0017, consumed here).{token:...}; real kanidm answers[CUSessionToken, CUStatus]as an array, and even fixed the commit is MFA-policy-refused — by-hand temp_password 400s live (invite-member leg) #662preflight-red(the #20 probe has no retry), and the empty verdict error block sends the healer chasing a guard that never broke #1359preflight-red(the #20 probe has no retry), and the empty verdict error block sends the healer chasing a guard that never broke #1359