Context
My advisory gate-2 pre-run on dev f034df3359 (#20022, comment 6367888840) was 235 passed, 1 failed. The red was WorkstationFiveBeatNL.spec.mjs "showcase beat — one drag crosses two live dropzones; cancel and commit stay deterministic" at "the app stylesheet must present every cursor as a 16px input-transparent dot". The arm passes alone (3/3). It reproduces with every page of the context CPU-throttled through CDP (an uncommitted probe): 2/8 red at 4×, 4/10 red at 6×.
The Problem
captureFilmCursorLifecycle's sample() reads each page's .film-cursor nodes through locator.evaluateAll. It counts them and judges each one's rect and computed style. The probe recorded every "unpainted" node in the failing samples, and each one was detached:
isConnected: false, parentNode: null, not in document.body;
- an empty computed style and a 0×0 rect;
- yet still carrying
film-cursor workstation-film-cursor and its inline left: 1102.67px; top: 153px.
The gesture's terminal retires the dot (GestureDriver#retireFilmCursorDot). Under load, that removal lands between Playwright's element query and the mapping callback. The oracle then counts a removed dot as a dot on screen without paint. The product's lifecycle is correct: the same evidence shows finalTotal: 0 and overlapSamples: 0.
The Architectural Reality
test/playwright/e2e/workstation/WorkstationFiveBeatNL.spec.mjs (~708–727), sample(): candidate.locator('.film-cursor').evaluateAll(nodes => nodes.map(…)), then count = cursors.length and unpainted = cursors.filter(painted => !painted).length.
apps/workstation/tour/GestureDriver.mjs createFilmCursorDot sets only inline left/top. Size, position: fixed and pointer-events: none come from .workstation-film-cursor in resources/scss/src/apps/workstation/Workspace.scss.
- Removal is already asserted on its own (
finalTotal, overlapSamples, maxTotal).
The Fix
Spec-only: sample() judges paint only on connected nodes. A detached dot maps to null: it still counts as seen, so sourceSeen, maxTotal and overlapSamples keep their meaning, but its paint is not judged. An attached dot without paint still fails.
Refined during implementation: dropping detached nodes from the count, as first written here, turned a dot sighted only at its removal into "never seen". Under 6× throttle that failed 2 of 10 runs at "film mode must expose the source cursor during the gesture".
Acceptance Criteria
Out of Scope
- The production cursor lifecycle (the removal at the terminal is the intended behaviour).
- The
Target worker 'cw-win-a' does not exist lines the pre-run logged; they were not on this red's path.
Related
#20022 (the cut record, AC-2's specimen rule) · #20050 (the same kind of gate-2 oracle fix).
Live latest-open sweep: checked latest 20 open issues at 2026-10-23T15:12:23Z; no equivalent. Keyword sweep ("film-cursor", "unpaintedCursors", "input-transparent dot"): none open. A2A claim sweep: the last 12 messages, all read states, through 15:06Z; no claim. Own-assignment sweep: #19919, #15000; none overlapping.
Origin Session ID: 0a040317-fdaf-4217-b563-79e95a482f6c
Retrieval Hint: "FiveBeat showcase film cursor unpainted detached node evaluateAll removal race"
Context
My advisory gate-2 pre-run on dev
f034df3359(#20022, comment 6367888840) was 235 passed, 1 failed. The red wasWorkstationFiveBeatNL.spec.mjs"showcase beat — one drag crosses two live dropzones; cancel and commit stay deterministic" at "the app stylesheet must present every cursor as a 16px input-transparent dot". The arm passes alone (3/3). It reproduces with every page of the context CPU-throttled through CDP (an uncommitted probe): 2/8 red at 4×, 4/10 red at 6×.The Problem
captureFilmCursorLifecycle'ssample()reads each page's.film-cursornodes throughlocator.evaluateAll. It counts them and judges each one's rect and computed style. The probe recorded every "unpainted" node in the failing samples, and each one was detached:isConnected: false,parentNode: null, not indocument.body;film-cursor workstation-film-cursorand its inlineleft: 1102.67px; top: 153px.The gesture's terminal retires the dot (
GestureDriver#retireFilmCursorDot). Under load, that removal lands between Playwright's element query and the mapping callback. The oracle then counts a removed dot as a dot on screen without paint. The product's lifecycle is correct: the same evidence showsfinalTotal: 0andoverlapSamples: 0.The Architectural Reality
test/playwright/e2e/workstation/WorkstationFiveBeatNL.spec.mjs(~708–727),sample():candidate.locator('.film-cursor').evaluateAll(nodes => nodes.map(…)), thencount = cursors.lengthandunpainted = cursors.filter(painted => !painted).length.apps/workstation/tour/GestureDriver.mjscreateFilmCursorDotsets only inlineleft/top. Size,position: fixedandpointer-events: nonecome from.workstation-film-cursorinresources/scss/src/apps/workstation/Workspace.scss.finalTotal,overlapSamples,maxTotal).The Fix
Spec-only:
sample()judges paint only on connected nodes. A detached dot maps tonull: it still counts as seen, sosourceSeen,maxTotalandoverlapSampleskeep their meaning, but its paint is not judged. An attached dot without paint still fails.Refined during implementation: dropping detached nodes from the count, as first written here, turned a dot sighted only at its removal into "never seen". Under 6× throttle that failed 2 of 10 runs at "film mode must expose the source cursor during the gesture".
Acceptance Criteria
.film-cursorwithout the stylesheet's paint (probe) is still counted unpainted at head.Out of Scope
Target worker 'cw-win-a' does not existlines the pre-run logged; they were not on this red's path.Related
#20022 (the cut record, AC-2's specimen rule) · #20050 (the same kind of gate-2 oracle fix).
Live latest-open sweep: checked latest 20 open issues at 2026-10-23T15:12:23Z; no equivalent. Keyword sweep ("film-cursor", "unpaintedCursors", "input-transparent dot"): none open. A2A claim sweep: the last 12 messages, all read states, through 15:06Z; no claim. Own-assignment sweep: #19919, #15000; none overlapping.
Origin Session ID: 0a040317-fdaf-4217-b563-79e95a482f6c Retrieval Hint: "FiveBeat showcase film cursor unpainted detached node evaluateAll removal race"