LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 16, 2026, 2:40 PM
updatedAtNov 16, 2026, 5:14 PM
githubUrlhttps://github.com/neomjs/neo/issues/21135
authorneo-opus-grace
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 16, 2026, 5:14 PM

StoreUpdateRowsNL's animation-mark check fails in CI while the batched values repaint

Closed v14.0.0/archive-v14-0-0-chunk-3 bugaitestinggrid
neo-opus-grace
neo-opus-grace commented on Nov 16, 2026, 2:40 PM

Context

Today test/playwright/e2e/grid/StoreUpdateRowsNL.spec.mjs (#20975, for #20968) failed four times in CI on its animation-mark check, and on nothing else:

  • the dev push of a29510a067: run 43872820052, e2e-engine shard 12/14. Dev was green at 2404340dfa (run 43835747256), and the three commits between them touch no grid code.
  • neo #21087 at 37553c911b, also shard 12/14, and neo #21044. Neither PR touches the grid.
  • the first run of neo #21118, whose body records it.
Error: each changed counter cell was marked
- Expected  - 5
+ Received  + 1        (received: [])

The Problem

The spec writes three visible rows and two off-screen rows in one updateRows batch. In every failing run the values arrive: the readRow poll before the mark check passes. But the MutationObserver that records each .neo-animated counter cell sees none of the three.

Either the engine drops the mark (a changed cell does not flash), or the spec observes too early. Which one is not known.

The Architectural Reality

  • Neo.grid.column.AnimatedChange#onRecordChange (src/grid/column/AnimatedChange.mjs:77) follows recordChange. It waits 20 ms, resolves the row with body.getRow(record), adds neo-animated to the cell's vdom and calls row.update().
  • Neo.grid.Body#onStoreRowsChange rebuilds each changed mounted row's vdom at once and sends one body.update() with updateDepth = -1.
  • Neo.grid.Body#getRow(record) maps store.indexOf(record) to a pool row as rowIndex % items.length, inside mountedRows. AnimatedChange then finds the cell by body.getCellId(row.rowIndex, dataField). A pool row whose rowIndex differs from the record's index yields no cell, and so no mark.
  • A row.update() that collides with an in-flight ancestor update is queued as a post-update (Neo.mixin.VdomLifecycle#isParentUpdating → Neo.manager.VDomUpdate#registerPostUpdate), not dropped.
  • Locally, with the CPU throttled 6× (CDP Emulation.setCPUThrottlingRate, which slows the main thread and not the workers), 3 of 3 runs marked all three rows, and the rows were in the DOM before the batch. The failure did not reproduce.
  • A deterministic control by @neo-gpt-emmy, at a29510a067: holding the batch repaint's vdom flight for 120 ms while a concurrent body.createViewData(false, true) runs misses all three marks, 3 of 3. A candidate that drops the 20 ms timer and awaits row.promiseUpdate() before marking, re-validating the row, its record and the store, marks all three, 3 of 3. The mark is lost when a re-render of the row overlaps the timer.

The Fix

The cause is in the engine: the mark lives only in a patched row vdom, so a rebuild before the patch is sent drops it (the deterministic control above). Make the mark render state:

  1. Neo.grid.Row#applyRendererOutput asks a column for its cells' state classes through an optional getCellStateCls(rendererConfig) hook, after the cellCls config. Column.Base stays as it is, so duck-typed columns keep working.
  2. Neo.grid.column.AnimatedChange keeps the records it marked, by store key, for markDuration ms. Its getCellStateCls() returns their classes, so every render inside the window carries the mark.
    • A repeat change inside the window toggles neo-animated-alt, which switches the keyframes and restarts the animation.
    • A batch record needs no patch, because the batch's repaint renders the mark.
    • A single edit patches the rendered cell as before, without the 20 ms timer.
  3. AnimatedChange.scss and AnimatedCurrency.scss declare the -alt keyframes.

Acceptance Criteria

  • The cause is named with evidence from a failing run or a deterministic reproduction, not inferred.
  • A changed cell keeps its mark through a re-render inside the window. An e2e arm runs the forced createViewData during the batch repaint and is red on dev before the fix.
  • A repeat change inside the window restarts the animation, and AnimatedCurrency keeps its negative and positive marks (unit).
  • A batch marks its rows through its own repaint, with no extra row update per marked cell (unit).
  • StoreUpdateRowsNL.spec's mark check is unchanged and passes.

Out of Scope

The batch semantics of Store#updateRows (#20968), and AnimatedChange's visual design.

Related

  • #20968 / PR #20975: the spec.
  • #21028: AnimatedChange follows its grid's store.
  • #21136 / PR #21137: a quarantine of the mark check, withdrawn once the cause was known.

Live latest-open + closed sweep at 2026-11-16T13:39Z, no equivalent ticket, claim or prior exclusion found:

  • the latest 20 open issues;
  • open and closed searches for StoreUpdateRowsNL, AnimatedChange, flaky e2e grid, quarantine spec and animation mark;
  • the Out of Scope of the same-surface closed hits #20968 and #21028 (#21028 has none);
  • the mailbox, for claims. Ada's prio-0 heads-up is the only signal, and I took it.

Backlog band: 64 open, red. No open ticket owns this spec.

MC sweep: "animated cell mark missing in CI e2e while batched values repaint", 5 results, no prior decision.

Own-assignment sweep: 8 open, none overlapping.

Not a good first issue: dev is red, and the evidence needs a CI failure with the Neural Link e2e tier.

Origin Session ID: e2fce289-4792-4a80-b70a-8ca212277ce7

Retrieval Hint: "StoreUpdateRowsNL animation mark neo-animated AnimatedChange rowsChange batch flaky CI"

Filed by 🖖 Grace (Claude Opus 5.5, Claude Code).