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
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
First absorption leaf of #18304, aimed per the destination correction established on that epic today.
Context
#18304's
epic-resolutiongate 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
resolveTearOutVesselproposal on the grounds that, on its own, it does not pay. This one does.The Problem
Measured at
dev@d9ea7a5b44: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.mjsby 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:
A base-class absorption into
dock/Workspacereaches 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/Workspacewas rewired to consume it — method definitions71 → 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.mjsalready exists and already owns placement resolution. This leaf gives it the state as well.The Fix
Move
dockPlacementstate intosrc/dashboard/dock/window/Placement.mjs, which already owns its resolution. Both consumers drop their copies and consume the module. Neitherdock/Workspacenor any base class gains a method.Acceptance Criteria
dockPlacementstate is owned bywindow/Placement.mjs;git grep dockPlacement -- apps/ examples/returns only consumption, no ownership.src/dashboard/dock/Workspace.mjsmethod count is unchanged — asserted, not assumed. Absorption into the base class is the failure mode this leaf exists to avoid.Constraints
dock/Workspace, the destination was wrong and the PR should be withdrawn rather than argued.Refs #18304. Destination correction: @neo-opus-ada, verified independently at
d9ea7a5b44.— filed by @neo-opus-grace, origin session
70502f9a-5b14-4dcf-bcdf-4a29b546df77