control panel: the device-add dialog CONNECTS and pre-checks the machine before it becomes a fleet row #1415

Closed
opened 2026-09-12 04:47:42 +00:00 by ben · 6 comments
Owner

Why

DDR 0240 decision 7: one step, wherever a device is chosen. Founding's Add-a-device dialog already takes it (branch founding-ui-two-colour-rail-ceremony, app/src/components/founding/FoundingConnectDevice.vue embedded as the dialog's third stage). The control panel's dialog — the ORIGINAL, which founding's is a duplicate of (DDR 0237) — does not.

Today the panel's own-vps and self-hosted paths go straight from the enrol form to a code and a wait: the operator can name and enrol a machine that was never reached, and the fleet row appears with no measured size. rented is the exception and stays as it is — the broker provisions from the gateway image and the box enrols itself on its own key (DDR 0237 decisions 4 and 8), so there is nothing to reach until it exists.

What to build

  • A connect stage in dashboard/src/components/device-add/ between the enrol form and the device's own rows, drawing the same two doors and the same refusal-with-fallback as founding's.
  • The panel's own seam (dashboard/src/lib/deviceAdd.ts) gains the four ops' faces, optional like placeOptions/serverOffer — a seam that cannot reach devices skips the stage rather than showing a dead door.
  • The device joins the fleet measured: what the machine reported is what the panel's device card and its fit gate use.

When the shared dialog moves into the UI kit, founding's duplicate goes with it — the connect panel is the piece most worth sharing, since both surfaces now draw it identically.

Acceptance criteria

  • AC1 — an own-vps add dials out and shows the box's real facts before the device exists as a row.
  • AC2 — a refused dial-out offers the install command in place; the same machine can then dial in and land as the same planned device.
  • AC3 — a self-hosted add waits on the machine calling in, and the row appears only once the pre-checks pass.
  • AC4 — the rented path is unchanged: no connect stage, no code shown, straight to the rented outcome.
  • AC5 — the panel's harness (cd dashboard && pnpm harness, panel.html?scenario=steady) drives all three.

Contract

DDR 0240 decision 7; DDR 0237; wireframe docs/ux/wireframes/p2-device-add-cli/p2-s1c-connect-and-check.html; flow docs/ux/flows/p2-device-add-cli.mermaid S1c.

## Why DDR 0240 decision 7: one step, wherever a device is chosen. Founding's Add-a-device dialog already takes it (branch `founding-ui-two-colour-rail-ceremony`, `app/src/components/founding/FoundingConnectDevice.vue` embedded as the dialog's third stage). The control panel's dialog — the ORIGINAL, which founding's is a duplicate of (DDR 0237) — does not. Today the panel's `own-vps` and `self-hosted` paths go straight from the enrol form to a code and a wait: the operator can name and enrol a machine that was never reached, and the fleet row appears with no measured size. `rented` is the exception and stays as it is — the broker provisions from the gateway image and the box enrols itself on its own key (DDR 0237 decisions 4 and 8), so there is nothing to reach until it exists. ## What to build - A `connect` stage in `dashboard/src/components/device-add/` between the enrol form and the device's own rows, drawing the same two doors and the same refusal-with-fallback as founding's. - The panel's own seam (`dashboard/src/lib/deviceAdd.ts`) gains the four ops' faces, optional like `placeOptions`/`serverOffer` — a seam that cannot reach devices skips the stage rather than showing a dead door. - The device joins the fleet **measured**: what the machine reported is what the panel's device card and its fit gate use. **When the shared dialog moves into the UI kit, founding's duplicate goes with it** — the connect panel is the piece most worth sharing, since both surfaces now draw it identically. ## Acceptance criteria - AC1 — an own-vps add dials out and shows the box's real facts before the device exists as a row. - AC2 — a refused dial-out offers the install command in place; the same machine can then dial in and land as the same planned device. - AC3 — a self-hosted add waits on the machine calling in, and the row appears only once the pre-checks pass. - AC4 — the rented path is unchanged: no connect stage, no code shown, straight to the rented outcome. - AC5 — the panel's harness (`cd dashboard && pnpm harness`, `panel.html?scenario=steady`) drives all three. ## Contract DDR 0240 decision 7; DDR 0237; wireframe `docs/ux/wireframes/p2-device-add-cli/p2-s1c-connect-and-check.html`; flow `docs/ux/flows/p2-device-add-cli.mermaid` S1c.

This was generated by AI during triage.

Triage Notes

Category: enhancement. State: needs-design (missing-design gate).

What we've established:

  • The control-panel device-add dialog (dashboard/src/components/device-add/) has no connect stage today — confirmed net-new work, not already implemented on main. Founding's dialog carries the connect stage on branch founding-ui-two-colour-rail-ceremony (the duplicate per DDR 0237); the panel — the original — does not.
  • DDR 0237 exists. The acceptance criteria (AC1–AC5, incl. the panel.html?scenario=steady harness drive) are concrete and driveable.

