Owner: Vega, after #21363. Not curated for contributors: the empty-center behavior needs a design read before a fix is built.
Context
#21363 adds a "the panes refill their window" check to the tear-out matrix (test/playwright/e2e/dashboard/TearOutMatrixRows4To7NL.spec.mjs). Measured headed on 2026-11-18 (macOS, real Chrome, 1280 × 720, Demo B at examples/dashboard/crossWindow), tearing out Workbench, the pane that fills the center:
- After the drop: the main window's dock panes cover 280 × 59 at (8, 118). Before the gesture they covered 1264 × 594. The Inspector / Timeline / Console band sits in the window's top-left corner, and the rest of the window is empty.
- After the vessel closes and the pane returns: 280 × 117 in the same corner. The document reads
root: edge-zone {right: side-tabs} with side-tabs.items: [inspector, timeline, console, workbench]: Workbench came home into the right band, and no center exists.
The existing row-7 checks (homes: 1, rendered: 1) pass on both states.
The Problem
Two defects in one journey, tearing out the main pane and bringing it back:
- The window empties.
LayoutAdapter.projectEdgeZoneNode (src/dashboard/dock/projection/LayoutAdapter.mjs:900-978) pushes a sole middle item as a row of the edge-zone's vbox (middleItems.length === 1 → rows.push(middleItems[0])). A right band without a center is then a 280 px band of natural height in the vbox's top-left, away from its edge and filling nothing.
- The pane comes home to the wrong place. The detach removes the emptied center node (
workbench-tabs), and the return appends the pane to the existing right band instead of rebuilding the center.
The Architectural Reality
Design authority: WorkspaceDocument.captureNodeHome (src/dashboard/dock/model/WorkspaceDocument.mjs:516): "Captures a node's own position well enough to REBUILD it, not merely to find it." Its JSDoc adds: "An edge-zone parent needs no anchor: an edge-zone node survives losing every zone, so its id and the zone key remain resolvable." The center slot of root is resolvable at return, so the return should rebuild the center node there. For the empty window, LayoutAdapter.projectEdgeBand gives a band "a fixed cross-extent … instead of flexing against the center"; no record says what a window shows while it has no center, which is the design fork in The Fix.
- Placement capture at detach:
Workspace.mjs:1281 (WorkspaceDocument.captureItemPlacement); the fold on return: Operations.foldPlacements (src/dashboard/dock/model/Operations.mjs:305) with the host's resolveDockReturnDescriptor.
- ADR 0029 §2.7, reintegration row: the item re-enters via its
fallbackTarget hint.
The Fix
- The return rebuilds the center node from its captured home (
{parentId: 'root', slot: 'center'}) when the original node is gone: Operations.centerWellReturnDescriptor, Demo B's return policy, answers restoreTab for a still-free center and keeps the append policy everywhere else, a band that emptied included.
- A window without a center keeps its bands at their edges:
LayoutAdapter's opt-in enableDockCenterWell projects the empty center as a well that names the away pane (design read (a), comment 7069215433). The well as a drop target is #21827.
Contract Ledger
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
LayoutAdapter.project() option enableDockCenterWell (src/dashboard/dock/projection/LayoutAdapter.mjs:548) |
Clio's design read (a), comment 7069215433 |
true projects a centerless edge-zone's empty center as a center-well component (flex: 1, no dockNodeId), so the bands keep their edges |
anything but true: no well, the unchanged default for apps/workstation and every other centerless host |
project() JSDoc |
DockLayoutAdapter.spec.mjs: "without the option…", "the well takes the center flex…" |
option dockAwayPlacements (:546) |
TearOut#placements |
the well names the pane whose recorded home is this center while it is away (in the catalog, absent from the tree) |
null: the well stays plain |
project() + createCenterWell() JSDoc |
DockLayoutAdapter.spec.mjs: "names the pane…", "stays a plain well…" |
option dockCenterWellAwayText (:547) |
this ticket |
the well's caption; {title} takes the pane's title (else its id), inserted literally |
'{title} is in its own window' |
project() JSDoc |
DockLayoutAdapter.spec.mjs: "keeps a title with replacement patterns literal" |
Operations.centerWellReturnDescriptor(document, itemId, placement) (src/dashboard/dock/model/Operations.mjs:303) |
Design authority: WorkspaceDocument.captureNodeHome |
a pane homed in a still-free edge-zone center returns there through restoreTab, rebuilding the center |
every other return, an emptied band included: appendingReturnDescriptor's answer |
method JSDoc |
DockZoneModel.spec.mjs (centerWellReturnDescriptor block); TearOutMatrixRows4To7NL.spec.mjs row 7 |
TearOut#getProjectionCallbacks() key dockAwayPlacements (src/dashboard/dock/window/TearOut.mjs:285) |
this ticket |
the live placements record, not a copy, spread into a host's projection options |
n/a |
method JSDoc |
TearOutMatrixRows4To7NL.spec.mjs row 7 |
CSS .neo-dashboard-dock-center-well, .neo-dashboard-dock-center-well-text (resources/css/src/dashboard/Container.css:661, :673) |
Clio's look read, #21830 comment 7069524813 |
the inset hairline and the centered caption, in Neo Dark and Neo Light |
n/a |
stylesheet comments |
#21830's frames |
Acceptance Criteria
Out of Scope
- The Workstation, which supplies its own projection options.
- Rail returns (
Workspace#popOutRailItem), unless they share the defect.
Related
#21363 (found it; carries the red arm) · #20075 (a different collapse: parked-element residue after a popup close, closed) · ADR 0029.
Live latest-open + closed sweep: at 2026-11-18T17:04Z, checked the latest 20 open, plus open and closed searches for "edge zone center", "torn-out pane returns", "dock return placement", "side band" and "empty center dock"; read the closed hit #20075 (a different cause). 84 open, red band. No owning ticket or epic holds the dock's empty center or the return's rebuild (#21358 covers the Multi-Window cards, not the dock), and no equivalent or prior exclusion exists. A2A in-flight sweep: latest 30 messages in all read-states, newest at 17:02:44Z, no claim on the dock's center or return. MC sweep: "after tearing out the center pane the main window shows only a small block of side tabs in the corner …", 8 results, no prior decision. Own-assignment sweep: 7 open, none overlapping.
Retrieval Hint: "torn-out center pane empties the dock window; the returning pane lands in the side band instead of a rebuilt center"
Owner: Vega, after #21363. Not curated for contributors: the empty-center behavior needs a design read before a fix is built.
Context
#21363 adds a "the panes refill their window" check to the tear-out matrix (
test/playwright/e2e/dashboard/TearOutMatrixRows4To7NL.spec.mjs). Measured headed on 2026-11-18 (macOS, real Chrome, 1280 × 720, Demo B atexamples/dashboard/crossWindow), tearing out Workbench, the pane that fills the center:root: edge-zone {right: side-tabs}withside-tabs.items: [inspector, timeline, console, workbench]: Workbench came home into the right band, and no center exists.The existing row-7 checks (
homes: 1,rendered: 1) pass on both states.The Problem
Two defects in one journey, tearing out the main pane and bringing it back:
LayoutAdapter.projectEdgeZoneNode(src/dashboard/dock/projection/LayoutAdapter.mjs:900-978) pushes a sole middle item as a row of the edge-zone's vbox (middleItems.length === 1→rows.push(middleItems[0])). A right band without a center is then a 280 px band of natural height in the vbox's top-left, away from its edge and filling nothing.workbench-tabs), and the return appends the pane to the existing right band instead of rebuilding the center.The Architectural Reality
Design authority:
WorkspaceDocument.captureNodeHome(src/dashboard/dock/model/WorkspaceDocument.mjs:516): "Captures a node's own position well enough to REBUILD it, not merely to find it." Its JSDoc adds: "An edge-zone parent needs no anchor: an edge-zone node survives losing every zone, so its id and the zone key remain resolvable." The center slot ofrootis resolvable at return, so the return should rebuild the center node there. For the empty window,LayoutAdapter.projectEdgeBandgives a band "a fixed cross-extent … instead of flexing against the center"; no record says what a window shows while it has no center, which is the design fork in The Fix.Workspace.mjs:1281(WorkspaceDocument.captureItemPlacement); the fold on return:Operations.foldPlacements(src/dashboard/dock/model/Operations.mjs:305) with the host'sresolveDockReturnDescriptor.fallbackTargethint.The Fix
{parentId: 'root', slot: 'center'}) when the original node is gone:Operations.centerWellReturnDescriptor, Demo B's return policy, answersrestoreTabfor a still-free center and keeps the append policy everywhere else, a band that emptied included.LayoutAdapter's opt-inenableDockCenterWellprojects the empty center as a well that names the away pane (design read (a), comment 7069215433). The well as a drop target is #21827.Contract Ledger
LayoutAdapter.project()optionenableDockCenterWell(src/dashboard/dock/projection/LayoutAdapter.mjs:548)trueprojects a centerless edge-zone's empty center as acenter-wellcomponent (flex: 1, nodockNodeId), so the bands keep their edgestrue: no well, the unchanged default forapps/workstationand every other centerless hostproject()JSDocDockLayoutAdapter.spec.mjs: "without the option…", "the well takes the center flex…"dockAwayPlacements(:546)TearOut#placementshomeis this center while it is away (in the catalog, absent from the tree)null: the well stays plainproject()+createCenterWell()JSDocDockLayoutAdapter.spec.mjs: "names the pane…", "stays a plain well…"dockCenterWellAwayText(:547){title}takes the pane's title (else its id), inserted literally'{title} is in its own window'project()JSDocDockLayoutAdapter.spec.mjs: "keeps a title with replacement patterns literal"Operations.centerWellReturnDescriptor(document, itemId, placement)(src/dashboard/dock/model/Operations.mjs:303)WorkspaceDocument.captureNodeHomerestoreTab, rebuilding the centerappendingReturnDescriptor's answerDockZoneModel.spec.mjs(centerWellReturnDescriptorblock);TearOutMatrixRows4To7NL.spec.mjsrow 7TearOut#getProjectionCallbacks()keydockAwayPlacements(src/dashboard/dock/window/TearOut.mjs:285)placementsrecord, not a copy, spread into a host's projection optionsTearOutMatrixRows4To7NL.spec.mjsrow 7.neo-dashboard-dock-center-well,.neo-dashboard-dock-center-well-text(resources/css/src/dashboard/Container.css:661,:673)Acceptance Criteria
root.zones.centeragain.captureNodeHome.Out of Scope
Workspace#popOutRailItem), unless they share the defect.Related
#21363 (found it; carries the red arm) · #20075 (a different collapse: parked-element residue after a popup close, closed) · ADR 0029.
Live latest-open + closed sweep: at 2026-11-18T17:04Z, checked the latest 20 open, plus open and closed searches for "edge zone center", "torn-out pane returns", "dock return placement", "side band" and "empty center dock"; read the closed hit #20075 (a different cause). 84 open, red band. No owning ticket or epic holds the dock's empty center or the return's rebuild (#21358 covers the Multi-Window cards, not the dock), and no equivalent or prior exclusion exists. A2A in-flight sweep: latest 30 messages in all read-states, newest at 17:02:44Z, no claim on the dock's center or return. MC sweep: "after tearing out the center pane the main window shows only a small block of side tabs in the corner …", 8 results, no prior decision. Own-assignment sweep: 7 open, none overlapping.
Retrieval Hint: "torn-out center pane empties the dock window; the returning pane lands in the side band instead of a rebuilt center"