Context
A v13.3.1 AC-2 roving specimen (D#19994 discussioncomment-19133550, cut record #20022). WorkstationMaximizeOverflowMenuNL › "docked control arm: clicking More tabs keeps the overflow menu open, focused, and partition-stable until selection" went red in a full e2e/workstation + e2e/dashboard run and is green alone. The appliedHiddenIds assertion passed. The visible-headers assertion failed: with the menu open, the DOM showed one header fewer while the plugin's appliedHiddenIds still equalled the pre-open set. The cut lead's triage: one ticket per cause.
Observed (Vega's run): the red and its signature. Not retained: which header vanished. Measured (6× CPU throttle, AC-2): two mechanisms, below.
The Problem
Corrected 2026-10-23, before any PR, per AC-2's own clause. The first version inferred one cause from a code read. The throttled measurement confirmed it and found a second, more frequent one that the inferred fix does not cover. Both pass the worker-only gate, and neither is a product defect.
waitForOverflowSettled gates the pre-open snapshot on worker flags only: measuring === false, projectQueued === false, and a non-empty appliedHiddenIds. It then reads the DOM-visible headers and compares them, and appliedHiddenIds, with the open-menu state.
(A) The DOM lags the published split. This is the specimen's signature. Overflow#project calls applySplit, which hides headers through button.hidden = true, a vdom update it does not await, and sets appliedHiddenIds synchronously. project() then releases measuring in its finally. So the gate can pass while a header's removal is still in flight. The snapshot then lists a header the worker already treats as hidden. With the menu open it vanishes, and appliedHiddenIds stays the same. Measured in one of three instrumented runs: neo-tab-header-button-5 was in the applied set (11 ids) and still rendered at the snapshot.
(B) The strip re-partitions after the gate and before the menu opens. The spec's pane-body click reveals the focus-gated actions in the DOM. The plugin learns their width only from their own resize events (Toolbar#onActionResize → actionGeometryChange → Overflow#onActionGeometryChange). Under load those events can arrive after the gate has seen an idle plugin.
Instrumented run: the last pass before the snapshot measured one action (the 24 px control) for a 355 px extent and hid 10 tabs. About 400 ms later on the app-worker clock, the four revealed actions' resizes arrived; the next pass measured 120 px of actions, a 259 px extent, and hid 11. That was still before the menu opened, so the menu opened with 11 items against a 10-id snapshot.
On dev at 6× this fails the docked arm 8/8, at itemCount. No DOM gate can see it, because nothing in the worker or the DOM marks a resize that has not been delivered.
A re-partition while the menu is closed is legitimate. An open menu parks every projection: applySplit has one caller, behind queueOpenMenuProjection. So the partition the contract protects is the one the menu opened against, not a pre-click read.
The Architectural Reality
src/tab/plugin/Overflow.mjs:
applySplit sets button.hidden / button.show() per header, then me.appliedHiddenIds = [...hidden]. project()'s finally sets me.measuring = false, and publishProjectionState() fires overflowProjectionIdle.
onActionGeometryChange projects on each action's rendered resize.
queueOpenMenuProjection parks every projection while the menu is shown or mounted.
src/toolbar/Base.mjs: onActionResize fires actionGeometryChange from each action root's DOM resize.
test/playwright/e2e/workstation/WorkstationMaximizeOverflowMenuNL.spec.mjs: waitForOverflowSettled reads only the plugin's state. assertOverflowMenuHoldsAndSelects snapshots appliedHiddenIds and preVisibleHeaders before clicking the control.
- Precedent: #20020 / PR #20021 settled
WorkstationTabDragHeadersStayNL on the DOM and the worker state together.
The Fix
Spec-only.
waitForOverflowSettled also polls until the DOM shows appliedHiddenIds: a hidden id has no rendered box, and every other id has one. This covers (A).
assertOverflowMenuHoldsAndSelects takes the partition snapshot (appliedHiddenIds and the visible headers) once the menu is visible and settled, then holds 350 ms and compares. This covers (B). The focus-gated action ids stay compared with the pre-click read, because focus never leaves the pane.
Acceptance Criteria
Out of Scope
Whether overflowProjectionIdle / whenProjectionIdle should wait for the DOM or for undelivered action resizes. Both production consumers (the dock MotionSignal and the tab SortZone drag start) read that edge. A drag parks projections itself (queueSortDragProjection). It becomes its own ticket only if a falsifier shows a consumer harmed.
Related
Live latest-open sweep: checked latest 20 open issues at 2026-10-23T07:28:40Z; no equivalent found. A2A claim sweep (all read-states, last 25): only my own lane-claim MESSAGE:d18626d6. MC sweep "overflow menu open header disappears … appliedHiddenIds unchanged flaky full run": prior art #19984, #18721; no prior decision on this specimen. Own-assignment sweep: none overlapping.
Origin Session ID: d373d94f-3d91-4a15-a181-4309706acfb5
Retrieval Hint: "overflow settle gate worker flags before DOM split lands WorkstationMaximizeOverflowMenuNL docked arm; revealed action resize re-partitions after idle gate"
Context
A v13.3.1 AC-2 roving specimen (D#19994 discussioncomment-19133550, cut record #20022).
WorkstationMaximizeOverflowMenuNL› "docked control arm: clicking More tabs keeps the overflow menu open, focused, and partition-stable until selection" went red in a fulle2e/workstation+e2e/dashboardrun and is green alone. TheappliedHiddenIdsassertion passed. The visible-headers assertion failed: with the menu open, the DOM showed one header fewer while the plugin'sappliedHiddenIdsstill equalled the pre-open set. The cut lead's triage: one ticket per cause.Observed (Vega's run): the red and its signature. Not retained: which header vanished. Measured (6× CPU throttle, AC-2): two mechanisms, below.
The Problem
waitForOverflowSettledgates the pre-open snapshot on worker flags only:measuring === false,projectQueued === false, and a non-emptyappliedHiddenIds. It then reads the DOM-visible headers and compares them, andappliedHiddenIds, with the open-menu state.(A) The DOM lags the published split. This is the specimen's signature.
Overflow#projectcallsapplySplit, which hides headers throughbutton.hidden = true, a vdom update it does not await, and setsappliedHiddenIdssynchronously.project()then releasesmeasuringin itsfinally. So the gate can pass while a header's removal is still in flight. The snapshot then lists a header the worker already treats as hidden. With the menu open it vanishes, andappliedHiddenIdsstays the same. Measured in one of three instrumented runs:neo-tab-header-button-5was in the applied set (11 ids) and still rendered at the snapshot.(B) The strip re-partitions after the gate and before the menu opens. The spec's pane-body click reveals the focus-gated actions in the DOM. The plugin learns their width only from their own
resizeevents (Toolbar#onActionResize→actionGeometryChange→Overflow#onActionGeometryChange). Under load those events can arrive after the gate has seen an idle plugin.Instrumented run: the last pass before the snapshot measured one action (the 24 px control) for a 355 px extent and hid 10 tabs. About 400 ms later on the app-worker clock, the four revealed actions' resizes arrived; the next pass measured 120 px of actions, a 259 px extent, and hid 11. That was still before the menu opened, so the menu opened with 11 items against a 10-id snapshot.
On
devat 6× this fails the docked arm 8/8, atitemCount. No DOM gate can see it, because nothing in the worker or the DOM marks a resize that has not been delivered.A re-partition while the menu is closed is legitimate. An open menu parks every projection:
applySplithas one caller, behindqueueOpenMenuProjection. So the partition the contract protects is the one the menu opened against, not a pre-click read.The Architectural Reality
src/tab/plugin/Overflow.mjs:applySplitsetsbutton.hidden/button.show()per header, thenme.appliedHiddenIds = [...hidden].project()'sfinallysetsme.measuring = false, andpublishProjectionState()firesoverflowProjectionIdle.onActionGeometryChangeprojects on each action's rendered resize.queueOpenMenuProjectionparks every projection while the menu is shown or mounted.src/toolbar/Base.mjs:onActionResizefiresactionGeometryChangefrom each action root's DOMresize.test/playwright/e2e/workstation/WorkstationMaximizeOverflowMenuNL.spec.mjs:waitForOverflowSettledreads only the plugin's state.assertOverflowMenuHoldsAndSelectssnapshotsappliedHiddenIdsandpreVisibleHeadersbefore clicking the control.WorkstationTabDragHeadersStayNLon the DOM and the worker state together.The Fix
Spec-only.
waitForOverflowSettledalso polls until the DOM showsappliedHiddenIds: a hidden id has no rendered box, and every other id has one. This covers (A).assertOverflowMenuHoldsAndSelectstakes the partition snapshot (appliedHiddenIdsand the visible headers) once the menu is visible and settled, then holds 350 ms and compares. This covers (B). The focus-gated action ids stay compared with the pre-click read, because focus never leaves the pane.Acceptance Criteria
appliedHiddenIds. The action ids stay compared with the pre-click read.devwith its mechanism recorded (vanished header inside or outsideappliedHiddenIds). With the fix, both arms are green N/N, and the maximized arm still goes red with #19984'sDomAccessfix reversed. (Amended 2026-10-23: the original asked only for the inside-the-set signature.)Out of Scope
Whether
overflowProjectionIdle/whenProjectionIdleshould wait for the DOM or for undelivered action resizes. Both production consumers (the dockMotionSignaland the tabSortZonedrag start) read that edge. A drag parks projections itself (queueSortDragProjection). It becomes its own ticket only if a falsifier shows a consumer harmed.Related
Live latest-open sweep: checked latest 20 open issues at 2026-10-23T07:28:40Z; no equivalent found. A2A claim sweep (all read-states, last 25): only my own lane-claim MESSAGE:d18626d6. MC sweep "overflow menu open header disappears … appliedHiddenIds unchanged flaky full run": prior art #19984, #18721; no prior decision on this specimen. Own-assignment sweep: none overlapping.
Origin Session ID: d373d94f-3d91-4a15-a181-4309706acfb5 Retrieval Hint: "overflow settle gate worker flags before DOM split lands WorkstationMaximizeOverflowMenuNL docked arm; revealed action resize re-partitions after idle gate"