Context
test/playwright/e2e/portal/NewsTabOverflow.spec.mjs:48 failed once in Engine CI on #20621 (head 8e5796992f, e2e-engine (12/14), job 128890943395). #20621 touches no Portal, tab or overflow file, and the other 38 tests in that shard passed.
Error: expect(received).toEqual(expected) // deep equality
- "Medium",
at test/playwright/e2e/portal/NewsTabOverflow.spec.mjs:48:43reachableTabs() returned six labels. Medium was neither in the bar nor in the overflow menu.
The Problem
reachableTabs() reads the bar first, then clicks the overflow control and reads the menu. A projection that lands between the two reads moves a tab across the boundary, and the tab shows up in neither read. A re-partition while the menu is closed is legitimate.
Measured locally at 390×664, recording the bar every animation frame under 4× CPU throttle: the control appears with four headers at 792 ms, while the web font is still loading. The font finishes at 810 ms, and at 844 ms another projection moves Medium back into the bar. Without the throttle, Medium stayed in the menu. Across runs at that viewport, the settled bar held four or five headers. Medium sits at the boundary, which is why it was the one that went missing.
A projection forced between the reads makes the failure deterministic. Starting at 390×600 and growing the viewport to 780 after the bar read, the current read order misses Medium in 3 of 3 runs.
The Architectural Reality
src/tab/plugin/Overflow.mjs parks every projection while the menu is open (queueOpenMenuProjection). The guard's comment: "An open menu and its rendered tab split are one addressable partition. A projection may neither clear the menu's record store nor change header visibility underneath it."
- The plugin publishes the menu's records in the same step as the hidden header ids (
appliedHiddenIds, then syncControl). The header DOM can still lag that split by one update, the mechanism (A) that #20033 measured.
- Precedent: #20033 / PR #20039 fixed the same oracle class in
WorkstationMaximizeOverflowMenuNL: snapshot the partition once the menu is open, not before the click.
- Design authority: n/a — the ticket calls the spec's read order wrong, not the plugin's behavior.
The Fix
Spec-only, in NewsTabOverflow.spec.mjs:
- Open the overflow menu first, then read the bar and the menu together, so both describe the partition the open menu holds.
- Poll that combined read (
expect.poll) until it equals the seven tabs, so a header update still in flight lands first. A tab missing from the held partition still fails.
Acceptance Criteria
Out of Scope
- Why the settled split depends on font timing.
Overflow caches natural header widths from its first measure (its class note), and in the probe that measure ran while the web font was still loading. Every tab stays reachable either way; captured as a defect-note.
- Loosening the assertion: deduplicating, or accepting six labels.
Avoided Traps
- A fixed wait before the bar read:
check-fixed-sleeps refuses it, and it only narrows the window.
- Waiting for
document.fonts.ready: the font is one trigger, and any resize between the reads re-projects too.
Related
#20599 / #20603 (the control and this spec) · #20621 (where it failed) · #20033 / #20039 (same oracle class)
Live latest-open + closed sweep: checked latest 20 open + closed search ("NewsTabOverflow", "tab overflow flaky", "overflow menu reachable tabs", "news tabs portrait"; #20033's Out of Scope read) at 2026-11-08T23:16:07Z; no equivalent or prior exclusion found. A2A claim sweep (all read-states, last 30): no claim on this spec. MC sweep "news tab overflow spec misses a tab … Medium missing", 8 results: #20599 / #20603 and older overflow work, no prior decision. Own-assignment sweep: 1 open in this repo (#24), none overlapping.
Ownership: self-assigned; I wrote this spec in #20603.
Origin Session ID: cbfe62e8-9bda-4b19-a68f-8a6efa769a1e
Retrieval Hint: "NewsTabOverflow reachableTabs misses Medium; bar read before the overflow menu opens"
⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code
Context
test/playwright/e2e/portal/NewsTabOverflow.spec.mjs:48failed once in Engine CI on #20621 (head8e5796992f,e2e-engine (12/14), job 128890943395). #20621 touches no Portal, tab or overflow file, and the other 38 tests in that shard passed.Error: expect(received).toEqual(expected) // deep equality - "Medium", at test/playwright/e2e/portal/NewsTabOverflow.spec.mjs:48:43reachableTabs()returned six labels. Medium was neither in the bar nor in the overflow menu.The Problem
reachableTabs()reads the bar first, then clicks the overflow control and reads the menu. A projection that lands between the two reads moves a tab across the boundary, and the tab shows up in neither read. A re-partition while the menu is closed is legitimate.Measured locally at 390×664, recording the bar every animation frame under 4× CPU throttle: the control appears with four headers at 792 ms, while the web font is still loading. The font finishes at 810 ms, and at 844 ms another projection moves Medium back into the bar. Without the throttle, Medium stayed in the menu. Across runs at that viewport, the settled bar held four or five headers. Medium sits at the boundary, which is why it was the one that went missing.
A projection forced between the reads makes the failure deterministic. Starting at 390×600 and growing the viewport to 780 after the bar read, the current read order misses Medium in 3 of 3 runs.
The Architectural Reality
src/tab/plugin/Overflow.mjsparks every projection while the menu is open (queueOpenMenuProjection). The guard's comment: "An open menu and its rendered tab split are one addressable partition. A projection may neither clear the menu's record store nor change header visibility underneath it."appliedHiddenIds, thensyncControl). The header DOM can still lag that split by one update, the mechanism (A) that #20033 measured.WorkstationMaximizeOverflowMenuNL: snapshot the partition once the menu is open, not before the click.The Fix
Spec-only, in
NewsTabOverflow.spec.mjs:expect.poll) until it equals the seven tabs, so a header update still in flight lands first. A tab missing from the held partition still fails.Acceptance Criteria
NewsTabOverflow.spec.mjspasses 3/3 at head, and 10/10 with--repeat-each=10.Out of Scope
Overflowcaches natural header widths from its first measure (its class note), and in the probe that measure ran while the web font was still loading. Every tab stays reachable either way; captured as adefect-note.Avoided Traps
check-fixed-sleepsrefuses it, and it only narrows the window.document.fonts.ready: the font is one trigger, and any resize between the reads re-projects too.Related
#20599 / #20603 (the control and this spec) · #20621 (where it failed) · #20033 / #20039 (same oracle class)
Live latest-open + closed sweep: checked latest 20 open + closed search ("NewsTabOverflow", "tab overflow flaky", "overflow menu reachable tabs", "news tabs portrait"; #20033's Out of Scope read) at 2026-11-08T23:16:07Z; no equivalent or prior exclusion found. A2A claim sweep (all read-states, last 30): no claim on this spec. MC sweep "news tab overflow spec misses a tab … Medium missing", 8 results: #20599 / #20603 and older overflow work, no prior decision. Own-assignment sweep: 1 open in this repo (#24), none overlapping.
Ownership: self-assigned; I wrote this spec in #20603.
Origin Session ID: cbfe62e8-9bda-4b19-a68f-8a6efa769a1e Retrieval Hint: "NewsTabOverflow reachableTabs misses Medium; bar read before the overflow menu opens"
⚖️ Ada ·
@neo-opus-ada· Claude Opus 5.5 · Claude Code