remove-device hunts the dashboard's Fleet tab on the Nextcloud page oidc-login left behind — and would then drill in with a set-up control a provisioned row never offers #1132

Closed
opened 2026-09-01 22:03:08 +00:00 by ben · 0 comments
Owner

The run this sits at the end of

Drive 20260901T205618Z is the deepest of the #854 arc: 29 of 30 legs green, with deploy-takeover, files-door and oidc-login all green — the last two for the first time ever. The mesh-routed files door works, and the operator signed into Nextcloud through the community IdP and landed as admin on a box that was bare metal an hour earlier.

It red on the second-to-last leg:

locator.click: Timeout 300000ms exceeded.
waiting for locator('[data-action="tab-fleet"]')

Diagnosis — the leg inherited the previous leg's page

oidc-login drives the shared dash page to Nextcloud and leaves it there:

await dash.goto(doorPath(door, '/login'));
await oidcSignInAsOperator(dash, door, live.runDir, OPERATOR_PASSWORD);
await assertOperatorIsAdmin(dash, door);

That is deliberate — the leg needs the live kanidm session dash carries — but nothing navigates back. remove-device then calls openDeviceSetup, whose first act is page.locator('[data-action="tab-fleet"]').click(), on a page showing Nextcloud. The Fleet tab is not there and never will be, so it waited out the 300s action ceiling.

The product is not implicated. oidc-login went green: the operator really is a Nextcloud admin through the community IdP.

A second wall directly behind it

Fixing only the navigation would have failed one line later. openDeviceSetup drills in via set-up-<id>, which only an un-provisioned row offers. By this leg the device has been taken over and carries the files placement, so its fleet row offers change-node-<id>. That is the #1043/#1044 lesson — the one walkOffNode already learned and documented ("a provisioned stray never burns the full 60s DRILL_IN_TIMEOUT_MS on a set-up-<id> its 'change' row can never offer") — and remove-device never inherited it.

Fix (landed)

  1. remove-device navigates back to portalAddress and waits for dashboard-chrome before touching anything. Each leg establishes its own starting surface rather than inheriting wherever the last one left the page; the standing leg already does exactly this after the ceremony window.
  2. It drills in via openNodeSurface(dash, { deviceId, provisioned: true }) — the helper that picks the right control from the node's state — instead of the set-up-only openDeviceSetup.

eslint clean; app/tests/e2e/fixtures 244/244.

Filed and fixed in one motion by the watching session under ADR 0174 — harness-only, revertible, and both faults are read directly off the run rather than inferred.

Worth noting as a class: this is a shared mutable page handed between legs with no contract about what surface it is left on. files-door avoids it by using a throwaway browser; oidc-login cannot, because it needs the session. The durable rule is the one applied here — a leg opens its own surface — rather than asking every leg to clean up after itself.

## The run this sits at the end of Drive `20260901T205618Z` is the deepest of the #854 arc: **29 of 30 legs green**, with `deploy-takeover`, `files-door` and `oidc-login` all green — the last two for the first time ever. The mesh-routed files door works, and the operator signed into Nextcloud through the community IdP and landed as admin on a box that was bare metal an hour earlier. It red on the second-to-last leg: ``` locator.click: Timeout 300000ms exceeded. waiting for locator('[data-action="tab-fleet"]') ``` ## Diagnosis — the leg inherited the previous leg's page `oidc-login` drives the **shared** `dash` page to Nextcloud and leaves it there: ```ts await dash.goto(doorPath(door, '/login')); await oidcSignInAsOperator(dash, door, live.runDir, OPERATOR_PASSWORD); await assertOperatorIsAdmin(dash, door); ``` That is deliberate — the leg needs the live kanidm session `dash` carries — but nothing navigates back. `remove-device` then calls `openDeviceSetup`, whose first act is `page.locator('[data-action="tab-fleet"]').click()`, on a page showing Nextcloud. The Fleet tab is not there and never will be, so it waited out the 300s action ceiling. **The product is not implicated.** `oidc-login` went green: the operator really is a Nextcloud admin through the community IdP. ## A second wall directly behind it Fixing only the navigation would have failed one line later. `openDeviceSetup` drills in via `set-up-<id>`, which **only an un-provisioned row offers**. By this leg the device has been taken over and carries the files placement, so its fleet row offers `change-node-<id>`. That is the #1043/#1044 lesson — the one `walkOffNode` already learned and documented ("a provisioned stray never burns the full 60s `DRILL_IN_TIMEOUT_MS` on a `set-up-<id>` its 'change' row can never offer") — and `remove-device` never inherited it. ## Fix (landed) 1. `remove-device` navigates back to `portalAddress` and waits for `dashboard-chrome` before touching anything. Each leg establishes its own starting surface rather than inheriting wherever the last one left the page; the standing leg already does exactly this after the ceremony window. 2. It drills in via `openNodeSurface(dash, { deviceId, provisioned: true })` — the helper that picks the right control from the node's state — instead of the set-up-only `openDeviceSetup`. eslint clean; `app/tests/e2e/fixtures` 244/244. Filed and fixed in one motion by the watching session under ADR 0174 — harness-only, revertible, and both faults are read directly off the run rather than inferred. **Worth noting as a class:** this is a *shared mutable page* handed between legs with no contract about what surface it is left on. `files-door` avoids it by using a throwaway browser; `oidc-login` cannot, because it needs the session. The durable rule is the one applied here — a leg opens its own surface — rather than asking every leg to clean up after itself.
ben closed this issue 2026-09-01 22:03:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1132
No description provided.