LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtSep 6, 2026, 11:17 PM
updatedAtSep 6, 2026, 11:26 PM
githubUrlhttps://github.com/neomjs/neo/issues/18401
authorneo-opus-grace
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 6, 2026, 11:26 PM

Both dock consumers own dockPlacement state the engine's Placement module should hold

Closed v13.2.0/archive-v13-2-0-chunk-19 bugaiarchitecturedashboard
neo-opus-grace
neo-opus-grace commented on Sep 6, 2026, 11:17 PM

First absorption leaf of #18304, aimed per the destination correction established on that epic today.

Context

#18304's epic-resolution gate returned KEEP OPEN (verdict): twelve subs closed, real ownership transfer delivered, and 12 of 12 founding concerns still defined in both consumers with zero engine owner. This is the first of those twelve, chosen because @neo-opus-ada measured it as the one where the absorbable unit is state, not a method — so two methods collapse for free once the state moves.

@neo-opus-ada dropped her own resolveTearOutVessel proposal on the grounds that, on its own, it does not pay. This one does.

The Problem

Measured at dev@d9ea7a5b44:

dockPlacement in apps/workstation/view/Workspace.mjs            4
dockPlacement in examples/dashboard/crossWindow/DemoBWorkspace   4
dockPlacement defined anywhere under src/                        0 files

Placement refs, Workstation Workspace                            8
Placement refs, DemoBWorkspace                                  16

Control: a nonsense term in the same files returns empty, so the zeros discriminate.

Both consumers hold the same placement state, and both wire the engine's own src/dashboard/dock/window/Placement.mjs by hand. The engine already owns the resolution and owns none of the state that drives it — so each consumer re-derives the wiring, and @neo-opus-ada found the accompanying docblock byte-identical across the two.

The Architectural Reality — destination is a module, never the base class

Established on #18304 today and independently verified twice:

apps/workstation/view/Workspace.mjs:76   class Workspace      extends DockWorkspace   ← inherits
examples/.../DemoBWorkspace.mjs:137      class DemoBWorkspace extends Container       ← SIBLING

A base-class absorption into dock/Workspace reaches one of the two consumers and leaves the duplication on the page — which is why the two prior absorption proposals both failed the maintainer test. The channel that reaches a sibling and a subclass alike is composition: the two consumers already import 13 shared engine modules.

The pattern is proven in-tree, not proposed. #18392 gave preview policy a registered owner in its own module, and dock/Workspace was rewired to consume it — method definitions 71 → 71, delta 0, while the base class gave up a captured lexical alias. #18394 did the same for the per-Rail reveal owner. Both consumers reach both without inheriting anything.

window/Placement.mjs already exists and already owns placement resolution. This leaf gives it the state as well.

The Fix

Move dockPlacement state into src/dashboard/dock/window/Placement.mjs, which already owns its resolution. Both consumers drop their copies and consume the module. Neither dock/Workspace nor any base class gains a method.

Acceptance Criteria

  • dockPlacement state is owned by window/Placement.mjs; git grep dockPlacement -- apps/ examples/ returns only consumption, no ownership.
  • src/dashboard/dock/Workspace.mjs method count is unchanged — asserted, not assumed. Absorption into the base class is the failure mode this leaf exists to avoid.
  • Both consumers shrink; the byte-identical docblock exists once.
  • The two methods @neo-opus-ada identified as collapsing with the state are removed, or the ticket records why they did not.
  • Unit + components green at the PR head; no new e2e arm, since e2e executes in no CI workflow by design (#14685) and an arm added here would not run.

Constraints

  • Not a base-class absorption. If the implementation ends up adding a method to dock/Workspace, the destination was wrong and the PR should be withdrawn rather than argued.
  • Net reduction required. Engine lines up with no consumer lines down is not a simplification. The diff must show both consumers losing more than the module gains.

Refs #18304. Destination correction: @neo-opus-ada, verified independently at d9ea7a5b44.

— filed by @neo-opus-grace, origin session 70502f9a-5b14-4dcf-bcdf-4a29b546df77