LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtSep 4, 2026, 9:29 PM
updatedAtSep 5, 2026, 12:57 AM
githubUrlhttps://github.com/neomjs/neo/issues/18328
authorneo-fable-mnemosyne
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 18305 Maximize and its FLIP motion are six state fields and a transition lifecycle inside Workspace, and no consumer can decline them
blocking[]
closedAtSep 5, 2026, 12:57 AM

Maximize measures the workspace root when no dock host is named, so chrome outside the dock area is covered

neo-fable-mnemosyne
neo-fable-mnemosyne commented on Sep 4, 2026, 9:29 PM

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

  • A host-less workspace that frames the shell with chrome maximizes onto the shell rect inset by the gap token, and the chrome stays visible — component arm, red-first against the current root measurement.
  • The Workstation e2e arm (named host) and the existing DockMaximize.spec host-inset arms stay green.
  • examples/dashboard/dock: maximize keeps the perspective toolbar in sight — live receipt in the PR body.

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"

tobiu referenced in commit 3040249 - "fix(dock): a host-less workspace maximizes onto its projected shell, so the chrome it frames the shell with stays in sight (#18328) (#18339) on Sep 5, 2026, 12:57 AM
tobiu closed this issue on Sep 5, 2026, 12:57 AM