Why needs-design, not ready-for-agent: the design contract is not in the repo:

  • DDR 0240 does not exist. The spec rests on "DDR 0240 decision 7 (one step, wherever a device is chosen)", but the highest DDR/ADR on main is 0239. The ruling has not been written up.
  • Wireframe docs/ux/wireframes/p2-device-add-cli/p2-s1c-connect-and-check.html does not exist — that folder holds s1, s1a, s1b, s2, s3, s4, s5, but no s1c.
  • Flow node S1c does not exist in docs/ux/flows/p2-device-add-cli.mermaid.

Per the missing-design gate (docs/agents/triage-labels.md, docs/PROCESS.md), this routes back to wireframe / the DDR write-up for the p2 S1c connect-and-check screen. Note this issue is the panel-side twin of #1413 (founding-side); both are blocked on the same missing DDR 0240 + their respective S1c/S4d wireframes. Once those land, re-triage to ready-for-agent.

Not ready-for-human: the residue is a missing design artifact (design tier's job), not a one-way door.

> *This was generated by AI during triage.* ## Triage Notes **Category:** enhancement. **State:** `needs-design` (missing-design gate). **What we've established:** - The control-panel device-add dialog (`dashboard/src/components/device-add/`) has no `connect` stage today — confirmed net-new work, not already implemented on `main`. Founding's dialog carries the connect stage on branch `founding-ui-two-colour-rail-ceremony` (the duplicate per DDR 0237); the panel — the original — does not. - DDR 0237 exists. The acceptance criteria (AC1–AC5, incl. the `panel.html?scenario=steady` harness drive) are concrete and driveable. **Why `needs-design`, not `ready-for-agent`:** the design contract is not in the repo: - **DDR 0240 does not exist.** The spec rests on "DDR 0240 decision 7 (one step, wherever a device is chosen)", but the highest DDR/ADR on `main` is 0239. The ruling has not been written up. - **Wireframe `docs/ux/wireframes/p2-device-add-cli/p2-s1c-connect-and-check.html` does not exist** — that folder holds s1, s1a, s1b, s2, s3, s4, s5, but no `s1c`. - **Flow node S1c does not exist** in `docs/ux/flows/p2-device-add-cli.mermaid`. Per the missing-design gate (`docs/agents/triage-labels.md`, `docs/PROCESS.md`), this routes back to `wireframe` / the DDR write-up for the p2 S1c connect-and-check screen. Note this issue is the panel-side twin of #1413 (founding-side); both are blocked on the same missing DDR 0240 + their respective S1c/S4d wireframes. Once those land, re-triage to `ready-for-agent`. Not `ready-for-human`: the residue is a missing design artifact (design tier's job), not a one-way door.
Author
Owner

Build reference

Founding's twin is FoundingConnectDevice.vue mounted embedded inside
adddevice/FoundingAddDeviceDialog.vue (stage connect after the own form;
[data-action="connect-next"]), with device=<name> so the facts are keyed to the
planned machine. Lift THAT component into the kit rather than re-drawing it; the
panel's seam (dashboard/src/lib/deviceAdd.ts DeviceAddSource) gains the four faces
optional, and the four ops ride the control-plane API (a live community exists here, so
the transport is the panel's normal enrol API, not ADR 0181's relay).
Proof: P4 (a connect leg on journey.device.spec.ts).

Label

needs-design stays until founding-ui-two-colour-rail-ceremony merges to main: the DDRs, the frames and the TS half this ticket builds against live on that branch, and a swarm worker builds from main. At the merge, flip to ready-for-agent — nothing else gates it.

## Build reference Founding's twin is `FoundingConnectDevice.vue` mounted `embedded` inside `adddevice/FoundingAddDeviceDialog.vue` (stage `connect` after the `own` form; `[data-action="connect-next"]`), with `device=<name>` so the facts are keyed to the planned machine. Lift THAT component into the kit rather than re-drawing it; the panel's seam (`dashboard/src/lib/deviceAdd.ts DeviceAddSource`) gains the four faces optional, and the four ops ride the control-plane API (a live community exists here, so the transport is the panel's normal enrol API, not ADR 0181's relay). Proof: P4 (a `connect` leg on `journey.device.spec.ts`). ## Label `needs-design` stays until `founding-ui-two-colour-rail-ceremony` merges to `main`: the DDRs, the frames and the TS half this ticket builds against live on that branch, and a swarm worker builds from `main`. At the merge, flip to `ready-for-agent` — nothing else gates it.
Author
Owner

The branch merged to main (fcf1c5b2): DDR 0240/0241, the S4d/S1c frames and the built TS half are on main now, so needs-design comes off and this is ready-for-agent — gated only by its native dependencies.

The branch merged to `main` (`fcf1c5b2`): DDR 0240/0241, the S4d/S1c frames and the built TS half are on `main` now, so `needs-design` comes off and this is `ready-for-agent` — gated only by its native dependencies.

swarm-claim host=matou-dev-server-01 run=22596
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22596 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22601
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22601 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1415 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1415,
  "status": "success",
  "commits": [
    "c3181f6d150b6b821aa1d8fef7534c966f64b140"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/device-add/ConnectScreen.vue",
    "dashboard/src/components/device-add/DeviceAddSurface.vue",
    "dashboard/src/lib/deviceAdd.ts",
    "dashboard/tests/e2e/preview-harness/deviceAdd.spec.ts",
    "dashboard/tests/fakes/deviceAdd.ts",
    "dashboard/tests/unit/deviceAdd.test.ts",
    "dashboard/tests/unit/deviceAddConnect.test.ts",
    "dashboard/tests/unit/deviceAddGuard.test.ts",
    "dashboard/tests/unit/deviceAddStages.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && CI=true vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "AC1 — an own-vps add dials out and shows the box's real facts before the device exists as a row": "ConnectScreen.vue dial-out door → connectDevice reads DeviceFacts (data-field=device-facts/device-memory) with Add device disabled until checks pass; deviceAddConnect.test.ts 'own-vps dials OUT' + harness leg 12",
    "AC2 — a refused dial-out offers the install command in place; the same machine can then dial in and land as the same planned device": "connectDevice refuses a private-LAN address → connect-error + use-dial-in → dial-in door mints the code FOR that device and its call-in facts land on it; deviceAddConnect.test.ts 'a refused dial-out' + harness leg 13",
    "AC3 — a self-hosted add waits on the machine calling in, and the row appears only once the pre-checks pass": "ConnectScreen self-hosted opens the dial-in door waiting; awaitDialIn poll → connected → checkDevice → checks-passed gates Add device; deviceAddConnect.test.ts 'self-hosted' + harness leg 14",
    "AC4 — the rented path is unchanged: no connect stage, no code shown, straight to the rented outcome": "DeviceAddSurface routes rented → rent card → RentedScreen; the connect stage is reached only via the form's CLI doorway for own-vps/self-hosted; deviceAddStages.test.ts rented leg unchanged",
    "AC5 — the panel's harness (cd dashboard && pnpm harness, panel.html?scenario=steady) drives all three": "preview-harness/deviceAdd.spec.ts legs 12–14 drive own-vps dial-out, refused dial-out fallback, and self-hosted dial-in over the FakeDeviceAddSource which now carries the four ops"
  },
  "summary": "Added the DDR 0240 connect-and-check stage to the panel's device-add dialog: four optional connect ops on DeviceAddSource backing a new ConnectScreen keyed to the p2-s1c wireframe, so own-vps/self-hosted are reached and pre-checked ON the machine before it joins the fleet measured.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1415 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1415, "status": "success", "commits": [ "c3181f6d150b6b821aa1d8fef7534c966f64b140" ], "changed_files": [ "STATUS.md", "dashboard/src/components/device-add/ConnectScreen.vue", "dashboard/src/components/device-add/DeviceAddSurface.vue", "dashboard/src/lib/deviceAdd.ts", "dashboard/tests/e2e/preview-harness/deviceAdd.spec.ts", "dashboard/tests/fakes/deviceAdd.ts", "dashboard/tests/unit/deviceAdd.test.ts", "dashboard/tests/unit/deviceAddConnect.test.ts", "dashboard/tests/unit/deviceAddGuard.test.ts", "dashboard/tests/unit/deviceAddStages.test.ts" ], "tests": [ { "command": "cd dashboard && CI=true vitest run", "exit_code": 0 }, { "command": "cd dashboard && vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "AC1 — an own-vps add dials out and shows the box's real facts before the device exists as a row": "ConnectScreen.vue dial-out door → connectDevice reads DeviceFacts (data-field=device-facts/device-memory) with Add device disabled until checks pass; deviceAddConnect.test.ts 'own-vps dials OUT' + harness leg 12", "AC2 — a refused dial-out offers the install command in place; the same machine can then dial in and land as the same planned device": "connectDevice refuses a private-LAN address → connect-error + use-dial-in → dial-in door mints the code FOR that device and its call-in facts land on it; deviceAddConnect.test.ts 'a refused dial-out' + harness leg 13", "AC3 — a self-hosted add waits on the machine calling in, and the row appears only once the pre-checks pass": "ConnectScreen self-hosted opens the dial-in door waiting; awaitDialIn poll → connected → checkDevice → checks-passed gates Add device; deviceAddConnect.test.ts 'self-hosted' + harness leg 14", "AC4 — the rented path is unchanged: no connect stage, no code shown, straight to the rented outcome": "DeviceAddSurface routes rented → rent card → RentedScreen; the connect stage is reached only via the form's CLI doorway for own-vps/self-hosted; deviceAddStages.test.ts rented leg unchanged", "AC5 — the panel's harness (cd dashboard && pnpm harness, panel.html?scenario=steady) drives all three": "preview-harness/deviceAdd.spec.ts legs 12–14 drive own-vps dial-out, refused dial-out fallback, and self-hosted dial-in over the FakeDeviceAddSource which now carries the four ops" }, "summary": "Added the DDR 0240 connect-and-check stage to the panel's device-add dialog: four optional connect ops on DeviceAddSource backing a new ConnectScreen keyed to the p2-s1c wireframe, so own-vps/self-hosted are reached and pre-checked ON the machine before it joins the fleet measured.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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#1415
No description provided.