LearnNewsExamplesServices
Frontmatter
id18573
titleRETRACTED — the maximize terminal-clear half state is fixture-manufactured concurrency, not a production race (see #18561)
stateClosed
labels
bugaitestingdashboard
assignees[]
createdAtSep 10, 2026, 12:58 AM
updatedAtSep 10, 2026, 1:18 AM
githubUrlhttps://github.com/neomjs/neo/issues/18573
authorneo-opus-ada
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 10, 2026, 1:18 AM

RETRACTED — the maximize terminal-clear half state is fixture-manufactured concurrency, not a production race (see #18561)

Closed v13.2.0/archive-v13-2-0-chunk-20 bugaitestingdashboard
neo-opus-ada
neo-opus-ada commented on Sep 10, 2026, 12:58 AM

Context

#18487 is CLOSED COMPLETED and that closure is correct — but it resolved the instrument, not the race, and its own closing commit says so.

@neo-opus-grace's 9630d96060 — "test(dock): the maximize settle probe measures instead of hanging (#18487) (#18539)" — fixed a probe that awaited a refreshPromise only projectDockZoneDocument assigns, while the fixture's refreshCount trigger calls refreshDockWorkspace() directly. The spec's refreshSettledWithin2s=false was therefore "a statement about the probe stalling, not about the refresh." Real fix, correctly scoped, correctly closed.

The commit body then states the residual in one line:

"Publishing the receipt does not change the terminal-clear arm's failure rate: 5/24"

So the race is measured, acknowledged in the commit that closed its ticket, and has no open owner. This ticket is that owner. Filing a successor rather than reopening #18487, per the standing rule that a PR-resolved ticket is that PR's record.

The defect

test/playwright/component/dashboard/DockMaximize.spec.mjs — the arm named "inside-the-node operations keep maximize, outside operations clear it terminally, and continuity re-applies iff the node survives" intermittently fails its terminal-clear assertion. The fixture writes an unresolvable node id and the fail-safe must clear it:

await setPlugin(page, {maximizedNodeId: 'ghost-tabs'});
await page.waitForFunction(() => document.querySelectorAll('.neo-dock-maximized').length === 0);
await expectIdCleared(page)

expectIdCleared sees "ghost-tabs" where it expects null — the DOM class is gone but plugin.maximizedNodeId still holds the unresolvable id. A half state, which the arm's own comment says the contract forbids: "the fail-safe clears an unresolvable one — never a half state."

⚠️ Cite the arm by NAME, not by line. It has been :384, :422 and :504 across three weeks of receipts below; a line number here is a timestamp.

Evidence — four independent measurements, three machines, two families

when who tree / head rate receipt
2026-09-08 @neo-gpt PR #18482, head 1a162cda6c, Ubuntu 24.04.4 hosted sole failure of 257 component cases run 34250313505 — expected null, received "ghost-tabs", resizeObserved=true refreshSettledWithin2s=false
2026-09-08 @neo-gpt PR #18492, head e518148b1a, hosted sole failure of 263 component cases run 34271242251; preceding head e0ecfaa2fc passed, and the diff between them is a 2-line authoring unit-test repair touching no production code and no component spec
2026-09-09 @neo-opus-grace at 9630d96060 5/24 stated in the closing commit body
2026-09-09 @neo-opus-ada dev @ baefd059ea, --repeat-each=8 --workers=1, M5 Max / macOS 26.6.2 3/8 (37.5%), toBe(...) received "ghost-tabs" every time 151/160 passed across the spec's 20 arms; this arm and one other were the only failures

Two independent hosted receipts isolate it from any PR's diff: in both cases it was the sole failure in a job whose changed files cannot reach maximize, and in the second the immediately preceding head passed. This is a pre-existing race in the production path, not a PR regression and not a harness artifact of one branch.

#18378 (CLOSED) is the sibling that made the failure legible — it is why the assertion now reports which side is pending instead of a bare null mismatch. That instrument is what makes this ticket writable.

Acceptance criteria

  • AC-1 — the mechanism is named at source before any change. Which write leaves maximizedNodeId set after the class is removed: the fail-safe clearing presentation without clearing state, or a re-entrant refresh re-setting state after the clear. Anchors, not adjectives. observed, never cause, until a source read supports it.
  • AC-2 — red-first at a stated rate on a stated tree. The arm's failure rate is measured before the fix on a named SHA and machine, and after, with the same --repeat-each and worker count. ⚠️ A single green run is not evidence against a 20-37% race; the run count must make a false green improbable, and the count is stated.
  • AC-3 — the fix is in the production path, not the arm. Tightening a locator, widening a timeout, or awaiting a new fixture receipt would turn a real half state green. If the conclusion is genuinely that the contract permits this state, the fix is to change the contract and the arm's comment, explicitly, not to relax the assertion.
  • AC-4 — the never a half state guarantee is armed or removed. The comment at the assertion asserts a property; a guarantee in a comment is a test obligation. Either an arm holds it or the words come out.
  • AC-5 — hosted parity. Since both cross-family receipts are hosted-Linux and the local rate differs, the post-fix measurement includes one hosted run; a fix that only holds on an 18-core laptop has not been shown to hold where the receipts came from.

Out of scope

  • The duplicate header-only dock shell — a different arm ("a plugin destroyed while its owner lives…") failing 6/8 with toHaveCount(1) receiving 2. That is #18561, separately owned, different signature, different mechanism.
  • The probe instrumentation — #18487 did that and did it correctly.
  • Making the assertion report which side is pending — #18378 did that, and this ticket depends on it.

Avoided traps

  • Reopening #18487. Its closure is that commit's record; the residual belongs in a successor with the residual named. Reopening would leave a ticket open with no PR able to close it.
  • Reading the closing commit's 5/24 as a fix receipt. It is the opposite — it is the author stating what the fix did not change, which is why this ticket exists rather than a re-measurement.
  • Trusting a green local run. At 3/8 locally, one pass is p ≈ 0.63. Grace's 5/24 and my 3/8 are the same defect at different sampling depths, not a disagreement.
  • Citing the arm by line number. :384 → :422 → :504 across the receipts above.

Related

  • #18487 — closed COMPLETED; resolved the probe, named this residual in its commit body
  • #18378 — closed; the reporting variant that makes the failing side legible
  • #18561 — the other flaky arm in this same spec, mine, unrelated mechanism
  • #18567 — held at UNSTABLE by #18561's arm; the same spec reddening unrelated PRs is the recurring cost both tickets share