Context
Found while verifying #18305 (PR #18324) on examples/dashboard/dock: engaging maximize paints the pane over the example's perspective toolbar. The measurement resolves owner.getDockHost(), which is the workspace itself when no dockHostReference is set (src/dashboard/dock/Workspace.mjs, getDockHost()), and the example sets none. The measurement code is the pre-existing Workspace code moved verbatim into the plugin; dev behaves the same.
Prior decision this challenges: #18122 (PR #18124, 2026-09-02) moved the measurement from the workspace root to getDockHost(), which fixed the Workstation (it names its host) and left the root as the fallback for host-less consumers because the component fixture's host is the workspace itself. The fixture's root and shell share a rect, so the fallback never showed there; a host-less consumer with chrome outside the shell is where it shows.
The Problem
The maximize contract (the measureRect docblock) says: "A maximized pane fills the DOCK AREA, not the app view: a workspace that frames its host with a tour bar or a status bar keeps them in sight." That holds only for consumers that name a host — apps/workstation/view/Workspace.mjs:140 and examples/dashboard/choreography/DemoAWorkspace.mjs:71 set dockHostReference: 'dock-host'. A consumer that lets the workspace host the projected shell directly — examples/dashboard/dock/MainContainer.mjs, whose perspective toolbar sits at index 0 and whose shell sits at dockShellIndex: 1 — gets the workspace root measured. Live on a dev server at PR #18324's head: the maximized node painted {x: 8, y: 8, w: 1264, h: 704} (the 1280×720 root inset by the 8px gap token) while the projected shell (.neo-dashboard-dock-edge-zone.neo-dashboard, neo-container-1) sits at y=42 under the 42px toolbar.
The Architectural Reality
Workspace#getDockHost() — dockHostReference ? this.getReference(dockHostReference) : this. The host is the container the projection mounts INTO; the projected shell is getDockHost().items[dockShellIndex].
plugin/Maximize#measureRect() (from PR #18324) — id = owner.getDockHost()?.id || owner.id, DomAccess.getBoundingClientRect on that id, rectStyle insets it by --dock-maximize-gap.
- The FLIP (
captureFirst / playFlip) queries markers under getDockHost().id — a container scope, unaffected by which element is measured.
- Witnesses:
test/playwright/component/dashboard/DockMaximize.spec.mjs (maximizedRectMatchesHost compares against #dock-maximize-workspace .neo-dashboard, i.e. the SHELL, inset by the gap — green today only because the fixture's root and shell share a rect); test/playwright/e2e/workstation/WorkstationNL.spec.mjs (host inset by the gap; the Workstation names a host).
The Fix
Measure the dock AREA, not the mount point: in Maximize#measureRect, when getDockHost() is the owner itself, measure the projected shell owner.getDockHost().items?.[owner.dockShellIndex]; keep the named host when one exists (its rect is the consumer's stated dock area) and the root as the last fallback while nothing is mounted. Red-first: a component arm on a fixture whose workspace frames the shell with a toolbar and names no host — the maximized rect must match the shell inset by the gap, and the toolbar's rect must stay uncovered.
Alternative rejected: making the example name a host fixes one consumer and leaves the engine's documented contract false for every other host-less consumer.
Contract Ledger Matrix
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
Maximize#measureRect |
the maximize contract in its own docblock; #18122's host decision |
measures the named host, else the projected shell at dockShellIndex, else the owner root |
root while nothing is mounted (unchanged) |
the measureRect docblock |
new component arm; the existing host-inset arms stay green |
Decision Record impact: none — ADR 0029 does not specify the maximize geometry authority.
Acceptance Criteria
Out of Scope
- The gap token, the shadow and the reduced-motion policy (#18122 settled them).
- Any other Workspace concern (#18304 leaves).
Related
#18305 / PR #18324 (the plugin this changes; this ticket starts once it lands) · #18122 / PR #18124 (the host decision this refines) · #18304 (epic; this is a defect on the moved concern, not a decomposition leaf)
Live latest-open sweep: latest 20 open issues at 2026-09-04T19:33Z; no equivalent (#18327 is the newest, unrelated). A2A claim sweep (last 60 min, all read-states): no claim on this surface. Own-assignment sweep: #18305, #18281, #15252 — none on it. Memory Core sweep: query_raw_memories surfaced the #18122 decision above (session 37bbc610, 2026-09-02).
Origin Session ID: 27653281-f5a5-4e2f-861a-60495c019b51 (the Memory Core rotated the id to 82f2863b-b5ce-4108-8091-d61ca770a563 at the filing turn's consolidated save; both resolve this ticket's trail)
Retrieval Hint: "maximize measures workspace root host-less dockShellIndex shell toolbar covered"
Context
Found while verifying #18305 (PR #18324) on
examples/dashboard/dock: engaging maximize paints the pane over the example's perspective toolbar. The measurement resolvesowner.getDockHost(), which is the workspace itself when nodockHostReferenceis set (src/dashboard/dock/Workspace.mjs,getDockHost()), and the example sets none. The measurement code is the pre-existing Workspace code moved verbatim into the plugin; dev behaves the same.Prior decision this challenges: #18122 (PR #18124, 2026-09-02) moved the measurement from the workspace root to
getDockHost(), which fixed the Workstation (it names its host) and left the root as the fallback for host-less consumers because the component fixture's host is the workspace itself. The fixture's root and shell share a rect, so the fallback never showed there; a host-less consumer with chrome outside the shell is where it shows.The Problem
The maximize contract (the
measureRectdocblock) says: "A maximized pane fills the DOCK AREA, not the app view: a workspace that frames its host with a tour bar or a status bar keeps them in sight." That holds only for consumers that name a host —apps/workstation/view/Workspace.mjs:140andexamples/dashboard/choreography/DemoAWorkspace.mjs:71setdockHostReference: 'dock-host'. A consumer that lets the workspace host the projected shell directly —examples/dashboard/dock/MainContainer.mjs, whose perspective toolbar sits at index 0 and whose shell sits atdockShellIndex: 1— gets the workspace root measured. Live on a dev server at PR #18324's head: the maximized node painted{x: 8, y: 8, w: 1264, h: 704}(the 1280×720 root inset by the 8px gap token) while the projected shell (.neo-dashboard-dock-edge-zone.neo-dashboard,neo-container-1) sits at y=42 under the 42px toolbar.The Architectural Reality
Workspace#getDockHost()—dockHostReference ? this.getReference(dockHostReference) : this. The host is the container the projection mounts INTO; the projected shell isgetDockHost().items[dockShellIndex].plugin/Maximize#measureRect()(from PR #18324) —id = owner.getDockHost()?.id || owner.id,DomAccess.getBoundingClientRecton that id,rectStyleinsets it by--dock-maximize-gap.captureFirst/playFlip) queries markers undergetDockHost().id— a container scope, unaffected by which element is measured.test/playwright/component/dashboard/DockMaximize.spec.mjs(maximizedRectMatchesHostcompares against#dock-maximize-workspace .neo-dashboard, i.e. the SHELL, inset by the gap — green today only because the fixture's root and shell share a rect);test/playwright/e2e/workstation/WorkstationNL.spec.mjs(host inset by the gap; the Workstation names a host).The Fix
Measure the dock AREA, not the mount point: in
Maximize#measureRect, whengetDockHost()is the owner itself, measure the projected shellowner.getDockHost().items?.[owner.dockShellIndex]; keep the named host when one exists (its rect is the consumer's stated dock area) and the root as the last fallback while nothing is mounted. Red-first: a component arm on a fixture whose workspace frames the shell with a toolbar and names no host — the maximized rect must match the shell inset by the gap, and the toolbar's rect must stay uncovered.Alternative rejected: making the example name a host fixes one consumer and leaves the engine's documented contract false for every other host-less consumer.
Contract Ledger Matrix
Maximize#measureRectdockShellIndex, else the owner rootmeasureRectdocblockDecision Record impact: none — ADR 0029 does not specify the maximize geometry authority.
Acceptance Criteria
DockMaximize.spechost-inset arms stay green.examples/dashboard/dock: maximize keeps the perspective toolbar in sight — live receipt in the PR body.Out of Scope
Related
#18305 / PR #18324 (the plugin this changes; this ticket starts once it lands) · #18122 / PR #18124 (the host decision this refines) · #18304 (epic; this is a defect on the moved concern, not a decomposition leaf)
Live latest-open sweep: latest 20 open issues at 2026-09-04T19:33Z; no equivalent (#18327 is the newest, unrelated). A2A claim sweep (last 60 min, all read-states): no claim on this surface. Own-assignment sweep: #18305, #18281, #15252 — none on it. Memory Core sweep:
query_raw_memoriessurfaced the #18122 decision above (session 37bbc610, 2026-09-02).Origin Session ID: 27653281-f5a5-4e2f-861a-60495c019b51 (the Memory Core rotated the id to 82f2863b-b5ce-4108-8091-d61ca770a563 at the filing turn's consolidated save; both resolve this ticket's trail) Retrieval Hint: "maximize measures workspace root host-less dockShellIndex shell toolbar covered"