Owner: Vega, PR due Thu 19 Nov. Not curated for contributors: the operator has escalated this twice, and the cut is Mon 23 Nov.
Context
The operator has watched the headed tear-out matrix twice and seen wrong sizes both times:
- On 2026-11-08: "proxy sizes inside your headed e2e tests definitely broken."
- On 2026-11-18, in the run that was the receipt for #21295: "all dashboard examples at the start had WRONG proxy sizings. what value has a suite if does not BREAK on such wrong results?"
Both runs passed (11 rows green, 3 test.fixme) because no row measures a size. On 11-08 Maryam traced three causes (Memory Core session f799fbcf-436d-4be0-b9ec-5ba9a23bc666). No ticket followed, and today's dev still has the first cause.
The Problem
- A torn-out tab opens a 320 × 240 window.
Workspace#openTearOutVessel (src/dashboard/dock/Workspace.mjs:1194-1195) and DemoBNativeWindowHost#openTearOutVessel (examples/dashboard/crossWindow/DemoBNativeWindowHost.mjs:615-616) size the window from proxyRect.
- For a tab drag, the proxy is the tab's header button (76.5 × 32 on 11-08), so every window drops to the 320 × 240 floor.
- Re-checked on
dev today: both places still read proxyRect?.width / proxyRect?.height.
- The colors rows tear out on their first step.
test/playwright/e2e/colors/tearOutMatrix.spec.mjs presses at the handle's center, then moves to box.x + (viewport.width + 200 - box.x) * (i / 25), whose first point lies near the handle's left edge.
- The 1216 px proxy jumps about 550 px left, its intersection ratio falls below the 0.8 detach threshold, and the popup opens before the slow crossing the row's title names.
- Re-checked today (1280 × 720, real Chrome, headed): the popup was acquired within the first 3 of 25 steps.
- Measured on 11-08, not re-measured here:
main.addon.DragDrop#onDragStart takes the proxy rect and offsets from the pressed element (resolvePressedElement), which can be an inner handle. DragZone#dragStart sizes the proxy to getDragElementRoot() and never syncs them back.
- Demo B's
boundaryContainerRect defaults to its 32 px tab strip, so a 24 px vertical move inside the window already detaches.
Also measured today, on one tree served by webpack serve and by #21295's file server, with identical numbers:
- At 1280 × 720 the colors dashboard stacks its panels at 153, 198 and 198 px.
- At 198 px the bar chart cuts its axis title at rest ("urrences in grid cells").
- The torn-out pie window (1216 × 198) clips its top label whenever the random data puts a label there.
The Architectural Reality
Design authority: Workspace#openTearOutVessel, "The proxy rect is the pane the user dragged, so the vessel opens where they let go." (src/dashboard/dock/Workspace.mjs:1192), and #19559 (merged 2026-10-10), "a torn-out tab opens its window at the pane's size, measured at drag arming". A tab drag breaks the comment's premise, because its proxy is not the pane.
- The pane's rect at arming already exists. On 11-08,
TabSortZone#onDragStart measured it, TearOut#onDockTearOutExit forwarded it as sourceRect, and NativeLifecycle#acquire carried it.
- The matrix guide (
learn/guides/specificfeatures/TearOutPortabilityMatrix.md) measures platform semantics: acquisition, moveTo, hysteresis. Its one render receipt is [id^="neo-"] being visible in the popup, which a 320 × 240 window and a clipped chart both pass.
- The runner is
test/playwright/playwright.config.matrix.mjs: headed real Chrome, 1280 × 720, serial, not in CI. It serves colors/tearOutMatrix.spec.mjs, dashboard/TearOutMatrixRows4To7NL.spec.mjs, dashboard/DemoBCrossWindowDragNL.spec.mjs and dashboard/DemoBThirdClaimantStageNL.spec.mjs.
The Fix
- Both
openTearOutVessel paths size the window from the source pane's rect measured at arming; proxyRect keeps only the position. The two places share the same two lines, so they get one implementation.
- The colors rows' path starts where the pointer pressed and moves right, so each row's crossing is the one its title names.
- Every live matrix row measures what the operator looked at, at four moments:
- at gesture start, the proxy's rect equals its source's ± 1 px;
- the popup has the source pane's size, per #19559's contract;
- the content fills the popup, and no chart text leaves its svg;
- after the drop or the reintegration, the remaining panes fill their window.
- Anything else these assertions find red (cause 3, the 198 px colors charts) is either fixed in this PR or split into a ticket that the PR names before it opens.
Acceptance Criteria
Out of Scope
- The matrix's Windows and Linux cells (
NOT_YET_MEASURED stays).
- The
test.fixme contracts of rows 2 and 4–7, except where a live arm now covers them.
- The colors dashboard's layout at other viewports.
Avoided Traps
- A taller runner viewport would make the colors charts fit and hide what the operator saw, so 1280 × 720 stays.
[id^="neo-"] being visible proves the popup booted, not that anyone can read it.
- Pixel snapshots break on the colors app's random data. Rects do not move with the data, so the assertions compare rects.
Related
#21295 (the run this was the receipt for; the clipping measured as not the file server's: https://github.com/neomjs/neo/pull/21295#issuecomment-6983371618) · #19559 (the pane-size contract) · #15243 (the matrix's origin) · #19597 (header-action pop-outs at the 480 × 360 fallback, closed) · #21358 (the Multi-Window band; its Colors leaf is #21330).
Live latest-open + closed sweep: at 2026-11-18T15:40:55Z, checked the latest 20 open, plus open and closed searches for "tear-out matrix", "colors chart clipped", "popup size tear-out" and "matrix geometry". Read the closed hits #19597, #15243, #15443 and #19584 for scope. 86 open, red band. No owning ticket or epic holds the tear-out sizes (#21358 covers the Multi-Window cards, not the dock's tear-out), and no equivalent or prior exclusion exists. A2A in-flight sweep: latest 30 messages in all read-states, newest at 15:39:55Z, no claim on tear-out sizes. MC sweep: "tear-out matrix passed while the colors dashboard charts were clipped …" and "popup window sized to the source panel too small …", 12 results. They hold Maryam's 11-08 trace (never ticketed) and the 10-10 pane-size contract, and no decision against it. Own-assignment sweep: 7 open, none overlapping (#21215 is the file server). Structure map: N/A, no Agent OS placement.
Origin Session ID: 7ef5a927-030d-4641-88bb-3f0110d5e946
Retrieval Hint: "torn-out tab opens a 320×240 window: proxyRect is the tab button, not the pane; the tear-out matrix asserts no geometry"
Owner: Vega, PR due Thu 19 Nov. Not curated for contributors: the operator has escalated this twice, and the cut is Mon 23 Nov.
Context
The operator has watched the headed tear-out matrix twice and seen wrong sizes both times:
Both runs passed (11 rows green, 3
test.fixme) because no row measures a size. On 11-08 Maryam traced three causes (Memory Core sessionf799fbcf-436d-4be0-b9ec-5ba9a23bc666). No ticket followed, and today'sdevstill has the first cause.The Problem
Workspace#openTearOutVessel(src/dashboard/dock/Workspace.mjs:1194-1195) andDemoBNativeWindowHost#openTearOutVessel(examples/dashboard/crossWindow/DemoBNativeWindowHost.mjs:615-616) size the window fromproxyRect.devtoday: both places still readproxyRect?.width/proxyRect?.height.test/playwright/e2e/colors/tearOutMatrix.spec.mjspresses at the handle's center, then moves tobox.x + (viewport.width + 200 - box.x) * (i / 25), whose first point lies near the handle's left edge.main.addon.DragDrop#onDragStarttakes the proxy rect and offsets from the pressed element (resolvePressedElement), which can be an inner handle.DragZone#dragStartsizes the proxy togetDragElementRoot()and never syncs them back.boundaryContainerRectdefaults to its 32 px tab strip, so a 24 px vertical move inside the window already detaches.Also measured today, on one tree served by webpack serve and by #21295's file server, with identical numbers:
The Architectural Reality
Design authority:
Workspace#openTearOutVessel, "The proxy rect is the pane the user dragged, so the vessel opens where they let go." (src/dashboard/dock/Workspace.mjs:1192), and #19559 (merged 2026-10-10), "a torn-out tab opens its window at the pane's size, measured at drag arming". A tab drag breaks the comment's premise, because its proxy is not the pane.TabSortZone#onDragStartmeasured it,TearOut#onDockTearOutExitforwarded it assourceRect, andNativeLifecycle#acquirecarried it.learn/guides/specificfeatures/TearOutPortabilityMatrix.md) measures platform semantics: acquisition,moveTo, hysteresis. Its one render receipt is[id^="neo-"]being visible in the popup, which a 320 × 240 window and a clipped chart both pass.test/playwright/playwright.config.matrix.mjs: headed real Chrome, 1280 × 720, serial, not in CI. It servescolors/tearOutMatrix.spec.mjs,dashboard/TearOutMatrixRows4To7NL.spec.mjs,dashboard/DemoBCrossWindowDragNL.spec.mjsanddashboard/DemoBThirdClaimantStageNL.spec.mjs.The Fix
openTearOutVesselpaths size the window from the source pane's rect measured at arming;proxyRectkeeps only the position. The two places share the same two lines, so they get one implementation.Acceptance Criteria
openTearOutVesselpaths open a window of the dragged pane's size. A Demo B arm proves it, red ondev(320 × 240).dev(≤ 3 of 25).openTearOutVesselwith a tab-sizedproxyRectand a pane-sized source rect, and gets the pane's size.Out of Scope
NOT_YET_MEASUREDstays).test.fixmecontracts of rows 2 and 4–7, except where a live arm now covers them.Avoided Traps
[id^="neo-"]being visible proves the popup booted, not that anyone can read it.Related
#21295 (the run this was the receipt for; the clipping measured as not the file server's: https://github.com/neomjs/neo/pull/21295#issuecomment-6983371618) · #19559 (the pane-size contract) · #15243 (the matrix's origin) · #19597 (header-action pop-outs at the 480 × 360 fallback, closed) · #21358 (the Multi-Window band; its Colors leaf is #21330).
Live latest-open + closed sweep: at 2026-11-18T15:40:55Z, checked the latest 20 open, plus open and closed searches for "tear-out matrix", "colors chart clipped", "popup size tear-out" and "matrix geometry". Read the closed hits #19597, #15243, #15443 and #19584 for scope. 86 open, red band. No owning ticket or epic holds the tear-out sizes (#21358 covers the Multi-Window cards, not the dock's tear-out), and no equivalent or prior exclusion exists. A2A in-flight sweep: latest 30 messages in all read-states, newest at 15:39:55Z, no claim on tear-out sizes. MC sweep: "tear-out matrix passed while the colors dashboard charts were clipped …" and "popup window sized to the source panel too small …", 12 results. They hold Maryam's 11-08 trace (never ticketed) and the 10-10 pane-size contract, and no decision against it. Own-assignment sweep: 7 open, none overlapping (#21215 is the file server). Structure map: N/A, no Agent OS placement.
Origin Session ID: 7ef5a927-030d-4641-88bb-3f0110d5e946 Retrieval Hint: "torn-out tab opens a 320×240 window: proxyRect is the tab button, not the pane; the tear-out matrix asserts no geometry"