updates-open: pressing "open updates" on Settings hops the frame to Fleet, unmounting the P4b drill-in the same click opened #1628

Closed
opened 2026-09-19 13:42:39 +00:00 by matou-build-agent · 1 comment

The failure

The updates-open leg waits on [data-field="updates-surface-drill-in"] (app/tests/e2e/fixtures/updatesDrive.ts:40) and timed out after 30s with element(s) not found. artifacts/legs.json records founding-prefix and operator-session green, updates-open red at 30472ms; artifacts/verdict.json names it firstRedLeg on commit 894202119c.

No box was available to ask — this run directory carries no artifacts/live-box.json, so the droplet is gone and the diagnosis below is off the harvested evidence plus a reproduction in the checkout. (The leg is a panel leg, not a roles door leg, so the debug-rented-services-tail.sh re-walk does not apply either.)

The evidence

The leg got PAST the affordance gate — the guarded expect at updatesDrive.ts:36 ("Settings DS has no 'open updates' affordance") passed, and the click at line 39 fired. The failing wait is the next line. So the button was there and was pressed.

The leg's own snapshot in artifacts/journey.updates-updates-dr-be4c7-t-list-→-replay-→-real-rail/error-context.md says where the click landed — not Settings:

- heading "Fleet" [level=1]
- paragraph: Every machine carrying the community's cloud — what it runs, how it is holding up, and where it lives.
- text: A DEVICE IS JOINING elitebook-distributed-server-03 joined the community network just now
- text: NOTHING IS BACKED UP

That is FleetSurface, with the Settings tab still unpressed in the nav.

The defect

The click is forwarded twice, and the two halves disagree.

  1. SettingsSurface.onRoute (dashboard/src/components/shell/SettingsSurface.vue:160-168) sets updatesOpen = true, so the drill-in <div data-field="updates-surface-drill-in"> at SettingsSurface.vue:21 renders — P4b in place over Settings, exactly the DS → P4b-U1 edge its header comment (SettingsSurface.vue:13-20) and dashboard/src/lib/mountRegistry.ts:346-348 both describe.
  2. The same handler FIRST re-emits the intent (SettingsSurface.vue:161), which DashboardComposition forwards straight to navigator.drillIn (dashboard/src/components/DashboardComposition.vue:232).

updatesRoute stamps that intent owner: 'provisioning' (dashboard/src/lib/settings.ts:112), and provisioning's RESTING tab is Fleet — OWNER_TAB.provisioning = 'fleet' (dashboard/src/lib/dashboardNavigator.ts:106), where the P4 device-setup journey homes per DDR 0101 §1. drillIn therefore swapped the outlet to FleetSurface and unmounted the Settings surface that had, in the same tick, opened P4b. The drill-in was mounted and destroyed by one click.

P4b's home is Settings, and the navigator already records it: updates: 'settings', commented "provisioning's Updates homes under Settings (DDR 0101 §2, DS → P4b)" (dashboardNavigator.ts:98-100). The provisioning owner string is overloaded — it carries both the P4 journey (Fleet, DDR 0101 §1) and the P4b Updates surfaces (Settings, DDR 0101 §2).

Why it was never caught

The unit proof mounts SettingsSurface alone (dashboard/tests/unit/mountProvisioningUpdates.test.ts:225) — no composition, no navigator — so the tab hop is invisible to it and it asserts the drill-in appears (line 236). #1618's journey is the first drive of this edge through the real frame. The hop is not a regression: it has been there since provisioning first entered OWNER_TAB (f84ccaad, #156, as 'services'; re-homed to 'fleet' later).

The layer

Web dashboard routing — dashboard/src/lib/dashboardNavigator.ts. Not the harness: the fixture's selector, action and wait are all correct, and the product genuinely does not render the element.

The fix

ProductionDashboardNavigator.drillIn now routes the two DS affordances (open-updates, open-update-policy) to the Settings mount — the home DDR 0101 §2 already gave them — alongside the action-keyed cases already in that method (device-add, community-app/design-app, the network in-place mount). 21 non-test lines in one product file.

