Context
test/playwright/component/dashboard/DockMaximize.spec.mjs — the continuity assertion inside "inside-the-node operations keep maximize, outside operations clear it terminally, and continuity re-applies iff the node survives" — is intermittent on CI and does not reproduce on a maintainer host. #18003 owns that defect and stays open for it.
This ticket owns a narrower and separable problem the defect hunt exposed: when that arm reds, the failure carries no observable that says which of two mechanisms produced it. Every CI red so far has been an anonymous data point.
The observed failure is always the same on the surface — expect(locator('.neo-dock-maximized')).toHaveCount(1) receives 0 for the full 5s poll window, 14 polls, and nothing re-triggers it. Total, not slow.
Live latest-open sweep: checked the latest 20 open issues at 2026-09-01T05:18:29Z; no equivalent found. A2A in-flight claim sweep over the last 30 messages at the same timestamp: no competing [lane-claim]/[lane-intent] on this scope.
The Problem
Neo.dashboard.dock.Workspace#applyDockMaximizePresentation has two terminal exits that produce a byte-identical DOM outcome, and the assertion can only see the DOM:
- The fail-safe fired.
failDockMaximize(nodeId) sets maximizedNodeId = null, because either the tabs node did not resolve (getDockHost()?.down?.({dockNodeId}) returned nothing) or measureDockMaximizeRect() returned null — which it does whenever the workspace root measures 0 in either dimension. The transient is gone, so nothing re-applies it. Marker count 0, permanently.
- The write landed and the presentation was lost downstream.
maximizedNodeId still holds the id, but the tabContainer.set({cls, wrapperStyle}) write never reached a live projected node — for instance because a deferred re-projection retired that container instance first. Marker count 0, permanently.
These are different defects with different owners: (1) is the fail-safe classifying a transient condition as unresolvable; (2) is a lost write. One config read at failure time separates them, and the arm currently takes no such read.
The cost is concrete: #18003 has four CI attempts at one unchanged SHA (3 pass / 1 fail), and the single red cannot be assigned to either family. Any future occurrence is worth the same nothing until the arm reports it.
The Architectural Reality
src/dashboard/dock/Workspace.mjs — applyDockMaximizePresentation() (both fail-guards, then the tabContainer.set() write), failDockMaximize(), and measureDockMaximizeRect() (the rect?.width > 0 && rect?.height > 0 gate that turns a mid-reflow measurement into a null).
test/playwright/component/dashboard/DockMaximize.spec.mjs — the spec already owns a readWorkspace() helper over the Neo.worker.App.getConfigs RPC, so the observable is one existing call away. No new fixture, no new RPC, no product change.
The assertion itself is correct and stays exactly as it is. Only what a failure reports changes.
The Fix
A expectMaximizedCount(page, count) helper in the spec that wraps the existing toHaveCount assertion, and on failure appends the maximizedNodeId read to the error message before rethrowing. Applied at the continuity assertion — the one that reds, and the only one in the arm following a cross-worker write with no committed operation behind it.
Deliberately not a product-side log: that would change runtime behaviour on a path whose timing is the thing under investigation.
Decision Record impact
none.
Acceptance Criteria
Out of Scope
- The
#18003 defect itself. Determining product-defect vs test-defect, and fixing it, stays there. This ticket makes the next occurrence readable; it does not make it less likely.
- Broadening the helper to every
toHaveCount in the spec. The other assertions follow committed operations or direct clicks and do not carry the two-exit ambiguity; a blanket swap would be churn.
- Any change to
applyDockMaximizePresentation, the fail-safe, or the rect gate. If the instrument later shows the fail-safe is misclassifying a transient, that is a product ticket filed on that evidence.
Avoided Traps
- Adding a retry or a fixed sleep. Both would convert an intermittent into a green run — the failure mode
#18001's ticket documents in the same subsystem, and Fixed Sleep Lint bans the second outright.
- Reading the config before the wait. Playwright evaluates an assertion's message argument eagerly, so the obvious one-liner captures pre-wait state and answers the wrong question. The read has to happen in the catch.
- Treating the local non-repro as settled from one sample per configuration. The four configurations recorded on
#18003 were one run each — the identical shape whose failure that ticket's AC-1 established. Re-run at 20 samples per configuration before any claim rests on it.
Related
#18003 (the defect this instrument serves) · #18001 / PR #18007 (the adjacent superseded-extent cure, and the source of the mutation-both-ways discipline applied here) · Parent: #13158.
Origin Session ID: 51f7a2a6-bbc9-4b16-b0c8-76dee94096f3
Retrieval Hint: query_raw_memories("DockMaximize continuity two terminal exits maximizedNodeId at failure time attribution")
— Grace (Opus 5, Claude Code) 🖖
Context
test/playwright/component/dashboard/DockMaximize.spec.mjs— the continuity assertion inside "inside-the-node operations keep maximize, outside operations clear it terminally, and continuity re-applies iff the node survives" — is intermittent on CI and does not reproduce on a maintainer host.#18003owns that defect and stays open for it.This ticket owns a narrower and separable problem the defect hunt exposed: when that arm reds, the failure carries no observable that says which of two mechanisms produced it. Every CI red so far has been an anonymous data point.
The observed failure is always the same on the surface —
expect(locator('.neo-dock-maximized')).toHaveCount(1)receives0for the full 5s poll window, 14 polls, and nothing re-triggers it. Total, not slow.Live latest-open sweep: checked the latest 20 open issues at 2026-09-01T05:18:29Z; no equivalent found. A2A in-flight claim sweep over the last 30 messages at the same timestamp: no competing
[lane-claim]/[lane-intent]on this scope.The Problem
Neo.dashboard.dock.Workspace#applyDockMaximizePresentationhas two terminal exits that produce a byte-identical DOM outcome, and the assertion can only see the DOM:failDockMaximize(nodeId)setsmaximizedNodeId = null, because either the tabs node did not resolve (getDockHost()?.down?.({dockNodeId})returned nothing) ormeasureDockMaximizeRect()returnednull— which it does whenever the workspace root measures0in either dimension. The transient is gone, so nothing re-applies it. Marker count0, permanently.maximizedNodeIdstill holds the id, but thetabContainer.set({cls, wrapperStyle})write never reached a live projected node — for instance because a deferred re-projection retired that container instance first. Marker count0, permanently.These are different defects with different owners: (1) is the fail-safe classifying a transient condition as unresolvable; (2) is a lost write. One config read at failure time separates them, and the arm currently takes no such read.
The cost is concrete:
#18003has four CI attempts at one unchanged SHA (3 pass / 1 fail), and the single red cannot be assigned to either family. Any future occurrence is worth the same nothing until the arm reports it.The Architectural Reality
src/dashboard/dock/Workspace.mjs—applyDockMaximizePresentation()(both fail-guards, then thetabContainer.set()write),failDockMaximize(), andmeasureDockMaximizeRect()(therect?.width > 0 && rect?.height > 0gate that turns a mid-reflow measurement into anull).test/playwright/component/dashboard/DockMaximize.spec.mjs— the spec already owns areadWorkspace()helper over theNeo.worker.App.getConfigsRPC, so the observable is one existing call away. No new fixture, no new RPC, no product change.The assertion itself is correct and stays exactly as it is. Only what a failure reports changes.
The Fix
A
expectMaximizedCount(page, count)helper in the spec that wraps the existingtoHaveCountassertion, and on failure appends themaximizedNodeIdread to the error message before rethrowing. Applied at the continuity assertion — the one that reds, and the only one in the arm following a cross-worker write with no committed operation behind it.Deliberately not a product-side log: that would change runtime behaviour on a path whose timing is the thing under investigation.
Decision Record impact
none.Acceptance Criteria
maximizedNodeId, read at failure time, in the failure message. The assertion's subject, timeout, and expected count are unchanged.null.Out of Scope
#18003defect itself. Determining product-defect vs test-defect, and fixing it, stays there. This ticket makes the next occurrence readable; it does not make it less likely.toHaveCountin the spec. The other assertions follow committed operations or direct clicks and do not carry the two-exit ambiguity; a blanket swap would be churn.applyDockMaximizePresentation, the fail-safe, or the rect gate. If the instrument later shows the fail-safe is misclassifying a transient, that is a product ticket filed on that evidence.Avoided Traps
#18001's ticket documents in the same subsystem, and Fixed Sleep Lint bans the second outright.#18003were one run each — the identical shape whose failure that ticket's AC-1 established. Re-run at 20 samples per configuration before any claim rests on it.Related
#18003(the defect this instrument serves) ·#18001/ PR#18007(the adjacent superseded-extent cure, and the source of the mutation-both-ways discipline applied here) · Parent:#13158.Origin Session ID: 51f7a2a6-bbc9-4b16-b0c8-76dee94096f3
Retrieval Hint:
query_raw_memories("DockMaximize continuity two terminal exits maximizedNodeId at failure time attribution")— Grace (Opus 5, Claude Code) 🖖