LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtOct 23, 2026, 2:38 PM
updatedAtOct 23, 2026, 3:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/20050
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 23, 2026, 3:22 PM
milestonev13.3.1

The tab-reorder no-flash spec's count oracle fires on the pre-drop pair under load

Closed v13.3.1/archive-v13-3-1-chunk-1 bugaitestingdashboard
neo-opus-vega
neo-opus-vega commented on Oct 23, 2026, 2:38 PM

Context

Gate 2 of the v13.3.1 cut (#20022), run 1 on dev e2f77dd0fb (full e2e/workstation + e2e/dashboard, one worker): one red at position 199 of 230, test/playwright/e2e/workstation/WorkstationTabReorderNoFlashNL.spec.mjs:96 "a reorder never paints the withheld headers between the drop and the settled partition". Green alone 6 of 6 (--repeat-each=3). Run 2 on the same head did not hit it. The spec is #19987 → #20008's witness (a reorder painting the headers the overflow withholds); this ticket is about its oracle, not the product.

Observed (run 1, expect(max(samples.count)).toBeLessThanOrEqual(settled)): one sampled frame after the drop laid out 2 headers; the settled strip showed 1; the second assertion, no header outside the strip box, passed. The retained trace's DOM snapshots for the pane's toolbar: the pair neo-tab-header-button-4, -5 before the drag, -5 hidden behind the drag proxy during it, -5 alone once settled; the overflow's withheld headers are out of the DOM (removeDom) at every snapshot.

Design authority: the spec's own docblock: "No frame may lay out more headers than the settled strip shows, and no header may paint outside the strip box." The first sentence encodes an assumption the drop breaks.

The Problem

The strip the spec captures is unfocused, so three or two headers fit. The drop's SortZone#processDragEnd restores focus to the dragged header, which reveals the toolbar's focus-gated actions; they take strip width and Overflow#project re-partitions the strip to fewer headers (the mechanism #20020 / #20021 measured for the tab-drag headers spec). So after a drop, settled < pre-drop is the normal case. The count oracle compares every sampled frame with the settled count, so the legitimate pre-drop pair, laid out until the re-partition lands, reads as a flash. In a solo run the re-partition lands inside the first frame after the drop and no sample sees two headers; under full-run load it lands a frame or more later and the sampler catches the pair. The headers #19987 fixed (withheld ones painted) never entered the DOM.

The Architectural Reality

  • test/playwright/e2e/workstation/WorkstationTabReorderNoFlashNL.spec.mjs: startSampler records per frame {count, outside} only, so a two-header frame cannot be told apart by identity; lines 124–127 assert samples.length > 3, max(count) ≤ settled, outside == [].
  • src/draggable/container/SortZone.mjs processDragEnd: focus restore to the dragged button after the drop.
  • src/tab/plugin/Overflow.mjs: project / computeOverflow re-partition for the usable extent once the focus-gated actions mount (their resize events arrive after the drop).

The Fix

Spec-only, in WorkstationTabReorderNoFlashNL.spec.mjs:

  • The sampler records the ids of the laid-out headers per frame (and keeps outside).
  • The oracle becomes identity-based: every frame's shown ids are a subset of the union of the pre-drop visible ids and the settled visible ids. A header outside that union is a withheld header painted, the #19987 defect; the pre-drop pair laid out until the re-partition is not.
  • The count comparison goes; the outside-the-box assertion stays; the sample-count floor stays.

Acceptance Criteria

  • AC-1: Under an injected post-drop stall (6× CPU throttling), with both oracles evaluated on one shared sample set per drop over N ≥ 5 drops, the old count rule fires in at least one drop (the settled strip narrower than the pre-drop one) while the identity rule produces no stray in any of the N; the receipt records both counts. (Restated 2026-10-23 13:1xZ from "the old oracle fails and the repaired passes, 3 of 3": the race is probabilistic even under throttle, so the acceptance is the paired counterexample on the same samples, not a run count manufactured to a target; Euclid's review clarification on #20051.)
  • AC-2: Diagonal with teeth: with a withheld header forced into the laid-out DOM for one frame after the drop (a page-side probe that un-removes one appliedHiddenIds member), the repaired oracle fails naming that id.
  • AC-3: Both arms of the file green alone 6 of 6 (--repeat-each=3) on the repaired spec, no waitForTimeout (check-fixed-sleeps green).
  • AC-4: Hosted e2e-brain tier green on the PR head.

Out of Scope

The product behaviour (#19987 → #20008 stands); the focus-restore re-partition itself (by design, #20020's reading); the other roving specimens of the gate (all dispositioned on #20022).

Avoided Traps

  • Relaxing the count to pre-drop instead of settled: a flash of exactly one withheld header during a pre-drop-sized frame would pass.
  • Pre-focusing the strip before the capture (so settled = pre-drop): removes the unfocused-to-focused drop the test is about and the third header the #20020 class needed.
  • A fixed sleep before sampling: hides the frames the test exists to watch.

Related

#19987 → #20008 (the witness's defect) · #20020 → #20021 and #20033 → #20039 (the same oracle class, settle-boundary and partition oracles) · #20022 (gate 2 run 1 disposition) · defect-note fingerprint 75015a624cdd4e06

Live latest-open sweep: checked latest 20 open issues at 2026-10-23T12:36:41Z; no equivalent found. A2A claim sweep: latest 30 messages, all read-states, at 12:37Z; no claim on this spec. Memory Core rationale sweep: Maryam's trace and Julia's repair of the #20020 class (settle boundary plus a partition oracle against computeOverflow); nothing decided against an identity oracle here. Own-assignment sweep: #20023, #20022, #20009, #17918, #17416, #16212; none overlapping. Structure-map gate: N/A (a spec file).

Retrieval Hint: "no-flash count oracle pre-drop pair focus restore re-partition identity union"

tobiu referenced in commit b9abe9f - "test(e2e): the no-flash reorder spec names a withheld header instead of counting frames (#20050) (#20051)" on Oct 23, 2026, 3:22 PM
tobiu closed this issue on Oct 23, 2026, 3:22 PM