dashboard HttpDeviceAddClient: wire placeOptions / serverOffer / rentServer to the new enroll ops so the real panel opens the dialog on the place screen #1398
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1398
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
Control-panel UI pass, Ben 2026-09-10/11 (branch
founding-ui-two-colour-rail-ceremony, unmerged at filing). Device-add spec #13 (ADRs 0053–0057, DDR 0109); founding Access step P1-S4/S4a (ADR 0189 / DDR 0190). The dashboard half is BUILT on the branch:dashboard/src/components/device-add/{PlaceScreen,RentServerScreen,RentedScreen}.vue,DeviceAddSurface.vue(stages place → rent → rented | form),shell/DeviceAddDialog.vue, seamdashboard/src/lib/deviceAdd.ts(DevicePlaceOption,ServerOffer,RentServerRequest,RentedServer; OPTIONALplaceOptions/serverOffer/rentServeronDeviceAddSource), fakedashboard/tests/fakes/deviceAdd.ts, browser harnesscd dashboard && pnpm harness→http://localhost:5198/panel.html?scenario=steady.What to build
dashboard/src/lib/api/enrollClient.tsHttpDeviceAddClientimplements the three OPTIONALDeviceAddSourceops the dialog reads (placeOptions(),serverOffer(),rentServer(req)) over the generated client (dashboard/src/lib/api/generated.tsregenerated from the control API's OpenAPI once #1397 lands): snake/camel mapping as the mint does, a broker fault surfacing as the rent card's in-place error (rentError, Retry), never a thrown-away promise. Because the ops are optional on the seam, a control plane WITHOUT them (an older gateway) still opens the dialog straight on the enrol form — keep that: the client declares the methods only when the config read (GET /api/v1/enroll/config) says the gateway has a broker (addhas_broker: boolto the config view if it is not there).Acceptance criteria
has_broker: true, when the operator opens Add a device from the Overview, Fleet or the codes ledger, then the dialog opens on the place screen with the seam's three places.has_broker: false, when opened, then the dialog opens on the enrol form with no Back button and no rent path./api/v1/enroll/rentwith{name, region, preset}and the rented outcome shows the response's ip/preset/region; Done closes the dialog.dashboard/tests/unit/), when run, then the three ops are covered against a fake control-plane client, including the no-broker fallback.Blocked by
The rent-op ticket and #1395 (the wireframe the client's screens are held to).
Why agent
Thin client wiring over a landed API — two-way door, provable by unit tests + the harness.
GET /enroll/places,GET /enroll/server-offer,POST /enroll/rent(the broker rents, the box enrols itself with a code minted for it)journey.rented-device.spec.tson the standing rented community: Overview → Add a device → place → rent → the box calls in → the device card → remove → reap; GREEN is the only closejourney.rented-device.spec.tson the standing rented community: Overview → Add a device → place → rent → the box calls in → the device card → remove → reap; GREEN is the only close #1400Blocked — the dashboard rent half this ticket wires to does not exist
I claimed #1398 and investigated. The ticket is framed as "thin client wiring over a landed API" — wire
HttpDeviceAddClient's three optional ops to an already-built dashboard half. That foundation is not reachable in any commit on any branch:PlaceScreen.vue,RentServerScreen.vue,RentedScreen.vue,shell/DeviceAddDialog.vue, and the place → rent → rented staging inDeviceAddSurface.vuehave never been added in any commit (checkedgit log --all --diff-filter=A).origin/founding-ui-two-colour-rail-ceremonydoes not contain them — itsdeviceAdd.tsis byte-identical tomainand itsDeviceAddSurface.vuereferences no rent screens. The branch was never pushed with the rent work.dashboard/src/lib/deviceAdd.tshas none ofDevicePlaceOption/ServerOffer/RentServerRequest/RentedServer, andDeviceAddSourcehas no optionalplaceOptions/serverOffer/rentServerops (git log --all -S DevicePlaceOption/-S RentServerRequest→ empty). The fake intests/fakes/deviceAdd.tshas no rent methods either./enroll/{places,server-offer,rent}to #1400 (see its close note: "Next (#1400 live half): … the openapi contract for the three routes"). Sopackages/openapi-spec/openapi.yamlanddashboard/src/lib/api/generated.tshave none of the three routes, andEnrollConfighas nohas_broker.So the acceptance criteria #1–#4 (dialog opens on the place screen, the rent card, the rented outcome, the 502 error) require the entire dashboard rent UI + seam + fake to be built first — that is a separate workstream (Ben's control-panel UI pass), not "thin client wiring", and reconstructing it here would collide with that unmerged branch and with #1400's designated OpenAPI work when they land.
What I need from a human (asked, no reply in the window)
I posted this to Mattermost and waited the full window; no reply came, so I'm parking it. The scope fork:
has_broker+ OpenAPI 3 routes + regenerategenerated.ts+ seam types/ops + fake + client +PlaceScreen/RentServerScreen/RentedScreen+DeviceAddDialog+DeviceAddSurfacestaging + unit & component tests. Large; collides with the never-mergedfounding-ui-two-colour-rail-ceremonybranch and with #1400's OpenAPI.has_broker+ OpenAPI 3 routes + regenerate + seam types/ops + fake +HttpDeviceAddClientops + unit tests (acceptance #5) — and let the UI screens (#1–#4) wait for Ben's branch to merge.founding-ui-two-colour-rail-ceremony, and/or do #1400's OpenAPI), then re-arm this ticket as the client-wiring slice it was written to be.Why human
A human must resolve the false premise: either merge/land the dashboard rent half + the
/enroll/{places,server-offer,rent}OpenAPI contract (so this becomes the thin wiring it was scoped as), or explicitly rescope this ticket to build the whole feature here. The choice is a cross-workstream coordination call (collision with an unmerged human branch and with #1400) that is not an agent's to make unilaterally. Re-addready-for-agentonce the foundation is onmainor the ticket is rescoped.Unblocked and re-scoped — ready-for-agent (ruled by session under ADR 0174 on Ben's 2026-09-12 sitting; veto anytime).
Both halves now exist on
origin/main:606531a0(the control-panel pass):dashboard/src/components/device-add/{PlaceScreen,RentServerScreen,RentedScreen}.vue, theDeviceAddSurface.vuestages,shell/DeviceAddDialog.vue,src/lib/deviceAdd.ts(optionalplaceOptions / serverOffer / rentServeronDeviceAddSource),tests/fakes/deviceAdd.ts, unit coverage intests/unit/deviceAddStages.test.ts;a575406b(#1397):internal/controlapi/enroll_rent.goregistersGET /api/v1/enroll/places,GET /api/v1/enroll/server-offer,POST /api/v1/enroll/rent.What is still missing, and is this ticket:
a575406bdid NOT add the three routes topackages/openapi-spec/openapi.yaml(the commit touched no spec file), sodashboard/src/lib/api/generated.tshas nogetEnrollPlaces / getEnrollServerOffer / postEnrollRent, andHttpDeviceAddClient(dashboard/src/lib/api/enrollClient.ts) implements none of the three optional ops. Do:enroll_rent.go'sDevicePlaceOption,ServerOffer,RentedServer,rentServerRequest(snake_case on the wire, #126); addhas_broker: boolto the/enroll/configview (the Go side: true when a broker client is composed). Regenerate the client (pnpm -C packages/openapi-spec …per the repo's check:client).HttpDeviceAddClient: declareplaceOptions / serverOffer / rentServerONLY when the config read sayshas_broker(an older gateway still opens the dialog straight on the enrol form — the surface already handles the absent ops); camelize in, snakeize out as the mint does; a broker 5xx surfaces as the rent card'srentErrorwith Retry, never a thrown-away promise.cd dashboard && pnpm harness) shows the dialog opening on the place screen in thesteadyscenario — already true with the fake.Acceptance criteria in the body stand as written. Ben's eyes on the live dialog come after, on the next rented drive (#1400 is the live round-trip).
swarm-claim host=matou-dev-server-01 run=22596
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=bens-mac-04 run=22601
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1398 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
journey.rented-device.spec.tson the standing rented community: Overview → Add a device → place → rent → the box calls in → the device card → remove → reap; GREEN is the only close #1400