control panel: the device-add dialog's CONNECT stage, driven on the standing device drive — by leg list #1452

Closed
opened 2026-09-12 15:55:27 +00:00 by ben · 3 comments
Owner

Surface

journey.device.spec.ts (--target device) gains one leg between mint and
device-create; plus the panel harness (cd dashboard && pnpm harness,
panel.html?scenario=steady) for the contract.

Legs

  1. connect-stage-shown — after the enrol form for own-vps/self-hosted the dialog
    shows the connect stage (the panel's twin of [data-status="connect-device"]).
  2. own-vps-dials-out — real facts before any fleet row exists; the Fleet list has no
    row until the checks pass.
  3. refusal-offers-command — a wrong address → the install command in place; the
    same machine then dials in and lands as the SAME planned device.
  4. row-is-measured — the fleet row's size equals what the machine reported.
  5. rented-unchanged — the rented path shows no connect stage (the existing
    device-create leg is byte-identical).
## Surface `journey.device.spec.ts` (`--target device`) gains one leg between `mint` and `device-create`; plus the panel harness (`cd dashboard && pnpm harness`, `panel.html?scenario=steady`) for the contract. ## Legs 1. `connect-stage-shown` — after the enrol form for own-vps/self-hosted the dialog shows the connect stage (the panel's twin of `[data-status="connect-device"]`). 2. `own-vps-dials-out` — real facts before any fleet row exists; the Fleet list has no row until the checks pass. 3. `refusal-offers-command` — a wrong address → the install command in place; the same machine then dials in and lands as the SAME planned device. 4. `row-is-measured` — the fleet row's size equals what the machine reported. 5. `rented-unchanged` — the rented path shows no connect stage (the existing `device-create` leg 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 490bd1df

  • The connect contract was red: leg 12 (own-vps dial-out, AC1) timed out
    clicking "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 shorter
    self-hosted leg 14 cleared the picker, masking it). Fixed: the picker is now
    pointer-events:none with its selects re-enabled, so a drive's click falls
    through the chrome. The harness chrome can no longer steal the product's clicks.
  • Added leg 6b rented-unchanged (this ticket's leg 5): the rented path never
    mounts the connect stage — a rented box enrols itself (DDR 0240).
  • Proof: full dashboard preview-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-out real facts before a row (leg 12),
refusal-offers-command (leg 13), and rented-unchanged (leg 6b). The
fleet-row halves of legs 2/4 (no row until checks pass, row-is-measured) are
inherently 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.ts gaining a connect leg on the
standing device drive — cannot be driven or proven yet:

  • The deployed control panel's HttpDeviceAddClient
    (dashboard/src/lib/api/enrollClient.ts) does not implement the four connect
    ops. internal/controlapi/enroll_rent.go serves no /enroll/connect|dial-in|check,
    and generated.ts has no such method. #1413 built the Go half only in the
    founding stdio bridge (internal/founding/stdio.go/connectcheck.go), reached
    by the packaged app's founding path — not over control-plane HTTP.
  • So on the served dashboard DeviceAddSurface.hasConnect is false → own-vps /
    self-hosted skip the connect stage live. There is no live connect stage to
    drive a leg against. → #1459 (the missing transport).
  • Sibling prerequisite: the live fixture app/tests/e2e/fixtures/deviceAdd.ts
    mintCliCode still drives the removed device-add-drill-in (dashboard unit
    tests assert that mount must never return) — the device-add live path must migrate
    to the new device-add-dialog flow before the connect leg can be inserted between
    mint and device-create.

Routing

Left ready-for-session and now blocked-by #1459. When the connect-ops HTTP
transport 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) and
drives 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 — partial progress landed; the live half is blocked. Veto anytime.** ### What landed (the panel harness — the contract clause), commit `490bd1df` - The connect contract was **red**: leg 12 (own-vps dial-out, AC1) timed out clicking "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 shorter self-hosted leg 14 cleared the picker, masking it). Fixed: the picker is now `pointer-events:none` with its selects re-enabled, so a drive's click falls through the chrome. **The harness chrome can no longer steal the product's clicks.** - Added leg 6b `rented-unchanged` (this ticket's **leg 5**): the rented path never mounts the connect stage — a rented box enrols itself (DDR 0240). - Proof: full `dashboard` preview-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-out` real facts before a row (leg 12), `refusal-offers-command` (leg 13), and `rented-unchanged` (leg 6b). The fleet-row halves of legs 2/4 (`no row until checks pass`, `row-is-measured`) are inherently 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.ts` gaining a connect leg on the standing device drive — cannot be driven or proven yet: - The deployed control panel's `HttpDeviceAddClient` (`dashboard/src/lib/api/enrollClient.ts`) does **not** implement the four connect ops. `internal/controlapi/enroll_rent.go` serves no `/enroll/connect|dial-in|check`, and `generated.ts` has no such method. #1413 built the Go half only in the **founding stdio bridge** (`internal/founding/stdio.go`/`connectcheck.go`), reached by the packaged app's founding path — not over control-plane HTTP. - So on the served dashboard `DeviceAddSurface.hasConnect` is `false` → own-vps / self-hosted **skip the connect stage** live. There is no live connect stage to drive a leg against. → **#1459** (the missing transport). - Sibling prerequisite: the live fixture `app/tests/e2e/fixtures/deviceAdd.ts` `mintCliCode` still drives the **removed** `device-add-drill-in` (dashboard unit tests assert that mount must never return) — the device-add live path must migrate to the new `device-add-dialog` flow before the connect leg can be inserted between `mint` and `device-create`. ### Routing Left `ready-for-session` and now **blocked-by #1459**. When the connect-ops HTTP transport 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) and drives 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) and HttpDeviceAddClient's four ops
(commit 7a7896ba). So the transport the prior session filed as #1452's blocker is
no longer the obstacle.

