control panel: the device-add dialog's CONNECT stage, driven on the standing device drive — by leg list #1452
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.
Depends on
Reference
Matou/idss#1452
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?
Surface
journey.device.spec.ts(--target device) gains one leg betweenmintanddevice-create; plus the panel harness (cd dashboard && pnpm harness,panel.html?scenario=steady) for the contract.Legs
connect-stage-shown— after the enrol form for own-vps/self-hosted the dialogshows the connect stage (the panel's twin of
[data-status="connect-device"]).own-vps-dials-out— real facts before any fleet row exists; the Fleet list has norow until the checks pass.
refusal-offers-command— a wrong address → the install command in place; thesame machine then dials in and lands as the SAME planned device.
row-is-measured— the fleet row's size equals what the machine reported.rented-unchanged— the rented path shows no connect stage (the existingdevice-createleg is byte-identical).Session under ADR 0174 — partial progress landed; the live half is blocked. Veto anytime.
What landed (the panel harness — the contract clause), commit
490bd1dfclicking "Add device". Cause was harness chrome, not the product — the own-vps
connect stage is tall enough that its continue button lands under the fixed
bottom-right
#harness-picker, whose label intercepted the click (the shorterself-hosted leg 14 cleared the picker, masking it). Fixed: the picker is now
pointer-events:nonewith its selects re-enabled, so a drive's click fallsthrough the chrome. The harness chrome can no longer steal the product's clicks.
rented-unchanged(this ticket's leg 5): the rented path nevermounts the connect stage — a rented box enrols itself (DDR 0240).
dashboardpreview-harness suite green (26), incl. connect legs 12/13/14.The harness now proves, against
FakeDeviceAddSource:connect-stage-shown(legs 9/12/14),
own-vps-dials-outreal facts before a row (leg 12),refusal-offers-command(leg 13), andrented-unchanged(leg 6b). Thefleet-row halves of legs 2/4 (
no row until checks pass,row-is-measured) areinherently the live drive's to prove — the harness fake fleet is static.
Why the live half is blocked — filed as #1459, #1452 now blocked-by it
The ticket's other clause —
journey.device.spec.tsgaining a connect leg on thestanding device drive — cannot be driven or proven yet:
HttpDeviceAddClient(
dashboard/src/lib/api/enrollClient.ts) does not implement the four connectops.
internal/controlapi/enroll_rent.goserves no/enroll/connect|dial-in|check,and
generated.tshas no such method. #1413 built the Go half only in thefounding stdio bridge (
internal/founding/stdio.go/connectcheck.go), reachedby the packaged app's founding path — not over control-plane HTTP.
DeviceAddSurface.hasConnectisfalse→ own-vps /self-hosted skip the connect stage live. There is no live connect stage to
drive a leg against. → #1459 (the missing transport).
app/tests/e2e/fixtures/deviceAdd.tsmintCliCodestill drives the removeddevice-add-drill-in(dashboard unittests assert that mount must never return) — the device-add live path must migrate
to the new
device-add-dialogflow before the connect leg can be inserted betweenmintanddevice-create.Routing
Left
ready-for-sessionand now blocked-by #1459. When the connect-ops HTTPtransport lands, a session inserts the live connect leg (own-vps dials out to the
carrier's
OC_E2E_DEVICE_IP, real facts, checks pass, the fleet row measured) anddrives it on the standing device drive.
Ruled by agent under ADR 0174 (two-way door: harness/test-chrome only; the live
transport is a separate build, filed not self-authorized).
Session under ADR 0174 — the #1459 blocker cleared, but the live connect leg has a DEEPER blocker that is a one-way door. Routing
ready-for-human. Veto anytime.The prior blocker (#1459) DID land — verified
The connect-ops HTTP transport is in:
internal/controlapi/enroll_connect.go(
WithEnrollDeviceConnect+ the four routes) andHttpDeviceAddClient's four ops(commit
7a7896ba). So the transport the prior session filed as #1452's blocker isno longer the obstacle.
Why the live connect leg STILL cannot be driven —
has_connectis FALSE on the deployed paneljourney.device.spec.tsdrives the DEPLOYED public dashboard over control-planeHTTP (
HttpDeviceAddClient), and the CONNECT stage only mounts when the seamcarries all four connect ops — i.e. when the gateway reports
has_connect: true(
DeviceAddSurface.vue:117,onMintat :183–192). On the shipped control plane itis false, and own-vps / self-hosted therefore SKIP the connect stage (the intended
fallback). Evidence in this tree:
control-plane/cmd/control-plane/main.go:1467composesWithEnroll(...)butnever calls
controlapi.WithEnrollDeviceConnect(...)— no productionEnrollDeviceConnectoris composed anywhere.enrollConfigFrom(control-plane/cmd/control-plane/compose.go:906) leavesHasConnectat its zero value; onlyHasBroker: falseis set, with the note thatthe live wiring "composes later (like the broker's #1400)".
internal/controlapi/enroll_connect.go:158–162says the same in its own words:"the live wiring composes later, like the rent path's #1400 … production leaves
has_connect false until one is composed."
So there is no live connect stage on the deployed panel for a
journey.device.spec.tsleg to drive. A leg asserting
[data-status="connect-device"]after the enrol formwould red every drive; a leg that passes whether or not the stage appears is a
can't-fail check (ADR 0100). Neither is landable.
Why this is a human door (rule 2)
The missing piece is a production
EnrollDeviceConnectorcomposed on the standinggateway. Founding already performs this connect — but from the operator's LAPTOP
(the packaged app SSHes OUT to the box, ADR 0152 shape A;
internal/founding/connectcheck.go). Composing it on the gateway control planegives the STANDING gateway SSH-out reach into operator-supplied device addresses —
a genuine widening of the gateway's blast radius, and a design decision about
whether the device-add dialog's connect stage belongs on the standing fleet at all
or stays founding-only (in which case the panel's skip-the-stage fallback is the
shipped behaviour and #1452's live leg is dropped, the panel-harness contract being
the whole deliverable). That decision — security posture + product shape — is a
human's, not an unattended agent's.
Secondary prerequisite (whichever way the above is decided)
The live page-driving fixtures in
app/tests/e2e/fixtures/deviceAdd.ts(
mintCliCode,approvePending,declinePending,backToFleetList) still drivethe removed
[data-field="device-add-drill-in"]. The 2026-09-12 UI pass (commit078cd5b3) replaced that in-place drill-in with the frame-owned dialog(
[data-field="device-add-dialog"]) → place screen → enrol form. So the devicedrive's
mintleg is itself stale against the shipped panel and must be migrated tothe dialog flow before ANY new leg is inserted between
mintanddevice-create.(These are page-driving fixtures, proven only by the live drive per this spec's own
philosophy — not landable-and-proven from an unattended session.)
What is already done
The panel-harness contract clause (this ticket's legs 1–5, as harness legs
9/12/13/14 + 6b) landed in
490bd1dfand is green againstFakeDeviceAddSource.The only outstanding clause is the live journey leg, blocked as above.
Why human
Driving the connect stage live on the standing device drive requires composing a
production
EnrollDeviceConnectoron the gateway sohas_connectis true. Thatgives the standing control plane SSH-out reach into operator-supplied device
addresses (founding does this from the operator's laptop, ADR 0152) — a
security-posture widening and a product-shape decision (does the panel's connect
stage belong on the standing fleet, or stay founding-only and let the panel keep
its skip-the-stage fallback?). A human must decide that before the live leg can be
written. Mirrors the still-open, unbuilt broker composition #1400.
Ruled by agent under ADR 0174 — veto anytime. Two-way parts done (harness contract,
490bd1df); the remaining part is a one-way door, so it stops here. Relabelledready-for-human; the blocked-by #1459 relation is now stale (that transportlanded).
device-add-drill-in— Add device is a DIALOG (device-add-dialog) since the control-panel pass; mintCliCode + backToFleetList must follow #1465Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.