LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 17, 2026, 4:35 PM
updatedAtNov 17, 2026, 5:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/21265
authorneo-opus-vega
commentsCount1
parentIssue20667
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 17, 2026, 5:30 PM

The Workstation's arrangement switch shows undeclared arrangements

neo-opus-vega
neo-opus-vega commented on Nov 17, 2026, 4:35 PM

No curated labels: it has to land before the Engine 14 cut, and a maintainer owns it (see the end).

Context

Found by the steward rehearsal of #20667 on dev 2f5c29f473, with the engine installed from a tarball packed from dev. A package in its own repository extends the Workstation's Workspace and declares one arrangement, perspectives: {shipped: <its document>}: the seam #20661 made boot and "Reset to default" honour. Its top bar now shows Operations and Planning, and its own header test fails the same way with the engine installed and linked: ["Start dense tour","Start film tour","Operations","Planning","Light mode"] against the three controls it declares.

A leaf of #20667 (host seams), for the Engine 14 cut on Mon 23 Nov: what the cut ships is what a package builds on until the next one.

The Problem

Since #20910 (15d42c0c72, 16 Nov) the switch has two fixed buttons. In a workspace that declares only shipped:

  • Planning is a dead control. Its handler runs selectArrangement('planning'), and resetTopology('planning') finds no declared document and returns "planning" is not a declared arrangement. It is refused safely; nothing changes on screen.
  • Operations names the arrangement that is already active, so selectArrangement returns null and nothing happens either.
  • A package can drop them only with a private patch of the engine's toolbar, which #20667's predicate rules out.

Observed: the two buttons in a package's top bar and its header test's failure. Read, not run: what a click does (the code path above).

The Architectural Reality

  • apps/workstation/view/TourToolbar.mjs:78-97: the arrangement-switch group. Two buttons, pressed bound to data.dock.perspective.active, handlers onShowOperations / onShowPlanning.
  • apps/workstation/view/WorkspaceController.mjs:152-174: both handlers call selectArrangement(name), which calls Workspace#resetTopology(name) unless name is already active.
  • apps/workstation/view/Workspace.mjs:116: perspectives: {shipped: initialDocument, planning: planningDocument}, a config a subclass overrides.
  • The engine already knows what is declared: Neo.dashboard.dock.Workspace#declaredPerspectives() (src/dashboard/dock/Workspace.mjs:680) returns PerspectiveSelection#names. What it publishes for binding is dock.perspective: {active, modified} plus pending (src/dashboard/dock/projection/PerspectiveState.mjs:90-106). The names are not in it.
  • Precedent: #18610 and #18611 bound the dock example's and Demo B's switchers to published truth; #20661 made boot and reset honour a subclass's perspectives.shipped.

Design authority: #20910 ("Operations and Planning in the top bar switch arrangements through resetTopology(name)") designed the switch for the Workstation's two declared arrangements. It did not decide what a subclass that declares one arrangement shows.

The Fix

  • The switch shows one button per declared arrangement and hides itself when the workspace declares fewer than two. The engine's two labels stay (shipped → Operations, planning → Planning).
  • The declared names reach the binding from what the workspace already knows (declaredPerspectives()), for example published beside active in dock.perspective. The pull request names the binding it chose and why.

Acceptance Criteria

  • A Workspace subclass that declares only shipped shows no arrangement switch; the engine's Workstation still shows both buttons, the active one pressed.
  • A unit spec covers both cases through the declared perspectives, not by stubbing the buttons.
  • WorkstationPlanningDeskNL.spec.mjs still passes.
  • No other top-bar control changes.

Out of Scope

Labels for arrangement names other than the engine's two: no second package needs them yet (#20667's admission test). The planning arrangement itself.

Avoided Traps

  • A package-side override of the toolbar's items. It works for one package and is the private patch #20667 exists to remove.
  • Hiding the buttons with CSS. A hidden control stays in the tab order and the accessibility tree.

Related

Parent #20667 · #20910 (the switch) · #20661 (perspectives.shipped) · #18610, #18611 (switchers bound to published truth)

Decision Record impact: none.

Live latest-open + closed sweep: latest 20 open read (77 open, red band) and searches across all states ("workstation arrangement switch perspectives", "workstation arrangement perspectives declared"; closed hits #20661, #18609, #18610, #18611, #20986 read), rechecked by 2026-11-17T15:35Z: no equivalent; no open epic but #20667 owns host seams, so this files under it. A2A in-flight sweep: latest 30 messages, all read-states: no claim on the switch. MC sweep: query_raw_memories on the symptom, 5 results, no prior decision. Own-assignment sweep: no Workstation item among mine. Structure-map: N/A, no new .mjs placement.

handoff: @neo-opus-grace (author of #20910's switch), agreed on the A2A fork of 2026-11-17 together with the shape above. Vega, as #20667's steward, re-runs the package's header test on the pull request's head.

Origin Session ID: 1110da14-71ba-47a4-a627-b5091c1fe3d5

Retrieval Hint: "workstation arrangement switch undeclared perspectives, subclass declares only shipped"

tobiu referenced in commit fb5f004 - "fix(workstation): the arrangement switch shows only when both arrangements are declared (#21265) (#21266) on Nov 17, 2026, 5:30 PM
tobiu closed this issue on Nov 17, 2026, 5:30 PM