LearnNewsExamplesServices
Frontmatter
id17940
titleBuffered lists have no example and no real-scroll coverage
stateClosed
labels
bugaitestingcore
assigneesneo-opus-ada
createdAtAug 31, 2026, 2:55 PM
updatedAtAug 31, 2026, 8:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/17940
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtAug 31, 2026, 8:11 PM

Buffered lists have no example and no real-scroll coverage

neo-opus-ada
neo-opus-ada commented on Aug 31, 2026, 2:55 PM

Context

Split out of #17878 per pull-request-workflow.md §9.1 — that ticket investigates a reported scroll jump and remains open; this one is the coverage and example gap the investigation exposed, which is deliverable on its own and is not contingent on the outcome.

Neo.list.Buffered currently has:

  • no example app. Measured: 0 files under examples/ import list/Buffered, against a control of 3 for list/Base. Nothing under src/ references it either, apart from Buffered.mjs itself — its only consumers live outside this repository.
  • no coverage that can observe a real scroll. test/playwright/unit/list/Buffered.spec.mjs calls onScrollCapture() with already-decided absolute scrollTop values (80, 40, 205, …). Every page.mouse.wheel in the e2e tier moves a single large delta (500, 900, 1500, 4000) and asserts only that scrolling occurred.

The Problem

The two gaps compound. A component with no example gives scroll-behaviour work nothing to point a browser at — which is exactly what #17878 hit. And coverage that injects a decided scrollTop asserts what the list does with a number it is handed, never what happens to the number across a real scroll, so wheel-distance fidelity can regress while the suite stays green.

bufferRowRange and itemHeight are the two configs whose whole effect is windowing behaviour, and neither is observable in a test that supplies the scroll position itself.

The Architectural Reality

  • src/list/Buffered.mjs — onScrollCapture (:695-707), calculateMountedRange (:314-335), createItems (:344), spacer construction (:445-458)
  • src/list/Base.mjs:92 — itemHeight_ defaults to null; a fixture omitting it divides scrollTop by null
  • test/playwright/playwright.config.component.mjs — the tier that renders its own checkout on a free port, which is what makes a real-browser scroll witness trustworthy here
  • test/playwright/component/apps/ — the tier's per-scenario harness-app convention (empty-viewport, dock-splitter, dock-rail)

The Fix

  • examples/list/buffered/ — a Neo.list.Buffered over 5,000 records with bufferRowRange, itemHeight and height exposed as live config controls, following the examples/list/base shape.
  • test/playwright/component/apps/buffered-list/ — a harness app with pinned geometry, following the tier's existing per-scenario convention.
  • test/playwright/component/list/BufferedWheelFidelity.spec.mjs — real page.mouse.wheel gestures, asserting physical DOM scrollTop, App-Worker scrollTop, mountedRange and pool identity in the same run, with a RED CONTROL that drives the same path with a viewport-sized delta so the greens are falsifiable.

Acceptance Criteria

  • examples/list/buffered/ exists and boots, exposing bufferRowRange / itemHeight / height as live controls
  • A component-tier spec drives incremental wheel deltas and asserts the scroll seat moves by exactly their sum
  • The spec asserts App-Worker scrollTop against the physical DOM seat in the same run
  • The spec covers a mounted-range boundary crossing at a derived offset, not an approximate one
  • Negative deltas are covered — reversal lands on the same pixels
  • A RED CONTROL proves the fidelity assertion can fail, and drives the same code path as the green arms rather than writing the scroll seat directly
  • Pool identity is asserted with spacers excluded by class, and the spacer count asserted, so the exclusion is proven non-empty

Transferred from #17878

Received 2026-08-31 under RA-1 on PR #17944. #17878 reduced to a browser scroll-anchoring defect with a one-property Engine repair, and could not close over evidence living in this lane's unmerged PR. These three describe instrument breadth, which is what this ticket is for. Restated verbatim so the transfer loses nothing; they are required here and are not discharged by #17944.

  • Positive and negative small wheel deltas remain incremental before a mounted-range boundary. (#17878 retains the positive direction; the negative direction is this lane's.)
  • DOM scrollTop and App-Worker scrollTop converge after each gesture without programmatic snap-back.
  • The physical component pool stays bounded and retains its component identities across the boundary.

Out of Scope

  • #17878's reported jump. This ticket delivers the instrument; it does not explain the report, and a green witness does not close that ticket.
  • Any change to src/list/Buffered.mjs. The createItems-on-every-scroll discrepancy is real and stays with #17878.
  • The programmatic-scrollTop entry path, which the wheel arms do not cover.

Avoided Traps

  • A control that writes the scroll seat directly. The first revision did, and raced createItems()'s re-stamp (Buffered.mjs:377) — intermittent, and its failure mode was indistinguishable from the defect it existed to detect.
  • Treating concurrent Playwright runs as independent. They share ports and servers; a result from a run whose served tree cannot be established is not a result.
  • slice(1, -1) for the pool. Correct today and silent tomorrow — the spacers are excluded by class so the reason is in the code.

Related

  • #17878 — the investigation that exposed both gaps
  • #17835 — adjacent scroll-edge acquisition work on buffered surfaces

Live latest-open sweep: checked the latest 20 open Engine issues at 2026-08-31T12:54:34Z; no equivalent found. A2A in-flight claim sweep over the last 12 messages: no overlapping [lane-claim].

Decision Record impact: none.

Origin Session ID: 05d6d0ba-aeba-48c1-8687-a51674325080