control panel: wire the four device-add CONNECT ops over control-plane HTTP — the deployed dialog connect stage is founding-stdio-only #1459
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
Reference
Matou/idss#1459
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?
The gap
DDR 0240's connect-before-check stage works in the panel harness (#1415:
ConnectScreen.vue+DeviceAddSurface.vue+ the four optionalDeviceAddSourceops
connectDevice/offerDialIn/awaitDialIn/checkDevice, proven againstFakeDeviceAddSource). But it does not work on the deployed control panel,because the four ops have no control-plane HTTP transport.
(
internal/founding/stdio.goOpConnectDevice,internal/founding/connectcheck.go)— reachable by the packaged app's founding path over Electron IPC.
client.
dashboard/src/lib/api/enrollClient.tsHttpDeviceAddClientimplementsonly
mintCode/revokeCode/watchCallIn+ the broker opsplaceOptions/serverOffer/rentServer(#1398). It has noconnectDevice/offerDialIn/awaitDialIn/checkDevice.internal/controlapi/enroll_rent.goserves/api/v1/enroll/places|server-offer|rentbut no
/enroll/connect|dial-in|check, anddashboard/src/lib/api/generated.tscarries no such methods.
Consequence: on the served dashboard
DeviceAddSurface.hasConnectisfalse, soown-vps / self-hosted skip the connect stage and fall through to mint-and-wait
(the intended graceful fallback — "a seam that cannot reach devices skips it").
What's needed
internal/controlapi/enroll_*.go),reusing the founding bridge's
connectcheck.gologic where possible.generated.ts.HttpDeviceAddClient, gated behind an/enroll/configcapabilityflag mirroring
has_broker(so an older gateway omits them and the dialog skipsthe stage — the existing path), with fake<->http parity.
Unblocks
journey.device.spec.ts).A sibling prerequisite for that live leg: the device-add live fixture
app/tests/e2e/fixtures/deviceAdd.tsmintCliCodestill drives the removeddevice-add-drill-inand must migrate to the newdevice-add-dialogflow(place -> form -> path-cli -> connect) before the connect leg can be driven live.
Filed by agent under ADR 0174 (follow-up from the #1452 session) — veto anytime.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
ready-for-agent(categoryenhancementkept).Triage checks.
HttpDeviceAddClient(dashboard/src/lib/api/enrollClient.ts) implements onlymintCode/revokeCode/watchCallIn+ the broker ops, andinternal/controlapi/enroll_rent.goserves/enroll/places|server-offer|rentbut noconnect|dial-in|check. Confirmed the gap; not already implemented.docs/ux/wireframes/p2-device-add-cli/p2-s1c-connect-and-check.htmlexists,ConnectScreen.vue+DeviceAddSurface.vue+ the four optionalDeviceAddSourceops shipped in #1415, andinternal/founding/connectcheck.goholds the reusable Go logic (#1413). Nothing to design → notneeds-design.needs_human_decisionresidue. Adding an HTTP transport that mirrors the founding-stdio bridge and gates behind an/enroll/configcapability flag (likehas_broker, #1398) is additive and does not widen the security posture — an older gateway omits the ops and the dialog keeps its existing skip-the-stage fallback.Why a two-way door: a label change plus additive routes/client methods gated behind a capability flag, revertible by commit with zero product loss (fallback is the current shipped behaviour).
What proves it: fake↔http parity on the four ops, a controlapi integration test over the real routes, and openapi
check:clientin sync — the same proof shape #1398/#1431 used for the sibling enroll ops.Note for the implementer: the live fixture migration named under Unblocks (
app/tests/e2e/fixtures/deviceAdd.tsmintCliCode→ thedevice-add-dialogflow) is a prerequisite for #1452's live leg, not for the transport work here.swarm-claim host=matou-dev-server-01 run=22605
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1459 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope