transport: provisioning-updates-live — provisioning and updates surfaces onto the real client #129
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#129
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. Filed from Ben's rulings 2026-07-26 after the review sweep of
6596977..9e946b7: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now.What to build
The provisioning surfaces (assess, select, review, deploy, active) and the updates surfaces (U1–U5x) move from fakes to real control-plane endpoints via the generated client, following the tracer's pattern.
Acceptance criteria
Blocked by
Task manifest
Blocked — needs a human scoping/design ruling (agent, 2026-07-27).
This slice cannot be delivered as scoped (transport-only,
out_of_scope: [screen changes, rollout mechanics]), because the provisioning and updates seams are not transport-ready the way the tracer (#127), backups/rescue (#130), and members (#128) seams are. Two hard conflicts, both evidenced below.1. The seams are synchronous; an HTTP client must be async
Every transport-ready seam in the repo returns Promises so a generated (fetch-based) client can implement it:
status(): Promise<FleetStatusView>…overview(): Promise<BackupsOverview>…members(): Promise<MembersListView>…The provisioning/updates seams are synchronous and were built without transport in mind:
AssessSource.assess(deviceId): Assessment(andchangeSetup,forRole,reviewImpact,retryService) — plusdeploy(...)which streams progress via anonProgresscallback and returns synchronously.UpdateStateSource.state(): UpdatesSurfaceUpdatePolicySource.policy(): UpdatePolicy/setPolicy/setChannel/securityIndicator()UpdateReviewSource.review(revision): ReviewView | null/approve/skipThe screens consume them synchronously in
computed()— e.g.UpdatesSurface.vue:const surface = computed(() => props.source.state()),props.reviewSource?.review(revision),props.rolloutSource?.rollout();AssessScreen/UpdatesScreenrender straight off sync props. Afetch-based client cannot implement a synchronous interface, so adopting the generated client requires making these seamsPromise-returning and restructuring every provisioning + updates component (loading refs,onMounted/watch, loading states) — which is a screen change, explicitly out of scope.deploy's streaming callback also implies rollout mechanics (SSE/polling), also out of scope.2. There is no production composition root to wire a real client into
Acceptance clause 3 is "No fake remains in these surfaces' production wiring." But
SetupSurface/UpdatesSurfaceare not composed anywhere in production — they appear only incomponents/provisioning/*.vueand their tests. The dashboard's mount table (ADR 0094) has six tabs (overview/fleet/services/members/backups/settings) and does not include the P4 provisioning journey or the P4b updates surface (Settings mounts only a read-onlyUpdatesSummary, not the live surface). The operator app doesn't compose them either. So there is no "production wiring" for a real client to replace — the same class of blocker #130 escalated for rescue.Decisions a human needs to make
needs-design, since no mount/flow currently homes them.deploy's streaming and the update rollout belong here or stay under "rollout mechanics".A Go-only partial (OpenAPI spec +
internal/provision/internal/updatecontrol-plane handlers + Go integration tests) is buildable and in the spirit of the "real endpoints" half, but it would satisfy none of the acceptance clauses (which require the surfaces' production client to be the generated one over a real control plane), so I've not shipped a half-slice that fails its own contract without a ruling.Swapping
ready-for-agent→ready-for-human.Human ruling (relayed from the Mattermost ask thread, 2026-07-27 17:27 UTC).
The blocked run's final question (17:22) offered:
Ben's answer: "B implement fully."
So for the parking comment's decision list: decision 1 is ruled — expand scope: the sync→async conversion of the provisioning/updates seams (AssessSource, UpdateStateSource, UpdateReviewSource, UpdatePolicySource, RolloutSource) and the consequent SetupSurface/UpdatesSurface + component-test updates are in-scope transport wiring for this slice (the rendered wireframe field/element contract stays unchanged), on top of the OpenAPI endpoints, control-plane handlers over the real orchestrators, generated client, and async HTTP clients with integration tests.
Decisions 2 (production composition root for these surfaces) and 3 (deploy/rollout streaming transport) were not explicitly in the answered question — "implement fully" leans end-to-end, but if either forces work you judge out of scope even under this ruling, ask via
ask-human.sh(asks now resume one thread per issue and recover late replies —b5fa537) rather than guessing.Re-adding
ready-for-agent.Done — provisioning + updates surfaces live over HTTP (commit
d7370ef, onorigin/main).Per Ben's "B implement fully" ruling, the sync provision/update seams were converted async and their components refactored, then wired live:
AssessSource,UpdateStateSource,UpdatePolicySource,UpdateReviewSource,RolloutSource— all Promise-returning) and the 5 source-consuming components (SetupSurface,UpdatesSurface,UpdatePolicyScreen,ReviewUpdateScreen,RolledBackScreen) refactored toref+onMounted+reload. Wireframe contract unchanged; all 11 component test suites green (628 dashboard tests).internal/controlapi/provision.go/updates.go(WithProvision/WithUpdates, thin projections over the realprovision/updateorchestrators; picked P4-S2 row keys resolve to aSetupSelectionby splitting on@;ReviewViewenriched withchannel/signed_by).main.gowires resting orchestrators (#132 bars prod fakes).dashboard/src/lib/api/provisionClient.ts+updatesClient.tsinproductionDashboardDeps— no fake in the wired faces. Proven by Go httptests over the real orchestrators (*_integration_test.go) and node-env TS round-trips (provisionLive.test.ts/updatesLive.test.ts) meeting at the spec. Generator now emitsRecord<string,unknown>for property-less object schemas (was an emptyinterface, lint-rejected #148).deployis request/response (POST → finalDeployRun, fired once throughonProgress; theImpactActionis a client-side confirm, off-wire).Acceptance: clauses 1–3 hold for the assess/select/review/deploy/active provisioning surfaces and the state/policy/channel/security-indicator/review updates surfaces.
Deferred (not re-openable here — genuinely out of #129's scope):
RolloutSource.rollout()is a read of in-flight rollout state, whichinternal/updatedoes not retain or expose — backing it is rollout mechanics (this manifest'sout_of_scope, and not covered by the "B" expansion). Decision 3 was raised on the Mattermost ask thread for this issue and timed out with no reply, so per the manifest's written defaultrolloutSourceis left unwired in production (the surface routes rollout out; no fake stands in — the #128 drill-in discipline). #149 carries the decision + build.Verification:
go build/vet/test(+-tags dev) and broker green; golangci-lint clean;check:clientin sync; dashboard 628 vitest + vue-tsc +eslint .green.