standing drive: RENT A DEVICE FROM THE PANEL — journey.rented-device.spec.ts on 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

Closed
opened 2026-09-11 20:09:43 +00:00 by ben · 4 comments
Owner

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, seam dashboard/src/lib/deviceAdd.ts (DevicePlaceOption, ServerOffer, RentServerRequest, RentedServer; OPTIONAL placeOptions/serverOffer/rentServer on DeviceAddSource), fake dashboard/tests/fakes/deviceAdd.ts, browser harness cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady.

Destination

An unattended Playwright drive (sibling of app/tests/e2e/journey.device.spec.ts, #854's fifteen teeth) on the STANDING rented community, GREEN on every leg:

standing → panel-signin → overview → add-a-device-dialog → place-screen → rent-card → rent → rented-outcome → call-in → auto-approved → device-card → fleet-row → remove-device → reap → finish

Legs, each a screenshot eyeballed before GREEN is believed (a GREEN can be FALSE):

  1. overview — the Overview renders the device row with the gateway card first, the System card heading the services row, the add-a-device skeleton after the last device.
  2. add-a-device-dialog — the skeleton opens the frame's dialog ([data-field="device-add-dialog"]), head "ADD A DEVICE".
  3. place-screen — three place cards, rented preselected + RECOMMENDED, the kit's pictures drawn in the community's colours.
  4. rent-card — the broker's REAL offer: sizes + prices, provider, regions; the drive names the device drive-<runid>, picks the smallest size and the offer's own region.
  5. rent — POST /api/v1/enroll/rent → the rented outcome shows an IP, the size, the region; Done closes the dialog. The enroll ledger holds one active code for it.
  6. call-in / auto-approved — within the device budget (#854's) the droplet's agent calls in with the code and is approved with NO click; the pending list stays empty.
  7. device-card — the Overview's row gains the card: name drive-<runid>, kind server, location = the region's label, roles server, rings live.
  8. fleet-row — the Fleet tab lists the same device; the two never disagree.
  9. remove-device / reap — the device is removed through the panel as #854 does; the droplet is destroyed by the reap leg or carrier teardown — the DEVICE droplet never survives a drive; the STANDING gateway is never destroyed by a red.

Rules

  • GREEN is the only close. Under-reporting is a RED. Reds file/match bug issues and block this issue by themselves (reporter contract).
  • ADR 0221: debug greens never count; a prove-it drive stands.
  • Served bits vs main: re-warm the payload / reseed-publish and check x-idss-release carries the rent op before calling a red a ghost.

Arming ritual

On elitebook-03 (~/swarm/rehearsal-env.sh): append this issue number to REHEARSAL_DRIVE_QUEUE; REHEARSAL_STANDING_DIR as #854. Pre-arming: curl -sf $IDSS_BROKER_URL/v1/gateways/offer → 200 with presets[]; gateway image snapshot fresh (scripts/gateway-image/latest.sh) and carrying the first-boot enrol unit; rehearsal-device-target-test.sh, rehearsal-standing-test.sh, rental-reap-test.sh green.

Acceptance criteria

  • Given the drive, when it runs unattended on the standing community, then every leg above is GREEN with a screenshot per leg in the run's test-results/, eyeballed.
  • Given the rented device, when the drive finishes, then doctl compute droplet list shows no droplet named drive-<runid> and the broker's rentals ledger records the reap.
  • Given a red, when it fires, then a bug issue is filed/matched and blocks this ticket; this ticket closes only on a later GREEN.

Blocked by

#1397, #1396, #1398 (the live half), #1395 (the contract the screenshots are held to).

Why session

A live drive on the rehearsal host — live doors, host and broker credentials, a rented droplet per run (routine drive spend, as #854). Closes only on a GREEN drive with eyeballed screenshots, never on unit tests.

<!-- session-host: elitebook-distributed-server-03 --> <!-- rehearsal-target: device --> ## 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`, seam `dashboard/src/lib/deviceAdd.ts` (`DevicePlaceOption`, `ServerOffer`, `RentServerRequest`, `RentedServer`; OPTIONAL `placeOptions/serverOffer/rentServer` on `DeviceAddSource`), fake `dashboard/tests/fakes/deviceAdd.ts`, browser harness `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady`. ## Destination An unattended Playwright drive (sibling of `app/tests/e2e/journey.device.spec.ts`, #854's fifteen teeth) on the STANDING rented community, GREEN on every leg: `standing → panel-signin → overview → add-a-device-dialog → place-screen → rent-card → rent → rented-outcome → call-in → auto-approved → device-card → fleet-row → remove-device → reap → finish` Legs, each a screenshot eyeballed before GREEN is believed (a GREEN can be FALSE): 1. **overview** — the Overview renders the device row with the gateway card first, the System card heading the services row, the add-a-device skeleton after the last device. 2. **add-a-device-dialog** — the skeleton opens the frame's dialog (`[data-field="device-add-dialog"]`), head "ADD A DEVICE". 3. **place-screen** — three place cards, rented preselected + RECOMMENDED, the kit's pictures drawn in the community's colours. 4. **rent-card** — the broker's REAL offer: sizes + prices, provider, regions; the drive names the device `drive-<runid>`, picks the smallest size and the offer's own region. 5. **rent** — `POST /api/v1/enroll/rent` → the rented outcome shows an IP, the size, the region; Done closes the dialog. The enroll ledger holds one active code for it. 6. **call-in / auto-approved** — within the device budget (#854's) the droplet's agent calls in with the code and is approved with NO click; the pending list stays empty. 7. **device-card** — the Overview's row gains the card: name `drive-<runid>`, kind server, location = the region's label, roles `server`, rings live. 8. **fleet-row** — the Fleet tab lists the same device; the two never disagree. 9. **remove-device / reap** — the device is removed through the panel as #854 does; the droplet is destroyed by the reap leg or carrier teardown — **the DEVICE droplet never survives a drive**; the STANDING gateway is never destroyed by a red. ## Rules - **GREEN is the only close.** Under-reporting is a RED. Reds file/match bug issues and block this issue by themselves (reporter contract). - ADR 0221: debug greens never count; a prove-it drive stands. - Served bits vs main: re-warm the payload / reseed-publish and check `x-idss-release` carries the rent op before calling a red a ghost. ## Arming ritual On elitebook-03 (`~/swarm/rehearsal-env.sh`): append this issue number to `REHEARSAL_DRIVE_QUEUE`; `REHEARSAL_STANDING_DIR` as #854. Pre-arming: `curl -sf $IDSS_BROKER_URL/v1/gateways/offer` → 200 with `presets[]`; gateway image snapshot fresh (`scripts/gateway-image/latest.sh`) and carrying the first-boot enrol unit; `rehearsal-device-target-test.sh`, `rehearsal-standing-test.sh`, `rental-reap-test.sh` green. ## Acceptance criteria - [ ] Given the drive, when it runs unattended on the standing community, then every leg above is GREEN with a screenshot per leg in the run's `test-results/`, eyeballed. - [ ] Given the rented device, when the drive finishes, then `doctl compute droplet list` shows no droplet named `drive-<runid>` and the broker's rentals ledger records the reap. - [ ] Given a red, when it fires, then a bug issue is filed/matched and blocks this ticket; this ticket closes only on a later GREEN. ## Blocked by #1397, #1396, #1398 (the live half), #1395 (the contract the screenshots are held to). ## Why session A live drive on the rehearsal host — live doors, host and broker credentials, a rented droplet per run (routine drive spend, as #854). Closes only on a GREEN drive with eyeballed screenshots, never on unit tests.
Author
Owner

Drive run 2026-09-11 — the harness tier is GREEN; the live half is this ticket

The product half of these legs is now proven by a committed browser drive on the unmerged branch founding-ui-two-colour-rail-ceremony, so this ticket carries only what needs a real control plane and a real droplet.

Landed with the feature:

  • dashboard/playwright.harness.config.ts — a new drive tier for the web dashboard (the counterpart to the app's playwright.preview.config.ts), booting the REAL composition (bootstrapDashboard → every tab surface) over the scenario fakes on :5198. Runner: cd dashboard && pnpm e2e:harness.
  • dashboard/tests/e2e/preview-harness/deviceAdd.spec.ts — 12 legs, all green (39.6 s, chromium):
    1. the Overview's add-a-device skeleton opens the dialog (and is the row's last child)
      1b. the Fleet list's "+ Add device" opens the SAME dialog
    2. ×, Escape and the backdrop dismiss it; a click on the panel does not
    3. the seam's three places in the seam's order, rented preselected + RECOMMENDED, private never offered, each card's picture drawn
    4. the rent card shows the broker's sizes + prices and defaults to the offer's OWN region and first size, never the head of a list
    5. the rent carries {name, region, preset} exactly as picked
    6. the rented outcome states ip / size / region, mints NO code (the box enrols itself), Done closes the dialog
    7. a refused rent stays on the card with the broker's own message, the draft untouched, Retry succeeds — two attempts, one device, nothing half-rented
    8. own-vps opens the enrol form on kind=server; Back returns to the places
    9. self-hosted mints carrying {intendedRole, name, kind, location} and the CLI screen curls the community's own domain
    10. the app doorway issues the SAME code — no second mint
    11. a seam WITHOUT the three optional ops opens straight on the enrol form: no place screen, no Back
  • vue-tsc clean across app, dashboard and packages/ui-kit.
  • One red during the run, fixed: a drive-side selector (the Fleet leg waited on the Overview's device row), not a product fault.

What the harness tier cannot prove, and this ticket still must: a real broker rent, a droplet that boots and calls in by itself, the auto-approve ruling, the fleet row gaining kind / location / roles from the mint, and the reap. Those are the legs above, against the standing community.

## Drive run 2026-09-11 — the harness tier is GREEN; the live half is this ticket The product half of these legs is now proven by a committed browser drive on the unmerged branch `founding-ui-two-colour-rail-ceremony`, so this ticket carries only what needs a real control plane and a real droplet. **Landed with the feature:** - `dashboard/playwright.harness.config.ts` — a new drive tier for the web dashboard (the counterpart to the app's `playwright.preview.config.ts`), booting the REAL composition (`bootstrapDashboard` → every tab surface) over the scenario fakes on :5198. Runner: `cd dashboard && pnpm e2e:harness`. - `dashboard/tests/e2e/preview-harness/deviceAdd.spec.ts` — 12 legs, **all green** (39.6 s, chromium): 1. the Overview's add-a-device skeleton opens the dialog (and is the row's last child) 1b. the Fleet list's "+ Add device" opens the SAME dialog 2. ×, Escape and the backdrop dismiss it; a click on the panel does not 3. the seam's three places in the seam's order, rented preselected + RECOMMENDED, `private` never offered, each card's picture drawn 4. the rent card shows the broker's sizes + prices and defaults to the offer's OWN region and first size, never the head of a list 5. the rent carries `{name, region, preset}` exactly as picked 6. the rented outcome states ip / size / region, mints NO code (the box enrols itself), Done closes the dialog 7. a refused rent stays on the card with the broker's own message, the draft untouched, Retry succeeds — two attempts, one device, nothing half-rented 8. own-vps opens the enrol form on kind=server; Back returns to the places 9. self-hosted mints carrying `{intendedRole, name, kind, location}` and the CLI screen curls the community's own domain 10. the app doorway issues the SAME code — no second mint 11. a seam WITHOUT the three optional ops opens straight on the enrol form: no place screen, no Back - `vue-tsc` clean across `app`, `dashboard` and `packages/ui-kit`. - One red during the run, fixed: a drive-side selector (the Fleet leg waited on the Overview's device row), not a product fault. **What the harness tier cannot prove, and this ticket still must:** a real broker rent, a droplet that boots and calls in by itself, the auto-approve ruling, the fleet row gaining kind / location / roles from the mint, and the reap. Those are the legs above, against the standing community.

Attempt 1 — the drive cannot go GREEN: its live half is unbuilt and unserved (ruling under ADR 0174)

Standing session on elitebook-distributed-server-03. Before authoring the drive I probed the actual live rent path end to end. It does not exist — so journey.rented-device.spec.ts would red at the rent leg (POST /api/v1/enroll/rent), and per this ticket's own reporter contract a red files/matches a blocker and this ticket stays open. No GREEN, so no close (and unit work never closes this ticket by design).

What proves it (current main f2f71a52, gofmt-clean after the #1416 fix, and live):

  • compose.go:914 hardcodes HasBroker: false; controlapi.WithEnrollDeviceRent has no call site (only the comment at compose.go:910). No EnrollDeviceBroker is ever composed. This is exactly the wiring #1398's close report deferred to "Next (#1400)" — it was never done.
  • internal/brokerclient has no device-rent method.
  • The broker exposes no device-rent HTTP route; Rentals.Rent doesn't thread user_data (the provider_do.go UserData support #1397 added is unreachable over HTTP).
  • Live rehearsal-e.idss.nz: x-idss-composition: resting, enroll/config carries no has_broker, enroll/places 404, enroll/server-offer 404. A re-warm/reseed would not help — main itself carries none of the wiring (checked, so this is not a served-vs-main ghost).

Ruling (ADR 0174 — veto anytime): #1400 owns a build phase (the live rent half) that must land and deploy before its drive phase can be exercised. I filed that as #1460 (ready-for-agent: broker device-rent endpoint threading user_data + brokerclient adapter + control-plane broker composition + deploy/serve) and set it as a native blocker of this ticket. I did not build+deploy it blind this session: it spans a production broker deploy to broker.idss.nz (shared prod founding surface) and a control-plane composition that can only be honestly proven by the very drive it feeds (ADR 0221 — a debug green wouldn't count), so landing it unexercised in an unattended run is not a two-way door I'll take alone. Building it is agent-buildable and revertible; the deploy + drive come back to a session.

Also observed (not this ticket, flagging): the standing gateway rehearsal-e.idss.nz answered x-idss-composition: resting, not whole. If that persists, the drive's overview/fleet legs would red at leg 1 regardless of the rent half, because the Overview/Fleet need the whole composition. Worth a look before the next drive attempt.

Next session (once #1460 lands + is deployed and the standing gateway is whole + re-warmed): author journey.rented-device.spec.ts (sibling of journey.device.spec.ts), add the rented-device carrier target (smoke-private-path.sh maps --target rented-device → journey.rented-device.spec.ts; the panel drives the broker rent so no bash oc_device_create carrier is needed, only reap), then run it live iterating to GREEN and verify no drive-<runid> droplet survives + the broker rentals ledger records the reap.

Leaving this ticket ready-for-session, blocked by #1460. Ruled by agent under ADR 0174 — veto anytime.

## Attempt 1 — the drive cannot go GREEN: its live half is unbuilt and unserved (ruling under ADR 0174) Standing session on elitebook-distributed-server-03. Before authoring the drive I probed the actual live rent path end to end. It does not exist — so `journey.rented-device.spec.ts` would red at the `rent` leg (`POST /api/v1/enroll/rent`), and per this ticket's own reporter contract a red files/matches a blocker and this ticket stays open. **No GREEN, so no close** (and unit work never closes this ticket by design). **What proves it** (current `main` f2f71a52, gofmt-clean after the #1416 fix, and live): - `compose.go:914` hardcodes `HasBroker: false`; `controlapi.WithEnrollDeviceRent` has **no call site** (only the comment at compose.go:910). No `EnrollDeviceBroker` is ever composed. This is exactly the wiring #1398's close report deferred to "Next (#1400)" — it was never done. - `internal/brokerclient` has **no** device-rent method. - The broker exposes **no** device-rent HTTP route; `Rentals.Rent` doesn't thread `user_data` (the `provider_do.go` `UserData` support #1397 added is unreachable over HTTP). - Live `rehearsal-e.idss.nz`: `x-idss-composition: resting`, `enroll/config` carries no `has_broker`, `enroll/places` **404**, `enroll/server-offer` **404**. A re-warm/reseed would not help — `main` itself carries none of the wiring (checked, so this is not a served-vs-main ghost). **Ruling (ADR 0174 — veto anytime):** #1400 owns a build phase (the live rent half) that must land and deploy before its drive phase can be exercised. I filed that as **#1460** (ready-for-agent: broker device-rent endpoint threading `user_data` + `brokerclient` adapter + control-plane broker composition + deploy/serve) and set it as a native **blocker** of this ticket. I did **not** build+deploy it blind this session: it spans a production **broker deploy** to `broker.idss.nz` (shared prod founding surface) and a control-plane composition that can only be honestly proven by the very drive it feeds (ADR 0221 — a debug green wouldn't count), so landing it unexercised in an unattended run is not a two-way door I'll take alone. Building it is agent-buildable and revertible; the deploy + drive come back to a session. **Also observed (not this ticket, flagging):** the standing gateway `rehearsal-e.idss.nz` answered `x-idss-composition: resting`, not `whole`. If that persists, the drive's `overview`/`fleet` legs would red at leg 1 regardless of the rent half, because the Overview/Fleet need the whole composition. Worth a look before the next drive attempt. **Next session (once #1460 lands + is deployed and the standing gateway is whole + re-warmed):** author `journey.rented-device.spec.ts` (sibling of `journey.device.spec.ts`), add the `rented-device` carrier target (`smoke-private-path.sh` maps `--target rented-device` → `journey.rented-device.spec.ts`; the panel drives the broker rent so no bash `oc_device_create` carrier is needed, only reap), then run it live iterating to GREEN and verify no `drive-<runid>` droplet survives + the broker rentals ledger records the reap. Leaving this ticket `ready-for-session`, blocked by #1460. Ruled by agent under ADR 0174 — veto anytime.

Standing session under ADR 0174 — RED at the shared founding re-found; blocked by #1447.

What landed (two-way door, committed + pushed to main):

  • app/tests/e2e/journey.rented-device.spec.ts — the twelve-leg drive (standing → overview → add-a-device-dialog → place-screen → rent-card → rent → call-in → device-card → fleet-row → remove-device → reap → finish), commit 3348ab1f.
  • --target rented-device harness wiring in scripts/smoke-private-path.sh + scripts/lib/swarm-identity.sh (3348ab1f), plus the oc_droplet_create guard fix so a standing target creates no harness gateway box (d6922259). Dry-runs of both --target rented-device and --target device pass; --target device is byte-identical to before; the spec collects under playwright --list.
  • Re-warmed IDSS_PAYLOAD_DIR from current main so a re-founded standing gateway serves #1460's rent op — verified the control-plane binary now carries /api/v1/enroll/rent, has_broker, /v1/devices/rent (the served-bits-vs-main rule; this RED is NOT a served-bits ghost).

The RED (drive 20260912T215326Z): red at the standing leg's re-found, inside the shared runRentedPrefix/wizard fixtures (wizard-rent sub-leg), timing out on [data-action="option:rented"]. The captured page snapshot shows founding v2's walk — Community info ✓, Brand kit ✓, Sign-in method ✓, Address ● (current), with Access ○ disabled. The fixture walks the OLD wizard order (it clicks the Access-step option:rented before Address is done), but #1404 moved the claim+rent into create-community, so v2's order is Address → Access(record) → Build it(rent). This is exactly #1447 ("the live drives FOLLOW THE PAGE's walk — re-sequence every founding caller", open + ready-for-human). It breaks the standing re-found for the device drive #854 identically (same runRentedPrefix) — a pre-existing blocker of the shared founding prefix, not this spec's own legs.

No droplet leaked: the re-found red BEFORE renting (32s), and the stale standing gateway was reaped by the pre-rent sweep. doctl compute droplet list shows no drive-* / idss-device / idss-gateway-rehearsal-e box.

Routing: blocked by #1447. This drive's own rent-a-device legs (place → rent → call-in → device-card → fleet-row → remove → reap) are authored against verified live selectors but remain UNPROVEN live until the re-found reaches a founded standing community — a re-drive exercises them once #1447 lands (or a standing community is founded by other means). Relabelled agent-blocked (dropping ready-for-session) so the runner does not burn re-attempts on a known human-gated blocker; re-add ready-for-session once #1447 is resolved.

Ruled by agent under ADR 0174 — veto anytime.

**Standing session under ADR 0174 — RED at the shared founding re-found; blocked by #1447.** **What landed (two-way door, committed + pushed to `main`):** - `app/tests/e2e/journey.rented-device.spec.ts` — the twelve-leg drive (`standing → overview → add-a-device-dialog → place-screen → rent-card → rent → call-in → device-card → fleet-row → remove-device → reap → finish`), commit `3348ab1f`. - `--target rented-device` harness wiring in `scripts/smoke-private-path.sh` + `scripts/lib/swarm-identity.sh` (`3348ab1f`), plus the `oc_droplet_create` guard fix so a standing target creates no harness gateway box (`d6922259`). Dry-runs of **both** `--target rented-device` and `--target device` pass; `--target device` is byte-identical to before; the spec collects under `playwright --list`. - Re-warmed `IDSS_PAYLOAD_DIR` from current `main` so a re-founded standing gateway serves #1460's rent op — verified the control-plane binary now carries `/api/v1/enroll/rent`, `has_broker`, `/v1/devices/rent` (the served-bits-vs-main rule; **this RED is NOT a served-bits ghost**). **The RED (drive `20260912T215326Z`):** red at the `standing` leg's re-found, inside the **shared** `runRentedPrefix`/wizard fixtures (`wizard-rent` sub-leg), timing out on `[data-action="option:rented"]`. The captured page snapshot shows founding **v2**'s walk — Community info ✓, Brand kit ✓, Sign-in method ✓, **Address ●** (current), with **Access ○ disabled**. The fixture walks the OLD wizard order (it clicks the Access-step `option:rented` before Address is done), but #1404 moved the claim+rent into `create-community`, so v2's order is Address → Access(record) → Build it(rent). This is exactly **#1447** ("the live drives FOLLOW THE PAGE's walk — re-sequence every founding caller", open + `ready-for-human`). It breaks the standing re-found for the device drive **#854** identically (same `runRentedPrefix`) — a pre-existing blocker of the shared founding prefix, **not this spec's own legs**. **No droplet leaked:** the re-found red BEFORE renting (32s), and the stale standing gateway was reaped by the pre-rent sweep. `doctl compute droplet list` shows no `drive-*` / `idss-device` / `idss-gateway-rehearsal-e` box. **Routing:** blocked by **#1447**. This drive's own rent-a-device legs (place → rent → call-in → device-card → fleet-row → remove → reap) are authored against verified live selectors but remain UNPROVEN live until the re-found reaches a founded standing community — a re-drive exercises them once #1447 lands (or a standing community is founded by other means). Relabelled `agent-blocked` (dropping `ready-for-session`) so the runner does not burn re-attempts on a known human-gated blocker; **re-add `ready-for-session` once #1447 is resolved.** Ruled by agent under ADR 0174 — veto anytime.
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.
ben 2026-10-21 21:52:26 +00:00
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#1400
No description provided.