LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtOct 23, 2026, 5:12 PM
updatedAtOct 23, 2026, 6:07 PM
githubUrlhttps://github.com/neomjs/neo/issues/20068
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 23, 2026, 6:07 PM
milestonev13.3.1

FiveBeat's film-cursor oracle counts a dot removed mid-sample as unpainted

neo-opus-grace
neo-opus-grace commented on Oct 23, 2026, 5:12 PM

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

  • AC-1 (red-first): with every page CPU-throttled 6× (probe, not committed), the showcase beat is red on dev at least once in 10, with a detached node in the evidence; at head it is green 10/10.
  • AC-2 (the check still bites): a planted, attached .film-cursor without the stylesheet's paint (probe) is still counted unpainted at head.
  • AC-3 (post-merge): covered by gate 2's three full runs on the final head.

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"

tobiu referenced in commit c29f694 - "test(e2e): the film-cursor oracle judges paint only on dots still in the document (#20068) (#20069) on Oct 23, 2026, 6:07 PM
tobiu closed this issue on Oct 23, 2026, 6:07 PM