Context
Grace's defect-note (2026-10-23 13:40Z, taken while running #20056's arms): test/playwright/unit/grid/StoreInteractions.spec.mjs's Runtime Insert / Remove / Sort / Filter "ZERO structural deltas" arms fail intermittently under parallel load (2 of 11 red in one run of the file alone; 22/22 under --workers=1), undiagnosed. Reproduced on this seat with --repeat-each=4 and default workers: 4 failed / 40 passed, every failure Expected: 0, Received: 14 at the insertNode assertion of each of the four arms (:288, :331, :361, :401). CI runs the unit tier fullyParallel with 4 workers and 2 retries, so the hosted job usually recovers on a retry; the cost is retry time and the occasional third red on a PR. A test defect, not a release blocker (the operator's recorded call for the cut); filed for the post-cut hygiene lane.
Live latest-open sweep: checked the latest 20 open issues at 2026-10-23 14:5xZ (#20065 … #19145); no equivalent. A2A claim sweep (the last 14 broadcasts): no claim; the note is Grace's, unclaimed. Memory Core rationale sweep: a 2026-03-08 session met the same class in a grid benchmark harness and settled it with await grid.promiseUpdate() after the body's set(...); no decision against that shape.
The Problem
beforeEach creates the store and the grid, calls grid.initVnode(), sets grid.mounted = true, writes the column positions, then grid.body.set({availableHeight: 360, containerWidth: 600}) and waits a fixed grid.timeout(50). That set is the body's first render trigger, and the render that creates the 14-row pool (10 visible plus 2 × 2 buffer) is an asynchronous update whose deltas reach VdomHelper.updateBatch later. Each arm then spies on updateBatch around one store operation, waits another fixed 50 ms, and asserts zero insertNode / moveNode / removeNode deltas. When the initial render flushes after the setup's 50 ms — parallel workers, a loaded machine — its 14 row inserts land inside the arm's capture window: Received: 14, the pool size exactly. With one worker the render fits inside 50 ms and the arms look green. The oracle is right (a runtime insert, remove, sort or filter must never touch row structure); the setup's settle is a clock.
The Architectural Reality
test/playwright/unit/grid/StoreInteractions.spec.mjs:139-242 — the describe's captureDeltas helper (spies VdomHelper.updateBatch, waits grid.timeout(50) after the operation) and the beforeEach ending in grid.body.set({...}) + grid.timeout(50); the four arms at :244, :305, :338, :369, their insertNode assertions at :288, :331, :361, :401.
src/grid/Body.mjs:430-441 (afterSetAvailableHeight → createViewData()), :511-563 (afterSetContainerWidth), :778-812 (createViewData: a call during an in-flight update is deferred into #deferredViewData and re-run after it — one reason the first render can outlast a fixed wait).
test/playwright/playwright.config.unit.mjs:30-45 — fullyParallel: true, 4 workers and 2 retries in CI.
The Fix
Spec-only. Replace the setup's clock with the render's own settle: after grid.body.set({...}), await grid.body.promiseUpdate() (or the grid's) and assert the pool is realized (grid.body.items.length === 14) before any arm starts; give the post-operation wait inside captureDeltas the same treatment (await grid.body.promiseUpdate() instead of timeout(50)), so a slow flush cannot drop the operation's own deltas either. No engine change.
Acceptance Criteria
Out of Scope
PremeasureRows under machine load (a separate, undiagnosed defect-note); the engine's delta pipeline; the Grid snapshots with stable record keys and TreeStore describes in the same file (their own timeout(50) waits are not on the red path — a follow-up if they flake).
Avoided Traps
Raising the 50 ms (the same race one notch out); serialising the file (test.describe.configure({mode: 'serial'}) hides the clock); loosening the zero-structural-delta oracle — it is the test's point (row pooling updates content, never structure).
Related
#20056 (where the note was taken) · #19217 (another load-order class in unit specs) · the 2026-03-08 grid benchmark harness precedent (Memory Core turn 931ae750).
handoff: unowned — a builder seat claims on AGENT:* after the cut; not on v13.3.1.
Origin Session ID: d0801374-2558-4c56-97d0-ba4a719149a3
Handoff Retrieval Hints: query_raw_memories("StoreInteractions ZERO structural deltas received 14 row pool fixed 50 ms"); the 14:5xZ reproduction on this seat (4 failed / 40 passed).
📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session d0801374-2558-4c56-97d0-ba4a719149a3
Context
Grace's defect-note (2026-10-23 13:40Z, taken while running #20056's arms):
test/playwright/unit/grid/StoreInteractions.spec.mjs's Runtime Insert / Remove / Sort / Filter "ZERO structural deltas" arms fail intermittently under parallel load (2 of 11 red in one run of the file alone; 22/22 under--workers=1), undiagnosed. Reproduced on this seat with--repeat-each=4and default workers: 4 failed / 40 passed, every failureExpected: 0, Received: 14at theinsertNodeassertion of each of the four arms (:288,:331,:361,:401). CI runs the unit tierfullyParallelwith 4 workers and 2 retries, so the hosted job usually recovers on a retry; the cost is retry time and the occasional third red on a PR. A test defect, not a release blocker (the operator's recorded call for the cut); filed for the post-cut hygiene lane.Live latest-open sweep: checked the latest 20 open issues at 2026-10-23 14:5xZ (#20065 … #19145); no equivalent. A2A claim sweep (the last 14 broadcasts): no claim; the note is Grace's, unclaimed. Memory Core rationale sweep: a 2026-03-08 session met the same class in a grid benchmark harness and settled it with
await grid.promiseUpdate()after the body'sset(...); no decision against that shape.The Problem
beforeEachcreates the store and the grid, callsgrid.initVnode(), setsgrid.mounted = true, writes the column positions, thengrid.body.set({availableHeight: 360, containerWidth: 600})and waits a fixedgrid.timeout(50). Thatsetis the body's first render trigger, and the render that creates the 14-row pool (10 visible plus 2 × 2 buffer) is an asynchronous update whose deltas reachVdomHelper.updateBatchlater. Each arm then spies onupdateBatcharound one store operation, waits another fixed 50 ms, and asserts zeroinsertNode/moveNode/removeNodedeltas. When the initial render flushes after the setup's 50 ms — parallel workers, a loaded machine — its 14 row inserts land inside the arm's capture window:Received: 14, the pool size exactly. With one worker the render fits inside 50 ms and the arms look green. The oracle is right (a runtime insert, remove, sort or filter must never touch row structure); the setup's settle is a clock.The Architectural Reality
test/playwright/unit/grid/StoreInteractions.spec.mjs:139-242— the describe'scaptureDeltashelper (spiesVdomHelper.updateBatch, waitsgrid.timeout(50)after the operation) and thebeforeEachending ingrid.body.set({...})+grid.timeout(50); the four arms at:244,:305,:338,:369, theirinsertNodeassertions at:288,:331,:361,:401.src/grid/Body.mjs:430-441(afterSetAvailableHeight→createViewData()),:511-563(afterSetContainerWidth),:778-812(createViewData: a call during an in-flight update is deferred into#deferredViewDataand re-run after it — one reason the first render can outlast a fixed wait).test/playwright/playwright.config.unit.mjs:30-45—fullyParallel: true, 4 workers and 2 retries in CI.The Fix
Spec-only. Replace the setup's clock with the render's own settle: after
grid.body.set({...}),await grid.body.promiseUpdate()(or the grid's) and assert the pool is realized (grid.body.items.length === 14) before any arm starts; give the post-operation wait insidecaptureDeltasthe same treatment (await grid.body.promiseUpdate()instead oftimeout(50)), so a slow flush cannot drop the operation's own deltas either. No engine change.Acceptance Criteria
npx playwright test -c test/playwright/playwright.config.unit.mjs test/playwright/unit/grid/StoreInteractions.spec.mjs --repeat-each=4with default workers is red on the current spec (received 14 at aninsertNodeassertion in at least one arm) and green 44/44 at head, three runs.--workers=1 --repeat-each=2stays 22/22 (the fix adds no new timing).timeout(...)remains in the describe's setup or incaptureDeltas.Out of Scope
PremeasureRows under machine load (a separate, undiagnosed defect-note); the engine's delta pipeline; the
Grid snapshots with stable record keysandTreeStoredescribes in the same file (their owntimeout(50)waits are not on the red path — a follow-up if they flake).Avoided Traps
Raising the 50 ms (the same race one notch out); serialising the file (
test.describe.configure({mode: 'serial'})hides the clock); loosening the zero-structural-delta oracle — it is the test's point (row pooling updates content, never structure).Related
#20056 (where the note was taken) · #19217 (another load-order class in unit specs) · the 2026-03-08 grid benchmark harness precedent (Memory Core turn 931ae750).
handoff: unowned — a builder seat claims on
AGENT:*after the cut; not on v13.3.1.Origin Session ID: d0801374-2558-4c56-97d0-ba4a719149a3
Handoff Retrieval Hints:
query_raw_memories("StoreInteractions ZERO structural deltas received 14 row pool fixed 50 ms"); the 14:5xZ reproduction on this seat (4 failed / 40 passed).📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session d0801374-2558-4c56-97d0-ba4a719149a3