Not fixed here — sibling edges of the same owner overload

Still landing Fleet, deliberately left open: Overview's review-release (dashboard/tests/fakes/overview.ts:59), and the Updates surface's own view-signed-source-*, retry-quarantined-* and drill-in-update-history (SettingsSurface.vue:28-31). The #1618 drive presses none of them, so they do not re-fire this leg; the durable fix for the family is to give P4b its own owner string (updates, which OWNER_TAB already maps to settings) and change what updatesRoute stamps — that edits the emitted-intent contract asserted at dashboard/tests/unit/settings.test.ts:124-125, so it is a ruling, not a heal.

Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)

Two-way door. The change is a 21-line, single-file edit to ProductionDashboardNavigator.drillIn — git revert restores the previous routing exactly, with no migration, no persisted state, no deploy artifact and no secrets touched. It is a mechanical repair, not a design decision: the destination was ALREADY decided and already written down in three places in the tree — SettingsSurface.vue:13-20 ("P4b opens in place over Settings, edge DS → P4b-U1, DDR 0099 §2 / DDR 0101 §2"), mountRegistry.ts:346-348 ("The Settings mount homes P4b"), and the navigator's own updates: 'settings' entry commented "provisioning's Updates homes under Settings (DDR 0101 §2, DS → P4b)" (dashboardNavigator.ts:98-100). The code simply did not do what it already meant to do, because one owner string serves two homes. I am NOT choosing a new route shape — I am making the router land the route DDR 0101 §2 specifies. Proven by two new composition-level tests in dashboard/tests/unit/dashboardComposition.test.ts that mount the real DashboardComposition with the real ProductionDashboardNavigator, press each affordance, and assert the frame stays on Settings with the drill-in rendered; the first reproduced the drive's red verbatim before the fix (expected 'fleet' to be 'settings'). No assertion value was edited, no test deleted or skipped, 2 files, well under the cap. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.

