Context
Operator report on apps/workstation, 100k Matrix pane: clicking +1 pulse increments the Pulse cell three columns to the left, and it works for the first handful of rows only. Every later row in the visible area does nothing — no error, the button paints its press, the counter does not move.
Reproduced and automated before any diagnosis, per the operator's instruction. New spec: test/playwright/e2e/workstation/WorkstationRowActionNL.spec.mjs.
rows whose own Pulse cell did not increment:
neo-record-7 … neo-record-27 ← records 1-6 increment correctly
The cutoff is exact and reproducible: records 1–6 work, 7 onward do not, with no scrolling involved.
The witness, and why it is shaped this way
- Paired by
data-record-id, never by row position. The grid is buffered and recycles row nodes, so "row 7" is not a stable subject. Each button is matched to the Pulse cell of the same record.
- The Pulse column index is derived from the header, not hardcoded. The grid has eight columns (
#, Work item, State, Throughput, Pulse, Load, Living signal, Action) and the operator's screenshot is horizontally scrolled. A guessed index reads a neighbouring name column, which never increments — so the spec reports every row as broken and reads exactly like a perfect witness while measuring nothing. An explicit guard asserts the resolved column holds a number.
dispatchEvent('click'), not click(). The Matrix animates continuously (a 10/sec feed, an animated counter, live sparklines), so an ordinary click times out on actionability and force: true clicks the coordinates resolved a moment earlier, which the moving grid has since given to another row. Both failure modes make every row look broken, including the six that work.
Each of those three was a wrong turn on the way here; all three produce a convincing red for the wrong reason, which is why they are recorded rather than tidied away.
What is NOT yet established
The mechanism is unconfirmed, deliberately. The obvious hypothesis is stale closures in pooled component cells: ScalePane.mjs declares handler: () => record.counter++, a closure over the record captured when the cell component is built, and that column already carries a pooling-collision comment (dataField: 'timestamp' was chosen because "reusing counter would alias the AnimatedChange column's pooled cells").
But the evidence does not fit cleanly, and saying so is the point of this section:
grid/column/Component.mjs's recycle path does re-invoke the component factory with the new data and set() the resulting config, so a recycled cell should receive a fresh handler.
- More importantly, no scrolling occurs in the repro. Without scrolling nothing is recycled, so every visible cell was created fresh — which is the
Neo.create branch, not the reuse branch.
So a pooling explanation has to account for why creation-time cells beyond the sixth behave differently. The number six is suspicious on its own and is the thread to pull.
Acceptance Criteria
Out of Scope
- Rewriting the
component column's pooling contract. If the defect turns out to live there, that is an engine ticket of its own with its own evidence.
- The
dataField: 'timestamp' aliasing workaround already in ScalePane, unless the mechanism proves it to be the cause.
Avoided Traps
- Fixing the symptom by rebinding the handler on every render. That would make the spec green while leaving the reason unknown, and would hide the same defect wherever else a component column is used.
- Trusting the spec's red before checking what it measured. Two of my three wrong turns produced a red on all 27 rows, which is more convincing than the true red and completely wrong.
Related
apps/workstation/view/ScalePane.mjs — the column definition and its existing pooling comment.
src/grid/column/Component.mjs — the create/recycle paths.
- #17835 — scroll-edge on-demand loading for buffered surfaces.
Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea
Retrieval Hint: +1 pulse row action increments only first six rows buffered grid component column stale record closure workstation matrix
Context
Operator report on
apps/workstation, 100k Matrix pane: clicking +1 pulse increments the Pulse cell three columns to the left, and it works for the first handful of rows only. Every later row in the visible area does nothing — no error, the button paints its press, the counter does not move.Reproduced and automated before any diagnosis, per the operator's instruction. New spec:
test/playwright/e2e/workstation/WorkstationRowActionNL.spec.mjs.The cutoff is exact and reproducible: records 1–6 work, 7 onward do not, with no scrolling involved.
The witness, and why it is shaped this way
data-record-id, never by row position. The grid is buffered and recycles row nodes, so "row 7" is not a stable subject. Each button is matched to the Pulse cell of the same record.#,Work item,State,Throughput,Pulse,Load,Living signal,Action) and the operator's screenshot is horizontally scrolled. A guessed index reads a neighbouring name column, which never increments — so the spec reports every row as broken and reads exactly like a perfect witness while measuring nothing. An explicit guard asserts the resolved column holds a number.dispatchEvent('click'), notclick(). The Matrix animates continuously (a 10/sec feed, an animated counter, live sparklines), so an ordinary click times out on actionability andforce: trueclicks the coordinates resolved a moment earlier, which the moving grid has since given to another row. Both failure modes make every row look broken, including the six that work.Each of those three was a wrong turn on the way here; all three produce a convincing red for the wrong reason, which is why they are recorded rather than tidied away.
What is NOT yet established
The mechanism is unconfirmed, deliberately. The obvious hypothesis is stale closures in pooled component cells:
ScalePane.mjsdeclareshandler: () => record.counter++, a closure over the record captured when the cell component is built, and that column already carries a pooling-collision comment (dataField: 'timestamp'was chosen because "reusingcounterwould alias the AnimatedChange column's pooled cells").But the evidence does not fit cleanly, and saying so is the point of this section:
grid/column/Component.mjs's recycle path does re-invoke the component factory with the newdataandset()the resulting config, so a recycled cell should receive a fresh handler.Neo.createbranch, not the reuse branch.So a pooling explanation has to account for why creation-time cells beyond the sixth behave differently. The number six is suspicious on its own and is the thread to pull.
Acceptance Criteria
Out of Scope
componentcolumn's pooling contract. If the defect turns out to live there, that is an engine ticket of its own with its own evidence.dataField: 'timestamp'aliasing workaround already inScalePane, unless the mechanism proves it to be the cause.Avoided Traps
Related
apps/workstation/view/ScalePane.mjs— the column definition and its existing pooling comment.src/grid/column/Component.mjs— the create/recycle paths.Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea
Retrieval Hint:
+1 pulse row action increments only first six rows buffered grid component column stale record closure workstation matrix