LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtNov 11, 2026, 3:38 AM
updatedAtNov 23, 2026, 1:27 AM
githubUrlhttps://github.com/neomjs/neo/issues/20747
authorneo-fable-clio
commentsCount4
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]

Updates under a yielded ancestor wait on a flight they never touch

Open Backlog/active-chunk-1 bugaitestingregressioncore
neo-fable-clio
neo-fable-clio commented on Nov 11, 2026, 3:38 AM

Context

Design authority: learn/guides/fundamentals/AsymmetricUpdates.md, Best Practices: "When to use Independent Updates (Default) … Performance Isolation: When one component is very heavy (e.g., a Data Grid) and you don't want to block the UI of lighter components." The same guide scopes merging to a parent and child "both updating at the same time".

This is the result of a post-merge challenge of PR #20743 (#20741), asked for by the operator on 2026-11-11. That PR sets needsVdomUpdate = true when VdomLifecycle#updateVdom yields. I ran one counting spec, unchanged, on the PR's parent c7e1974483 (base) and on its merge commit 5f407d6956 (head), in the unit harness. A batch is one VdomHelper.updateBatch call.

  • Live latest-open + closed sweep: checked latest 20 open (24 open, green band; #20745..#20667) + closed searches (wedged flight watchdog postUpdate yield, isChildUpdating starvation parked head-of-line; #12946 read with its Out of Scope) at 2026-11-11T02:36:24Z; no equivalent or prior exclusion found.
  • A2A in-flight claim sweep: the ten newest messages across all read states (02:15Z to 02:36Z); no overlapping [lane-claim] or [lane-intent].
  • MC sweep: not run from this seat. A Fable seat reads no memory rows until the plane carries the fix of neomjs/neo-agent-brain#1580. The guide, the JSDoc and the GitHub history stand in.
  • Own-assignment sweep: 3 open in this repository (#20498, #20682, #20726), none on this surface.

The Problem

What #20743 improves, measured. Keep it.

Scenario base head
S1: an item moves across sibling containers while a third sibling is in flight, then both containers update 4 batches, 5 deltas, removeNode + insertNode 2 batches, 4 deltas, one moveNode
S3: a child asks again during its flight, its parent and a sibling update 4 batches, 4 payloads, 4 deltas 2 batches, 4 payloads, 4 deltas
S4: ten rounds of the same 30 batches, 30 deltas 20 batches, 30 deltas
S9: two children update back to back with overlapping flights; the parent asks for one depth-1 update lands after 152 ms, when the test stops the children: it starves lands after 0.6 to 1.9 ms
Grid with content-sized rows, mount to rest 18 batches, 115 deltas, 40 cells measured 9 batches, 104 deltas, 70 cells measured

What it costs.

Scenario base head
S2: a parent asks for a depth-1 update while one leaf is in flight; five other leaves then update 7 batches; the five land at 3 ms, while the first flight is still in the air 2 batches, same 7 payloads and 7 deltas; none of the five lands before the first flight does (19 ms with a 16 ms hold)
S8: the first flight never settles; the root asks for one depth-1 update; a sibling, a cousin two levels down another branch, and that branch update all three land none lands; all three sit in VDomUpdate.mergedCallbackMap under the root
S7: await root.set({}) on a yielded component settles at 1.3 ms settles at 17.8 ms, with the deferred flight
Ten renders of a covering ancestor that change nothing in a content-sized grid 0 measure passes 10 passes of measureRowHeights and measureAheadRows, all in memory: no main-thread call, no batch

The blocking flight failing (S5) or its component being removed (S6) releases the parent on both trees; no flag stays set.

  1. Head-of-line blocking. Once any ancestor has asked for an update while any descendant is in flight, every later update below that ancestor boards its batch and waits for that flight. The updates share no DOM node with it.
  2. A wider freeze on a wedge. A flight whose reply never comes used to stop one component and its ancestors' own updates. Now it stops the whole subtree of every ancestor that asks for an update, up to the window. The watchdog reports it after 5 s and releases nothing.
  3. set() settles later on a yielded component, even when it changed nothing that renders.
  4. No test holds any of this, in either direction. The starvation of S9, which #20743 fixes, has no spec either.

The Architectural Reality

  • VDomUpdate#registerInFlightUpdate registers a flight on every ancestor, and VdomLifecycle#isChildUpdating yields on any of them. There is no depth check.
  • Since #20743 a yielded component carries needsVdomUpdate = true. mergeIntoParentUpdate then takes every descendant: canMergeUpdate returns true for any depth and distance.
  • The unconditional yield is load-bearing. Container#afterSetNeedsVdomUpdate(false) clears every descendant's flag when the container's payload is built, at any depth. A scratch prototype that let a depth-1 parent fly beside a flight it does not collide with lost a child's second request that way: in S3 the second text never rendered.
  • The wedge watchdog in VDomUpdate comes from #12946. Its ticket named a recovery hook; what ships is the report.
  • Abstract#set and layout.Base#set return promiseUpdate() whenever the flag is set.
  • grid.View#afterVnodeSync guards with deltas &&. executeVdomUpdate hands syncVnodeTree an array for every update render (response.deltas || []), so the guard only tells a first render apart.
  • The guide was not touched by #20743.

The Fix

Outcomes; the mechanism belongs to intake.

  1. A flight that the watchdog reports parks no other component. A candidate that fails no flight: when the watchdog fires, the ancestors that wait on it drop their flag and their parked descendants update on their own, as they did before #20743. A late reply then still finds its waiters.
  2. Specs for both sides of the trade: S9 (the parent does not starve), S8 (after the watchdog, the others land), S2 (what waits and for how long, as the contract of record), S7 (when set() settles), and an operation budget for the content-sized grid's mount (batches, deltas, measured cells).
  3. The guide says what a yield does to the updates below it.
  4. grid.View#afterVnodeSync loses the dead guard or reads the deltas it is given.

Acceptance Criteria

  • With a flight that never settles, updates of components that do not collide with it land again once the watchdog has reported it; unit-tested with a shortened watchdogThreshold.
  • A unit spec holds S9: one parent update lands while two children update with overlapping flights.
  • Unit specs hold S2 and S7 as written contracts, with the numbers a reader needs (what lands before the blocking flight, what after).
  • A unit spec holds the content-sized grid's mount budget: batches, deltas and measured cells, with the final row geometry.
  • learn/guides/fundamentals/AsymmetricUpdates.md describes the yield: which updates board the waiting ancestor's batch, and that isolation ends there until it departs.
  • grid.View#afterVnodeSync has no guard that is always true.
  • (Browser) One E2E arm shows S8 across the worker round trip, or the body says why the unit harness is the ceiling.

Out of Scope

  • Reverting #20743. It fixes a split move that is red in the browser on its base, and the starvation of S9.
  • The larger question: should a depth-1 parent yield behind a flight it does not collide with at all. Answering yes to isolation needs scope-aware flag clearing in Container#afterSetNeedsVdomUpdate first. That is a design question for the operator or a sandbox, not this leaf.
  • Failing a wedged flight from the watchdog, with a late reply to discard.

Avoided Traps

  • Merging only what collides with the waiting ancestor: it restores isolation and brings back the starvation of S9 for a depth-1 parent.
  • Yielding only on a collision, today: it loses updates through the flag clearing above (prototype, S3).
  • Reading "fewer batches" as "cheaper for the user": S2 sends the same payloads in fewer messages and lands five of them later.

Related

Ownership: unowned-rationale: Core scheduling with a design fork next to it, so it carries no good first issue label; ready for a maintainer. The author of #20743 and its reviewer know the paths best.

Origin Session ID: 0b200952-7e03-4bbc-9790-106b51a875d9 Retrieval Hint: "yielded ancestor parks descendant updates head-of-line wedge watchdog needsVdomUpdate mergeIntoParentUpdate isChildUpdating starvation"