drive 20260919T131607Z red at updates-open (sig 7e8181a118ff) — self-fixed on the fast lane, commit 6bfde10961d8ddd96d65f338cf7b299e4be02df9; checks: pnpm --filter dashboard exec vitest run tests/unit/dashboardComposition.test.ts — RED first with AssertionError: expected 'fleet' to be 'settings' (the leg's own snapshot, exactly), GREEN after: 30 passed (30). Package tests pnpm --filter dashboard exec vitest run — 136 files, 1741 passed | 3 skipped (1744), including the previously-green mountProvisioningUpdates.test.ts, settings.test.ts and navigatorDialog.test.ts.. evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260919T131607Z on matou-workstation.

## The failure The `updates-open` leg waits on `[data-field="updates-surface-drill-in"]` (`app/tests/e2e/fixtures/updatesDrive.ts:40`) and timed out after 30s with `element(s) not found`. `artifacts/legs.json` records `founding-prefix` and `operator-session` green, `updates-open` red at 30472ms; `artifacts/verdict.json` names it `firstRedLeg` on commit `894202119c`. No box was available to ask — this run directory carries **no `artifacts/live-box.json`**, so the droplet is gone and the diagnosis below is off the harvested evidence plus a reproduction in the checkout. (The leg is a panel leg, not a roles door leg, so the `debug-rented-services-tail.sh` re-walk does not apply either.) ## The evidence The leg got PAST the affordance gate — the guarded `expect` at `updatesDrive.ts:36` ("Settings DS has no 'open updates' affordance") passed, and the click at line 39 fired. The failing wait is the next line. So the button was there and was pressed. The leg's own snapshot in `artifacts/journey.updates-updates-dr-be4c7-t-list-→-replay-→-real-rail/error-context.md` says where the click landed — **not Settings**: ```yaml - heading "Fleet" [level=1] - paragraph: Every machine carrying the community's cloud — what it runs, how it is holding up, and where it lives. - text: A DEVICE IS JOINING elitebook-distributed-server-03 joined the community network just now - text: NOTHING IS BACKED UP ``` That is FleetSurface, with the Settings tab still unpressed in the nav. ## The defect The click is forwarded twice, and the two halves disagree. 1. `SettingsSurface.onRoute` (`dashboard/src/components/shell/SettingsSurface.vue:160-168`) sets `updatesOpen = true`, so the drill-in `<div data-field="updates-surface-drill-in">` at `SettingsSurface.vue:21` renders — P4b in place over Settings, exactly the DS → P4b-U1 edge its header comment (`SettingsSurface.vue:13-20`) and `dashboard/src/lib/mountRegistry.ts:346-348` both describe. 2. The same handler FIRST re-emits the intent (`SettingsSurface.vue:161`), which `DashboardComposition` forwards straight to `navigator.drillIn` (`dashboard/src/components/DashboardComposition.vue:232`). `updatesRoute` stamps that intent `owner: 'provisioning'` (`dashboard/src/lib/settings.ts:112`), and provisioning's RESTING tab is Fleet — `OWNER_TAB.provisioning = 'fleet'` (`dashboard/src/lib/dashboardNavigator.ts:106`), where the P4 device-setup journey homes per DDR 0101 §1. `drillIn` therefore swapped the outlet to FleetSurface and unmounted the Settings surface that had, in the same tick, opened P4b. **The drill-in was mounted and destroyed by one click.** P4b's home is Settings, and the navigator already records it: `updates: 'settings'`, commented "provisioning's Updates homes under Settings (DDR 0101 §2, DS → P4b)" (`dashboardNavigator.ts:98-100`). The `provisioning` owner string is overloaded — it carries both the P4 journey (Fleet, DDR 0101 §1) and the P4b Updates surfaces (Settings, DDR 0101 §2). ## Why it was never caught The unit proof mounts `SettingsSurface` **alone** (`dashboard/tests/unit/mountProvisioningUpdates.test.ts:225`) — no composition, no navigator — so the tab hop is invisible to it and it asserts the drill-in appears (line 236). #1618's journey is the first drive of this edge through the real frame. The hop is not a regression: it has been there since `provisioning` first entered `OWNER_TAB` (`f84ccaad`, #156, as `'services'`; re-homed to `'fleet'` later). ## The layer Web dashboard routing — `dashboard/src/lib/dashboardNavigator.ts`. Not the harness: the fixture's selector, action and wait are all correct, and the product genuinely does not render the element. ## The fix `ProductionDashboardNavigator.drillIn` now routes the two DS affordances (`open-updates`, `open-update-policy`) to the Settings mount — the home DDR 0101 §2 already gave them — alongside the action-keyed cases already in that method (`device-add`, `community-app`/`design-app`, the `network` in-place mount). 21 non-test lines in one product file. ## Not fixed here — sibling edges of the same owner overload Still landing Fleet, deliberately left open: Overview's `review-release` (`dashboard/tests/fakes/overview.ts:59`), and the Updates surface's own `view-signed-source-*`, `retry-quarantined-*` and `drill-in-update-history` (`SettingsSurface.vue:28-31`). The #1618 drive presses none of them, so they do not re-fire this leg; the durable fix for the family is to give P4b its own owner string (`updates`, which `OWNER_TAB` already maps to `settings`) and change what `updatesRoute` stamps — that edits the emitted-intent contract asserted at `dashboard/tests/unit/settings.test.ts:124-125`, so it is a ruling, not a heal. ## Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime) Two-way door. The change is a 21-line, single-file edit to `ProductionDashboardNavigator.drillIn` — `git revert` restores the previous routing exactly, with no migration, no persisted state, no deploy artifact and no secrets touched. It is a mechanical repair, not a design decision: the destination was ALREADY decided and already written down in three places in the tree — `SettingsSurface.vue:13-20` ("P4b opens in place over Settings, edge DS → P4b-U1, DDR 0099 §2 / DDR 0101 §2"), `mountRegistry.ts:346-348` ("The Settings mount homes P4b"), and the navigator's own `updates: 'settings'` entry commented "provisioning's Updates homes under Settings (DDR 0101 §2, DS → P4b)" (`dashboardNavigator.ts:98-100`). The code simply did not do what it already meant to do, because one owner string serves two homes. I am NOT choosing a new route shape — I am making the router land the route DDR 0101 §2 specifies. Proven by two new composition-level tests in `dashboard/tests/unit/dashboardComposition.test.ts` that mount the real `DashboardComposition` with the real `ProductionDashboardNavigator`, press each affordance, and assert the frame stays on Settings with the drill-in rendered; the first reproduced the drive's red verbatim before the fix (`expected 'fleet' to be 'settings'`). No assertion value was edited, no test deleted or skipped, 2 files, well under the cap. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes. drive `20260919T131607Z` red at `updates-open` (sig 7e8181a118ff) — self-fixed on the fast lane, commit `6bfde10961d8ddd96d65f338cf7b299e4be02df9`; checks: `pnpm --filter dashboard exec vitest run tests/unit/dashboardComposition.test.ts` — RED first with `AssertionError: expected 'fleet' to be 'settings'` (the leg's own snapshot, exactly), GREEN after: 30 passed (30). Package tests `pnpm --filter dashboard exec vitest run` — 136 files, 1741 passed | 3 skipped (1744), including the previously-green `mountProvisioningUpdates.test.ts`, `settings.test.ts` and `navigatorDialog.test.ts`.. evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260919T131607Z` on matou-workstation. <!-- rehearsal-sig: 7e8181a118ff -->
Author
Member

close-report for #1628 — status success

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

envelope
{
  "issue": 1628,
  "status": "success",
  "commits": [
    "6bfde10961d8ddd96d65f338cf7b299e4be02df9"
  ],
  "changed_files": [
    "dashboard/src/lib/dashboardNavigator.ts",
    "dashboard/tests/unit/dashboardComposition.test.ts"
  ],
  "tests": [
    {
      "command": "`pnpm --filter dashboard exec vitest run tests/unit/dashboardComposition.test.ts` — RED first with `AssertionError: expected 'fleet' to be 'settings'` (the leg's own snapshot, exactly), GREEN after: 30 passed (30). Package tests `pnpm --filter dashboard exec vitest run` — 136 files, 1741 passed | 3 skipped (1744), including the previously-green `mountProvisioningUpdates.test.ts`, `settings.test.ts` and `navigatorDialog.test.ts`.",
      "exit_code": 0
    }
  ],
  "criteria": {
    "the red leg is now green": "healed on the fast lane, commit 6bfde10961d8ddd96d65f338cf7b299e4be02df9"
  },
  "summary": "\"open updates\" emitted an owner ('provisioning') whose resting tab is Fleet, so the navigator hopped the frame off Settings and unmounted the P4b drill-in the same click had just opened; the navigator now lands the two DS Updates affordances on the Settings mount, the home DDR 0101 §2 already gave them.",
  "blockers": []
}
**close-report** for #1628 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1628, "status": "success", "commits": [ "6bfde10961d8ddd96d65f338cf7b299e4be02df9" ], "changed_files": [ "dashboard/src/lib/dashboardNavigator.ts", "dashboard/tests/unit/dashboardComposition.test.ts" ], "tests": [ { "command": "`pnpm --filter dashboard exec vitest run tests/unit/dashboardComposition.test.ts` — RED first with `AssertionError: expected 'fleet' to be 'settings'` (the leg's own snapshot, exactly), GREEN after: 30 passed (30). Package tests `pnpm --filter dashboard exec vitest run` — 136 files, 1741 passed | 3 skipped (1744), including the previously-green `mountProvisioningUpdates.test.ts`, `settings.test.ts` and `navigatorDialog.test.ts`.", "exit_code": 0 } ], "criteria": { "the red leg is now green": "healed on the fast lane, commit 6bfde10961d8ddd96d65f338cf7b299e4be02df9" }, "summary": "\"open updates\" emitted an owner ('provisioning') whose resting tab is Fleet, so the navigator hopped the frame off Settings and unmounted the P4b drill-in the same click had just opened; the navigator now lands the two DS Updates affordances on the Settings mount, the home DDR 0101 §2 already gave them.", "blockers": [] } ``` </details>
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#1628
No description provided.