transport: updates-rollout-live — the U3/U4/U4x rollout surface onto the real client (needs the rollout-state read) #149
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.
Depends on
Reference
Matou/idss#149
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
ADR 0037 / issue #129 (
transport:provisioning-updates-live). Filed by the #129 swarm run 2026-07-27 (commitd7370ef) — the piece of #129 that could not land in scope.What blocks it (decision 3, from #129's ruling)
#129 shipped the P4 provisioning surfaces and the P4b updates surfaces (state / policy / channel / security-indicator / review) LIVE over HTTP, and converted the rollout seam async along with the rest. But the rollout surface's live transport (U3 rolling-out / U4 applied / U4x rolled-back) could not go live:
RolloutSource.rollout()is a no-arg READ of the in-flight rollout view.internal/update.Orchestratorretains no queryable current-rollout state —Rollout(ctx,revision)/EndEarly/RetryByHandrun synchronously and return aRolloutResult; there is no "read the rollout progress" method.RolloutViewis far richer than the GoRolloutResult(title, startedAt, log, converged/total, membersSaw, rollback detail) — it needs a composition step over release metadata.Backing
rollout()live therefore requires building rollout-state retention + a progress read ininternal/update— i.e. rollout mechanics, which#129's manifest lists asout_of_scopeand Ben's "B implement fully" expansion did not cover. The ask on this (decision 3) posted to the Mattermost thread for #129 and timed out with no reply, so #129 proceeded on the manifest's written default:rolloutSourceis left unwired inproductionDashboardDeps(the surface routes rollout out; no fake stands in — the #128 drill-in discipline), and the rollout live client is this follow-up.Decision a human needs to make
Whether to build the rollout-state read (rollout mechanics) in
internal/updatenow, and if so its shape (retain the active rollout's staged progress; compose the richRolloutViewfromRolloutResult+ release metadata), sorollout()can be served by a real endpoint and the U3/U4/U4x screens go live end to end.What to build (once ruled in)
internal/update: retain the in-flight/last rollout and expose a read that composes the fullRolloutView(revision, title, started/applied, stages, converged/total, log, members-saw, rollback detail).GET /updates/rollout(+ theend-early/retry-by-handacts, which back onto the existingEndEarly/RetryByHand).internal/controlapi/updates.go: extendUpdateService+registerUpdateswith the rollout read/acts.dashboard/src/lib/api/updatesClient.ts: add theRolloutSourceface (already async), and wirerolloutSourceintoproductionDashboardDeps.updates.Task manifest
Human ruling (Ben, in-session 2026-07-28): build it — sequenced after the mount design.
Answering the manifest's
needs_human_decision:internal/updateretains the in-flight + last rollout and exposes a read composing the fullRolloutView(revision, title, started/applied, stages, converged/total, log, members-saw, rollback detail) fromRolloutResult+ release metadata; OpenAPIGET /updates/rolloutplus theend-early/retry-by-handacts over the existingEndEarly/RetryByHand.RolloutSourceseam; SSE/push stays out of scope.The design question is answered, so
needs-design/ready-for-humancome off; re-labellingready-for-agent. The frontier's native-dependency filter holds this ticket until #156 closes.Done — the P4b rollout surface (U3/U4/U4x) goes real over HTTP. Commit
4eee3e7onorigin/main(sandcastle: transport:updates-rollout-live #149).Human ruling followed (Ben, 2026-07-28, recorded in the comment above): built rollout-state retention + the progress read as specced, sequenced after #156 (which closed 2026-07-29, satisfying the native dependency); U3 read polls per the #151 poll/cache ruling, SSE/push out of scope.
What landed
internal/updatenow RETAINS the last rollout and composes the richRolloutView(internal/update/rolloutview.go) from the seam's ownRolloutResult+ release metadata — revision/title/started/applied, the staged order, converged/total, the members-saw line and the U4x rollback detail (failing node/service, scope-matched mechanic, what the fleet is on now). The rollout core (rollout.go/rollback.go) sets the retained view at each terminal point (applied → U4, rolled-back → U4x), so the read is a pure projection (ADR 0037). The view is transient (not persisted inStoreDoc); the durable state a restart must not forget is the ADR 0067 attempt budget onactive, which is already persisted.GET /updates/rollout(404 when no rollout has run → the client reads null and the surface rests at U1/U1x) +POST /updates/rollout/{revision}/{end-early,retry-by-hand}.internal/controlapiUpdateServicegrewRolloutState/EndEarly/RetryByHandover the real orchestrator;generated.tsregenerated,check:clientin sync.HttpUpdatesClientgrew theRolloutSourceface (a live pull the surface re-reads) and is wired REAL intoproductionDashboardDeps.updates.rolloutSource(was deliberately unwired-not-faked).Evidence
internal/controlapi/updates_rollout_integration_test.go): a real staged rollout → U4 applied and U4x rolled-back served over HTTP, plus end-early / retry-by-hand acts, and a no-rollout → 404.internal/update/rolloutview_test.go): the applied/rolled-back compose and EndEarly.dashboard/tests/unit/updatesLive.test.ts): the RolloutSource reads/acts over a real Node server, 404 → null; the four wired updates faces are allHttpUpdatesClient.go build ./.../go vet/gofmtclean;check:clientin sync; all 684 dashboard tests green.Out of scope / follow-ups (as the manifest notes)
main.goorchestrator is not yetWithRollout-wired (that live wiring is the engine-adapters arc), so the endpoint rests 404 until a real rollout runs — the same built-but-not-fully-composed discipline #184'sWithEnrollPendinguses.RetryByHandreturnsErrNotRollablebefore touching the nil clan, so the endpoints are safe in production.matou-build-agent referenced this issue2026-09-17 16:46:42 +00:00