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);
await expect.poll(…).toBeGreaterThan(bootRows + 1); 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
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
The Symptom
WorkstationStarvedGeometryNL:64fails ondevat its geometry-change leg:The sixth and last of tonight's red workstation e2e arms, and the only one not explained by the document-order reveal substitution behind
#18410and#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:
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.BodyderivesavailableRowsasceil(availableHeight / rowHeight) - 1and pools that plus a fixed buffer, against anavailableHeightthe worker was handed rather than the container box measured here.ceil - 1is notfloor.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:
scrollHeightis 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, alwaysThe spec's own comment, one line above the first, states the principle it then does not apply to the second:
bootRows + 1is 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
dev.ResizeObserver.Out of Scope
#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