Provisioning progress: explore splitting the one weighted bar into two — service download and installation #434
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#434
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?
Request (Ben, live QA 2026-08-11)
During the Files deploy the single weighted bar (DDR 0156) sat at 26% for the entire fat middle step — correct by construction (the deploy-services step weighs 12/19 and the wire only reports step transitions), but it reads as frozen during a long first-time closure download.
Explore splitting the deploy progress into two bars:
Notes for the design pass
DeployRunframes carry step transitions only, no per-step estimate — the running step shows an indeterminate shimmer (DeployProgress.vue, DDR 0156; sibling of the founding bar, DDR 0144). Real download progress exists underneath (nix copy/substitution reports bytes) but is not surfaced through the clan seam today; the seam would need to carry it (an Event stream already exists onDeploy.Run).Design tier complete (Ben's deploy-bar-ui-refactor session, 2026-08-11): DDR 0164 — the deploy bar splits into download and install (
docs/adr/0164-design-the-deploy-bar-splits-into-download-and-install.md). Ruled: two stacked bars on P4-S4 — Downloading service software fills from the measured substitution signal (paths done/total, bytes on the live line; covers seed-closures + the node's substitution inside deploy-services), Installing & starting fills by settled step slices with a calibrated within-slice fill ("~N min left") from this machine's last install; first-ever deploy shows shimmer + the honest seeded range (ADR 0100). Wire: the polled DeployRun frame grows the download-progress field; calibration splits download/install durations. Founding's single bar (DDR 0144) explicitly untouched. Note #429 is a prerequisite for the bars to be honest. Frame amended:p4-s4(✎ 2026-08-11). Flipping to ready-for-agent.Landed as
7791dcaon origin/main (DDR 0164).What shipped
Seam (Go):
DeployRungrowsDownload {paths_done, paths_total}— the measured substitution signal (the DDR 0134 honesty class founding's enroll-copy uses).applyRevisionnow consumes theclan.DeployEvent stream: it counts store-path lines (copying path/building) onto the numerator, reads the stageTotalas the denominator, and rides the raw nix line as the deploy-services live line (bytes on the live line). A stream-less deploy leavesDownloadnil and the download bar shows the honest shimmer, never a fabricated number (ADR 0100).snapshot()deep-copies it; the fake seam gainsFakeConfig.SubstitutionPathsto drive the wiring under test.UI (dashboard):
DeployProgress.vuerenders TWO stacked bars per the p4-s4 ✎ amendment — Downloading service software (data-bar="download",download-measure"N of M · P%", measured fill) above Installing & starting (data-bar="install", settled step slices, the switch weighs the fat slice), each with its owndata-state, per-bar monotonic hold, and shimmer on the running bar only. Founding's single bar (DDR 0144) untouched.Evidence:
internal/provision/deploy_test.go(TestDeploy_StreamsTheMeasuredDownloadSignal,TestDeploy_NoSubstitutionStreamLeavesDownloadNil) — go test + -race green;dashboard/tests/unit/provisionDeployProgress.test.ts(11 tests, two-bar contract) — full dashboard suite 1025 green, vue-tsc clean; gofmt/vet/golangci-lint clean; pre-push Go gate (go test ./...) green.Follow-ups (noted in STATUS.md, not blocking this slice):
clan machines updateadapter still runs as a blockingcli.Runand emits no per-path Progress events — the download bar reads measured the moment that adapter streams its nix output; the consumer + seam field are already in place.