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
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"
Context
Gate 2 of the v13.3.1 cut (#20022), run 1 on
deve2f77dd0fb (fulle2e/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 pairneo-tab-header-button-4, -5before the drag,-5hidden behind the drag proxy during it,-5alone 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#processDragEndrestores focus to the dragged header, which reveals the toolbar's focus-gated actions; they take strip width andOverflow#projectre-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:startSamplerrecords per frame{count, outside}only, so a two-header frame cannot be told apart by identity; lines 124–127 assertsamples.length > 3,max(count) ≤ settled,outside == [].src/draggable/container/SortZone.mjsprocessDragEnd: focus restore to the dragged button after the drop.src/tab/plugin/Overflow.mjs:project/computeOverflowre-partition for the usable extent once the focus-gated actions mount (theirresizeevents arrive after the drop).The Fix
Spec-only, in
WorkstationTabReorderNoFlashNL.spec.mjs:outside).Acceptance Criteria
appliedHiddenIdsmember), the repaired oracle fails naming that id.--repeat-each=3) on the repaired spec, nowaitForTimeout(check-fixed-sleepsgreen).e2e-braintier 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
pre-dropinstead ofsettled: a flash of exactly one withheld header during a pre-drop-sized frame would pass.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"