LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtSep 7, 2026, 1:46 AM
updatedAtSep 7, 2026, 2:12 AM
githubUrlhttps://github.com/neomjs/neo/issues/18415
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 7, 2026, 2:12 AM

WorkstationStarvedGeometryNL demands two rows of pool growth from 1.6 rows of freed height

neo-opus-ada
neo-opus-ada commented on Sep 7, 2026, 1:46 AM

The Symptom

WorkstationStarvedGeometryNL:64 fails on dev at its geometry-change leg:

Error: the taller box grows the row pool without frames
Expected: > 28
Received:   28

The sixth and last of tonight's red workstation e2e arms, and the only one not explained by the document-order reveal substitution behind #18410 and #18412. It is a different defect and was deliberately held back from that story until probed.

The Arithmetic

Measured in the running app, under the spec's own starvation rig:

boot        grid 338px    pool 27 rows
after       grid 418px    pool 28 rows
freed band  80px          all 80px arrived at the grid
row height  50px

80px of new viewport at a 50px row is 1.60 rows. The pool grew by one; the assertion demands > bootRows + 1, i.e. two.

Correction, after @neo-gpt read the source: an earlier revision of this ticket said "the engine floors". It does not — grid.Body derives availableRows as ceil(availableHeight / rowHeight) - 1 and pools that plus a fixed buffer, against an availableHeight the worker was handed rather than the container box measured here. ceil - 1 is not floor. floor(grown / rowHeight) is a conservative lower bound on the growth, which is the right instrument regardless, and the arithmetic never depended on the mechanism claim.

The pool is not store-capped: scrollHeight is 5,000,050, a 100k-row store. And it tracks viewport consistently across the change — pool ≈ visible + ~20 buffer at both ends (27 = 6.8 + 20.2, 28 = 8.4 + 19.6). The product is behaving correctly at both measurements.

The Mechanism

The arm makes the height premise proportional and leaves the pool claim absolute:

expect(domHeightAfterFlex - bootState.gridHeight, 'the zone mutation grew the grid layout box (trigger premise)')
    .toBeGreaterThan(freedBandHeight * 0.6);              // ← proportional

await expect.poll(…).toBeGreaterThan(bootRows + 1);       // ← absolute: two rows, always

The spec's own comment, one line above the first, states the principle it then does not apply to the second:

"a fixed literal here calibrates to one theme era's band chrome and rots when extents or floors change; the layout-chain integrity claim is proportional"

bootRows + 1 is exactly such a literal. It holds only while the freed band happens to exceed two whole rows, and it fails the moment the freed height, the row height or the band's floor puts the delta below 2.0 — which is a rounding boundary, not a regression.

Not established, and deliberately not guessed: which change moved the delta under 2.0. The assertion is wrong independently of that history, and inventing a cause is how two dead hypotheses started tonight.

The Fix

Derive the expected growth from the measured freed height and the measured row height, floored, in the same idiom as the height premise above it. Guard the vacuous case: if the freed height justifies zero rows, the assertion proves nothing and must say so rather than pass.

Acceptance Criteria

  • The arm passes on dev.
  • The pool expectation is derived from the freed height and a measured row height, never a literal row count.
  • A freed height justifying zero rows fails as a vacuous rig rather than passing.
  • The failure message carries the freed pixels and the rows they justify, so a future red reads as arithmetic rather than as starvation.
  • The starvation claim is untouched: frames requested and never serviced, hidden document, silent ResizeObserver.

Out of Scope

  • The pool's buffer policy. This ticket asserts the pool tracks the box; it takes no position on how large the buffer should be.
  • #18410 / #18412's reveal-substitution mechanism, which does not apply here.

Related

  • #18410, #18412 — the other five reds, one mechanism, both spec-side like this one.

Origin Session ID: 95f9ff6e-1ba5-43b6-860a-208fbf7f4442

tobiu referenced in commit b40764f - "test(workstation): the starved-geometry pool claim is proportional, like its own premise (#18415) (#18416) on Sep 7, 2026, 2:12 AM
tobiu closed this issue on Sep 7, 2026, 2:12 AM