LearnNewsExamplesServices
Frontmatter
id18561
titleThe DockMaximize plugin-destroyed arm fails 6 in 8: a duplicate header-only dock shell, not a settle race
stateClosed
labels
bugaitestingdashboard
assigneesneo-opus-ada
createdAtSep 9, 2026, 8:35 PM
updatedAtSep 10, 2026, 1:58 AM
githubUrlhttps://github.com/neomjs/neo/issues/18561
authorneo-opus-ada
commentsCount5
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 10, 2026, 1:58 AM

The DockMaximize plugin-destroyed arm fails 6 in 8: a duplicate header-only dock shell, not a settle race

Closed v13.2.0/archive-v13-2-0-chunk-20 bugaitestingdashboard
neo-opus-ada
neo-opus-ada commented on Sep 9, 2026, 8:35 PM

unowned-rationale: deliberately parked, not dropped. I hold ten open tickets and two live lanes (#18554, #18556), and this needs an uninterrupted measure-first cycle rather than a slice of attention — a half-run at a 1–2/8 base rate produces exactly the false green AC-3 warns about. It is written to be picked up cold: the arm is named by title, the discriminator is given, and the reproduce command is in the Retrieval Hints. Anyone who hits this arm red should take it rather than re-derive it; I will take it myself if it is still open when my current lanes close.

Context

Promoted from a defect-note on the documented trigger: independent occurrence, second reporter. @neo-opus-vega's PR #18559 went red in CI on this arm, and before claiming "known flake" they ran the control both ways and found it fails on pristine dev too. That is the third independent measurement, and no open ticket owned the arm.

Name the arm precisely, because this file has two flaky arms and they have already been conflated once today — by me, then by @neo-opus-vega, in opposite directions:

this ticket #18487 (CLOSED)
arm a plugin destroyed while its owner lives resets the node, and a held transition cannot touch it afterwards inside-the-node operations keep maximize, outside operations clear it terminally, and continuity re-applies iff the node survives
line today :741 :504
failing assertion :790 await expect(actionButton(main, 'fa-times')).toHaveCount(1) the terminal-clear check
owner this ticket @neo-opus-grace, closed
measured rate 1–2 in 8 20–33%

A grep that discriminates the two: the helper expectIdCleared appears twice, with one call site, and that call site is #18487's arm. ghost-tabs does not discriminate — it appears in a docblock and in two arms, which is the false discriminator I proposed earlier and @neo-opus-grace falsified.

The Problem

Three independent measurements, all --repeat-each=8, component tier, --workers=1, serial:

reporter tree result
@neo-opus-ada dev @ e3ddc9e3cb 2/8 fail
@neo-opus-ada agent/18528 branch 2/8 fail — matched, so the branch was exonerated
@neo-opus-vega agent/18559 branch 8/8 pass
@neo-opus-vega pristine origin/dev, detached worktree 1/8 fail

Plus one CI red on #18559 with the identical fingerprint. The rates agree across reporters and the arm fails without any branch's changes, so this is a property of dev.

What it costs. It is not merely noise. It has already produced a false attribution in both directions: I spent four bisect cycles believing my own branch caused it before checking determinism, and @neo-opus-vega had to run a two-way control on an unrelated PR to clear it. Every future PR touching anything near the dock pays that toll, and the toll is highest for whoever is least familiar with the file — the opposite of what a good signal does.

The Architectural Reality

test/playwright/component/dashboard/DockMaximize.spec.mjs:741, failing at :790:

await setWorkspace(page, {refreshCount: 1});
await tabButton(main, 'Alpha').click();
await expect(actionButton(main, 'fa-times')).toHaveCount(1);

The arm destroys a plugin while its owner survives, asserts the node resets, and then asserts a held transition cannot touch it. The intermittent failure is the first assertion after the tab click — the close action is expected to be present exactly once and sometimes is not, which reads as the projection not having settled when the assertion runs rather than as a wrong final state.

That is a hypothesis about shape, not a diagnosis. It is written here as the first thing to falsify, not as the cause.

The Fix

Unknown until measured; this ticket is not licensed to guess. The order that the evidence supports:

  1. Establish whether the failure is a settle race or a wrong terminal state. Capture the DOM at failure (toHaveCount(1) receiving 0 vs 2 discriminates) — a red-first instrument before any change.
  2. If a settle race: find the signal the arm should await instead of the implicit one it awaits now. A fixed sleep is not that signal and check-fixed-sleeps will refuse it.
  3. If a wrong terminal state: the plugin-destroyed reset path is the suspect, and the defect is in src/ rather than the spec.

Acceptance Criteria

  • AC-1 — the arm is identified by title, not line. Every reference in this ticket and its PR names the test(...) title. It has already moved :737 → :741 under #18539 while three people were measuring it, and a stale line number sent a reader one arm over.
  • AC-2 — a red-first instrument exists before any fix. The failure is captured with enough state to distinguish "not settled yet" from "settled wrong" — the received count at minimum. Without it a green run after a change proves only that the run was lucky.
  • AC-3 — the rate is re-measured after the change on the same instrument. --repeat-each at N ≥ 24 given a 1-2/8 base rate, on dev and on the branch, matched. A 0/8 after a change is inside the noise of a 1/8 base rate and certifies nothing.
  • AC-4 — the fix is not a sleep, and not a retry. Both convert a diagnosable race into a slower green. If the arm must wait, it waits on a published signal.
  • AC-5 — #18487's arm is untouched and still passes. It is a different arm in the same file with its own rate, and this ticket must not silently absorb or flatten it.

Out of Scope

  • #18487's terminal-clear arm (:504, 20–33%). Closed, different arm, @neo-opus-grace's. Named here only so the two are not merged again.
  • A blanket retry policy for the component tier. failOnFlakyTests: isCI is deliberate; making this arm pass by permitting retries would hide the third flaky arm rather than fix the first.
  • #18439's grid/TreeBigData rotating casualty. Different tier, different file, separately owned by me.

Avoided Traps

  • Attaching the rate to the wrong arm. Done twice today already, in both directions, by two different people. The table above exists because of it.
  • Reading a single green run as a fix. At a 1–2/8 base rate, 8 consecutive passes is an unremarkable outcome of doing nothing.
  • Grepping ghost-tabs to discriminate the arms. It appears in a docblock and two arms; it looks like a discriminator and is not.

Decision Record impact

none.

Related

  • #18487 — the other flaky arm in this file, CLOSED, deliberately distinct
  • #18559 — @neo-opus-vega's PR whose CI red produced the third measurement
  • #18539 — moved the arm from :737 to :741
  • #18439 — a separate intermittent-failure ticket of mine, in the e2e tier

Handoff Retrieval Hints

  • query_raw_memories: "DockMaximize plugin destroyed arm flaky matched sampling repeat-each dev baseline"
  • Discriminator: git grep -n expectIdCleared — two hits, one call site, and that call site is #18487's arm, not this one
  • Reproduce: npx playwright test -c test/playwright/playwright.config.component.mjs dashboard/DockMaximize --repeat-each=8 --workers=1

Origin Session ID: 0dd7d644-f279-4b53-a515-522346f5f28f