LearnNewsExamplesServices
Frontmatter
id18930
titleThe rail-iframe drag control arm measures its row mid-glide and presses the pane
stateClosed
labels
bugaitestingdashboard
assigneesneo-opus-grace
createdAtSep 18, 2026, 6:56 PM
updatedAtSep 18, 2026, 7:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/18930
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 18, 2026, 7:17 PM

The rail-iframe drag control arm measures its row mid-glide and presses the pane

Closed v13.2.0/archive-v13-2-0-chunk-22 bugaitestingdashboard
neo-opus-grace
neo-opus-grace commented on Sep 18, 2026, 6:56 PM

Context

test/playwright/component/dashboard/DockRailRevealIframe.spec.mjs:221, the arm control: with no reveal open, the row drops into the plain frame, fails at random on pull requests that do not touch the dock. It failed on 6 of 46 failed components job attempts since 2026-09-15, on five unrelated branches: #18731, #18829, #18844, #18879, #18889. Locally it fails 2 of 40 and 4 of 80 runs with no load.

The Problem

The frame document never receives a dragover, and __nativeDrop stays null. A diagnostic copy of the arm recorded where the press landed and where the row was, and all 4 failures of 80 look the same:

  • The row was measured at y=413, but at the press it sat at y=53. At the measured centre, elementFromPoint returns div#dock-rail-iframe-pane-source.dock-flip-item-source, the pane, not the row.
  • The only parent event is mousedown@div#dock-rail-iframe-pane-source. No dragstart fires, because the press missed the draggable row.
  • In all 76 passing runs the row was measured at y=53 and the press hit it.
  • The frame document was ready in every run (readyState: complete, listener installed), so the frame is not the cause.

The fixture's workspace applies its zone document in construct, and the dock animates that first layout with a FLIP: the panes glide into place by transform. dragRowIntoPlainFrame() reads boundingBox() as soon as beforeEach sees the panes, sometimes mid-glide. The reveal arm never hits this, because its reveal takes longer than the glide.

The Architectural Reality

  • src/dashboard/dock/projection/MotionSignal.mjs: while any dock motion is in flight, the FLIP commit layer included, the workspace subtree carries neo-dashboard-dock-animating. Its docblock says assertion surfaces key off exactly that signal.
  • test/playwright/component/dashboard/DockTabReorderGesture.spec.mjs restingTab() is the sibling precedent. It measures only when the signal is absent and host.getAnimations({subtree: true}) is empty: "a rect read mid-glide is not where a press lands."

The Fix

dragRowIntoPlainFrame() reads both points, the source row's centre and the plain frame's centre, from a resting-dock poll on the restingTab() pattern, and presses only then. It is test-only, and no source changes.

Acceptance Criteria

  • AC-1: the control arm passes 200 of 200 local runs, where dev fails about 1 in 20.
  • AC-2: the reveal arm still asserts what it did: the drop lands, the shield had lifted by dragstart, and the press dismisses.
  • AC-3: the helper reads the same two signals restingTab() reads. No fixed wait.

Out of Scope

  • The boot FLIP itself. Animating the first layout is the dock's behaviour, not a defect.

Avoided Traps

  • ⛔ A retry around the gesture. It would hide the next arm that measures mid-glide, and the dock already publishes when it is at rest.

Related

  • Live latest-open sweep: checked the 20 latest open issues at 2026-09-18T17:00Z, plus an all-state search for DockRailRevealIframe. The closed #18087 and #18134 are the reveal's own defects, not this arm.
  • A2A: I offered this flake to the swarm twice today, and nobody claimed it.

Origin Session ID: 0a997d38-ccdb-4352-ac21-566606a6ab2d Retrieval Hint: "DockRailRevealIframe control arm flake FLIP mid-glide boundingBox resting dock"