Why the live connect leg STILL cannot be driven — has_connect is FALSE on the deployed panel

journey.device.spec.ts drives the DEPLOYED public dashboard over control-plane
HTTP (HttpDeviceAddClient), and the CONNECT stage only mounts when the seam
carries all four connect ops — i.e. when the gateway reports has_connect: true
(DeviceAddSurface.vue:117, onMint at :183–192). On the shipped control plane it
is 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:1467 composes WithEnroll(...) but
    never calls controlapi.WithEnrollDeviceConnect(...) — no production
    EnrollDeviceConnector is composed anywhere.
  • enrollConfigFrom (control-plane/cmd/control-plane/compose.go:906) leaves
    HasConnect at its zero value; only HasBroker: false is set, with the note that
    the live wiring "composes later (like the broker's #1400)".
  • internal/controlapi/enroll_connect.go:158–162 says 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.ts
leg to drive.
A leg asserting [data-status="connect-device"] after the enrol form
would 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 EnrollDeviceConnector composed on the standing
gateway. 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 plane
gives 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 drive
the removed [data-field="device-add-drill-in"]. The 2026-09-12 UI pass (commit
078cd5b3) replaced that in-place drill-in with the frame-owned dialog
([data-field="device-add-dialog"]) → place screen → enrol form. So the device
drive's mint leg is itself stale against the shipped panel and must be migrated to
the dialog flow before ANY new leg is inserted between mint and device-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 490bd1df and is green against FakeDeviceAddSource.
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 EnrollDeviceConnector on the gateway so has_connect is true. That
gives 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. Relabelled
ready-for-human; the blocked-by #1459 relation is now stale (that transport
landed).

**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) and `HttpDeviceAddClient`'s four ops (commit `7a7896ba`). So the transport the prior session filed as #1452's blocker is no longer the obstacle. ### Why the live connect leg STILL cannot be driven — `has_connect` is FALSE on the deployed panel `journey.device.spec.ts` drives the DEPLOYED public dashboard over control-plane HTTP (`HttpDeviceAddClient`), and the CONNECT stage only mounts when the seam carries all four connect ops — i.e. when the gateway reports `has_connect: true` (`DeviceAddSurface.vue:117`, `onMint` at :183–192). On the shipped control plane it is 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:1467` composes `WithEnroll(...)` but **never** calls `controlapi.WithEnrollDeviceConnect(...)` — no production `EnrollDeviceConnector` is composed anywhere. - `enrollConfigFrom` (`control-plane/cmd/control-plane/compose.go:906`) leaves `HasConnect` at its zero value; only `HasBroker: false` is set, with the note that the live wiring "composes later (like the broker's #1400)". - `internal/controlapi/enroll_connect.go:158–162` says 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.ts` leg to drive.** A leg asserting `[data-status="connect-device"]` after the enrol form would 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 `EnrollDeviceConnector` composed on the standing gateway. 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 plane gives 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 drive the **removed** `[data-field="device-add-drill-in"]`. The 2026-09-12 UI pass (commit `078cd5b3`) replaced that in-place drill-in with the frame-owned dialog (`[data-field="device-add-dialog"]`) → place screen → enrol form. So the device drive's `mint` leg is itself stale against the shipped panel and must be migrated to the dialog flow before ANY new leg is inserted between `mint` and `device-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 `490bd1df` and is green against `FakeDeviceAddSource`. 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 `EnrollDeviceConnector` on the gateway so `has_connect` is true. That gives 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. Relabelled `ready-for-human`; the blocked-by #1459 relation is now stale (that transport landed).
ben 2026-10-21 21:48:34 +00:00
Author
Owner

Closed 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.

Closed 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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1452
No description provided.