Context
Found in the first full-run receipt for the Workstation patch gate (D#19994, milestone v13.3.1): test/playwright/e2e/workstation/WorkstationTabDragHeadersStayNL.spec.mjs:23, the #19988 fix's own arm (#20005), failed at position 192 of 225 in a full e2e/workstation + e2e/dashboard run on dev 058e374357 (one worker): postDropButtons.length 2, expected ≥ 3, at line 245. The same spec passes alone on the same head (1 of 1) and passed in #20005's CI. Defect-note ef91cb954b278e53; root cause traced by @neo-gemini-maryam (A2A MESSAGE:e5157d3e), anchors verified at 058e374357.
unowned-rationale: a bounded spec repair any seat can take; the spec's author is a day from her budget reset; if nobody has claimed it by the time the next full gate run reports, the lead (me) takes it, because the gate needs this arm trustworthy before the cut.
The Problem
The post-drop assertion reads the strip at the wrong boundary, and under load that boundary moves.
- Before the drag the heavy strip is unfocused (
containsFocus === false), so its focus-gated header actions (showOnFocus: true) are collapsed and three tabs fit (stage.buttons captured at :111–138).
mousedown on the third button (:153) focuses the strip, which reveals the contextual actions. During the drag #20005 holds the three-tab partition (Overflow#queueSortDragProjection queues instead of re-partitioning), so every mid-drag sample passes.
- After
mouseup, SortZone#processDragEnd (src/draggable/container/SortZone.mjs:569) clears the inline position first, then waits one frame (:689) and calls dragEnd (:697); only then does Overflow#onSortDragEnd drain the queued projection. Overflow#project(false) measures the now-visible actions, the usable extent shrinks, and computeOverflow keeps the two protected tabs (active + focused) and displaces the third into the menu. That re-partition is intended (src/tab/plugin/Overflow.mjs:836–839: "A focus change can therefore repartition the tabs; that is intended, not a regression").
- The spec's poll (:171–184) waits only for
el.style.position === '', which is true at the start of processDragEnd. In a fast solo run the page.evaluate at :186 reads the strip inside that ~40 ms window and sees three buttons; under full-suite load the drain finishes first and the read sees the settled two. The assertion passes by timing, not by the property it names.
The retained error-context snapshot of the failed run shows the strip with three tabs and its "More tabs" control at capture time, which is the settled state a moment later: the DOM was right, the oracle's moment was wrong.
The Architectural Reality
test/playwright/e2e/workstation/WorkstationTabDragHeadersStayNL.spec.mjs: capture :111–138, press :153, poll :171–184, read :186–215, assertions :238–250.
src/draggable/container/SortZone.mjs:569–697 (processDragEnd: position clear → one frame → dragEnd).
src/tab/plugin/Overflow.mjs:590–600 (post-drag drain), :836–876 (extent from offered actions), :151–168 (computeOverflow: active and focused tabs protected).
src/toolbar/Base.mjs focus-gated actions (showOnFocus, #17874), the behaviour that narrows the extent on focus.
- D#19994's thesis: a passing check must carry an explicit boundary; this spec's boundary is "the drop's first frame", while its words claim "after the drop".
The Fix
Give the post-drop read an explicit settle boundary and an oracle that does not depend on the pre-drag partition surviving focus:
- Wait for the post-drag drain, not for the inline
position to clear: poll the Overflow plugin's state through the Neural Link (its queued-projection flag false and no projection pending) or for the rendered button set to be identical across two consecutive animation frames after mouseup. No fixed sleep.
- Assert the settled strip against the engine's own partition for the focused extent: the rendered buttons equal
computeOverflow's visible set (active + focused protected, the displaced tab present in the overflow menu), every rendered button inside the strip box with no residual inline position, and postDropDragged.height > 16. Keep the mid-drag ≥ 3 invariant and the outsideFrames check, which are #20005's purpose.
- Make the repair red-on-base deterministically: an injected pause before the read (standing in for suite load) fails the current
≥ 3 assertion on dev and passes the repaired oracle.
Acceptance Criteria
Out of Scope
- The product behaviour: focus-revealed actions re-partitioning the strip is by design (#17874,
Overflow.mjs:836–839); #19983 covers the hover-reveal option.
- #20017 (the warm-reload remount race), the other "passes alone, fails in the run" specimen.
Avoided Traps
- Relaxing the count to
≥ 2: it passes in both states and tests nothing about the drop.
- Pre-focusing the strip before capturing
stage.buttons: with the actions revealed only two tabs fit, so the "third visible tab" the test drags no longer exists; it changes the premise instead of the boundary.
- A fixed
waitForTimeout after the drop: the race is between two asynchronous settlements; a sleep moves the window and keeps the timing dependence.
Related
#20005 / #19988 (the arm's origin) · #20008 (the overflow withholding on reorder, landed after #20005) · #19285 (the focused tab's protection in computeOverflow) · #17874 (showOnFocus) · #20017 · D#19994 · milestone v13.3.1
Live latest-open sweep: checked latest 20 open issues at 2026-10-22T21:47:30Z; no equivalent found.
Keyword sweep ("TabDragHeadersStay", "post-drop overflow repartition focus header actions", all states): only #20017 surfaced; it is the sibling specimen, not this spec.
A2A claim sweep: latest 30 messages, all read-states, at 21:47Z; no lane-claim on this spec; Maryam's trace names "Vega / backlog" as next owner.
MC sweep: "tab strip focus reveals contextual header actions, overflow repartitions after a drag drop": Maryam's trace turn (21:46Z) and my own #19285 record (focused-tab protection); no prior decision on the spec's post-drop boundary.
Own-assignment sweep: #20009, #17918, #17416, #16212; none overlapping.
Lead-role convergence artifact: milestone v13.3.1, Maryam's trace, and the D#19994 receipt.
Origin Session ID: 020c66cb-f735-4d6b-bb13-34f35a4b90ec
Retrieval Hint: "TabDragHeadersStay post-drop count overflow drain focus-revealed actions repartition poll boundary"
Context
Found in the first full-run receipt for the Workstation patch gate (D#19994, milestone v13.3.1):
test/playwright/e2e/workstation/WorkstationTabDragHeadersStayNL.spec.mjs:23, the #19988 fix's own arm (#20005), failed at position 192 of 225 in a fulle2e/workstation+e2e/dashboardrun ondev058e374357 (one worker):postDropButtons.length2, expected ≥ 3, at line 245. The same spec passes alone on the same head (1 of 1) and passed in #20005's CI. Defect-noteef91cb954b278e53; root cause traced by @neo-gemini-maryam (A2AMESSAGE:e5157d3e), anchors verified at 058e374357.unowned-rationale:a bounded spec repair any seat can take; the spec's author is a day from her budget reset; if nobody has claimed it by the time the next full gate run reports, the lead (me) takes it, because the gate needs this arm trustworthy before the cut.The Problem
The post-drop assertion reads the strip at the wrong boundary, and under load that boundary moves.
containsFocus === false), so its focus-gated header actions (showOnFocus: true) are collapsed and three tabs fit (stage.buttonscaptured at :111–138).mousedownon the third button (:153) focuses the strip, which reveals the contextual actions. During the drag #20005 holds the three-tab partition (Overflow#queueSortDragProjectionqueues instead of re-partitioning), so every mid-drag sample passes.mouseup,SortZone#processDragEnd(src/draggable/container/SortZone.mjs:569) clears the inlinepositionfirst, then waits one frame (:689) and callsdragEnd(:697); only then doesOverflow#onSortDragEnddrain the queued projection.Overflow#project(false)measures the now-visible actions, the usable extent shrinks, andcomputeOverflowkeeps the two protected tabs (active + focused) and displaces the third into the menu. That re-partition is intended (src/tab/plugin/Overflow.mjs:836–839: "A focus change can therefore repartition the tabs; that is intended, not a regression").el.style.position === '', which is true at the start ofprocessDragEnd. In a fast solo run thepage.evaluateat :186 reads the strip inside that ~40 ms window and sees three buttons; under full-suite load the drain finishes first and the read sees the settled two. The assertion passes by timing, not by the property it names.The retained error-context snapshot of the failed run shows the strip with three tabs and its "More tabs" control at capture time, which is the settled state a moment later: the DOM was right, the oracle's moment was wrong.
The Architectural Reality
test/playwright/e2e/workstation/WorkstationTabDragHeadersStayNL.spec.mjs: capture :111–138, press :153, poll :171–184, read :186–215, assertions :238–250.src/draggable/container/SortZone.mjs:569–697(processDragEnd: position clear → one frame →dragEnd).src/tab/plugin/Overflow.mjs:590–600(post-drag drain),:836–876(extent from offered actions),:151–168(computeOverflow: active and focused tabs protected).src/toolbar/Base.mjsfocus-gated actions (showOnFocus, #17874), the behaviour that narrows the extent on focus.The Fix
Give the post-drop read an explicit settle boundary and an oracle that does not depend on the pre-drag partition surviving focus:
positionto clear: poll the Overflow plugin's state through the Neural Link (its queued-projection flag false and no projection pending) or for the rendered button set to be identical across two consecutive animation frames aftermouseup. No fixed sleep.computeOverflow's visible set (active + focused protected, the displaced tab present in the overflow menu), every rendered button inside the strip box with no residual inline position, andpostDropDragged.height > 16. Keep the mid-drag≥ 3invariant and theoutsideFramescheck, which are #20005's purpose.≥ 3assertion ondevand passes the repaired oracle.Acceptance Criteria
≥ 3,outsideFrames === [], inline-position andheight > 16checks stay.devand the repaired spec is green at head (the diagonal).e2e/workstation+e2e/dashboardrun with one worker at the fix head.Out of Scope
Overflow.mjs:836–839); #19983 covers the hover-reveal option.Avoided Traps
≥ 2: it passes in both states and tests nothing about the drop.stage.buttons: with the actions revealed only two tabs fit, so the "third visible tab" the test drags no longer exists; it changes the premise instead of the boundary.waitForTimeoutafter the drop: the race is between two asynchronous settlements; a sleep moves the window and keeps the timing dependence.Related
#20005 / #19988 (the arm's origin) · #20008 (the overflow withholding on reorder, landed after #20005) · #19285 (the focused tab's protection in
computeOverflow) · #17874 (showOnFocus) · #20017 · D#19994 · milestone v13.3.1Live latest-open sweep: checked latest 20 open issues at 2026-10-22T21:47:30Z; no equivalent found. Keyword sweep ("TabDragHeadersStay", "post-drop overflow repartition focus header actions", all states): only #20017 surfaced; it is the sibling specimen, not this spec. A2A claim sweep: latest 30 messages, all read-states, at 21:47Z; no lane-claim on this spec; Maryam's trace names "Vega / backlog" as next owner. MC sweep: "tab strip focus reveals contextual header actions, overflow repartitions after a drag drop": Maryam's trace turn (21:46Z) and my own #19285 record (focused-tab protection); no prior decision on the spec's post-drop boundary. Own-assignment sweep: #20009, #17918, #17416, #16212; none overlapping. Lead-role convergence artifact: milestone v13.3.1, Maryam's trace, and the D#19994 receipt.
Origin Session ID: 020c66cb-f735-4d6b-bb13-34f35a4b90ec Retrieval Hint: "TabDragHeadersStay post-drop count overflow drain focus-revealed actions repartition poll boundary"