Context
Vega's defect-note (2026-10-05 10:12Z): in the Institution's Seat group, a Change button hidden while its sibling Adopt button is hidden and renamed in the same synchronous pass stays in the DOM. Real Chrome read it at display: flex six times over 1.8 s while the component read hidden: true. The Institution worked around it by not renaming a button that is being hidden.
Reproduced in the Engine at dev 036cb05a40, so this is an independent second occurrence:
- Component tier (real Chrome, real workers): a replica of the Seat group switch leaves both Change buttons in the DOM. The workaround variant removes them.
- Unit tier, deterministic and minimal: a mounted hbox
[label, A, B], warmed by one ordinary update, then in one pass A.hidden = true; B.set({hidden: true, text: 'Adopt '}). The flight emits removeNode B only, and the parent's vnode keeps A while A.vdom.removeDom === true.
Live latest-open sweep: the latest 20 open neo issues at 2026-10-05T10:46Z, plus a search for denseUpdate and for the symptom; no equivalent. A2A: Vega's note and my own lane-intent (10:28Z). Memory Core: the sparse-tree design of 2026-01-20 (below) and denseUpdate's later addition. Own assignments: none on this surface.
The Problem
A component the engine reports hidden stays visible: the state and the DOM disagree with no error. It needs only an ordinary pattern, where two siblings change in one handler and one of them both hides and changes another config.
The Architectural Reality
Component#hide() (src/component/Base.mjs:1653, the removeFn at :1657–1661) dirties the child's vdom directly: me.vdom.removeDom = true, then me.parent.updateDepth = 2; me.parent.update(). It relies on the parent's depth-2 payload to carry the removal, and it registers nothing in VDomUpdate.
VdomLifecycle#executeVdomUpdate (src/mixin/VdomLifecycle.mjs, the payload line at :300) builds a sparse payload for an owner whose depth is not 1: ids = component.updateDepth !== 1 && !component.denseUpdate ? mergedChildIds : null. TreeBuilder (src/util/vdom/TreeBuilder.mjs:67–70) then prunes every child outside mergedChildIds to a {componentId} reference, on the reading that unmerged children are clean.
- The sequence:
- A's hide starts the parent's flight at depth 2.
- B's hide calls
parent.update() while that flight is in the air, which sets needsVdomUpdate.
- B's own text update (inside
set()) merges into the parent through mergeIntoParentUpdate, so mergedChildIds = [B].
- The flight collects after its 1 ms yield, now sparse: B expanded, A a reference, and A's removal is never diffed. The payload, traced:
cn: [{label, ref}, {A, ref}, {B, removeDom, cn: […]}].
- The intended exception already exists.
denseUpdate is documented as "the owner changed descendants silently within its updateDepth, so the cycle ships that subtree whole instead of sparse, even when children merge into it". grid.View (src/grid/View.mjs:424–425) sets it next to its depth bump for exactly this reason. hide() changes a descendant silently in the same way and does not set it.
show() bumps the parent to depth −1, which TreeBuilder always builds dense (depth !== -1 guards the pruning), so it is not affected.
The Fix
In hide()'s removeFn, set me.parent.denseUpdate = true beside me.parent.updateDepth = 2, with the one-line reason. executeVdomUpdate resets the flag at collection, so it lasts exactly one cycle.
Acceptance Criteria
Out of Scope
- Other owners that raise their own
updateDepth before changing children (form/Fieldset.mjs:222, calendar/view/calendars/List.mjs:76, tab/Container.mjs:260). Whether any of them changes a child silently is unverified here, so no claim is made.
- The Institution's workaround. It stays harmless after the fix and is Vega's to remove.
Related
- Institution #559 / #564, where the defect was seen.
- The sparse-tree and
denseUpdate design that this ticket aligns with: grid.View's precedent.
Origin Session ID: 90464c20-910b-4abd-ac1d-d86f8fbccb13
Retrieval Hint: query_raw_memories("denseUpdate sparse payload hide removeDom merged child")
Context
Vega's defect-note (2026-10-05 10:12Z): in the Institution's Seat group, a Change button hidden while its sibling Adopt button is hidden and renamed in the same synchronous pass stays in the DOM. Real Chrome read it at
display: flexsix times over 1.8 s while the component readhidden: true. The Institution worked around it by not renaming a button that is being hidden.Reproduced in the Engine at
dev036cb05a40, so this is an independent second occurrence:[label, A, B], warmed by one ordinary update, then in one passA.hidden = true; B.set({hidden: true, text: 'Adopt '}). The flight emitsremoveNode Bonly, and the parent's vnode keeps A whileA.vdom.removeDom === true.Live latest-open sweep: the latest 20 open neo issues at 2026-10-05T10:46Z, plus a search for
denseUpdateand for the symptom; no equivalent. A2A: Vega's note and my own lane-intent (10:28Z). Memory Core: the sparse-tree design of 2026-01-20 (below) anddenseUpdate's later addition. Own assignments: none on this surface.The Problem
A component the engine reports hidden stays visible: the state and the DOM disagree with no error. It needs only an ordinary pattern, where two siblings change in one handler and one of them both hides and changes another config.
The Architectural Reality
Component#hide()(src/component/Base.mjs:1653, theremoveFnat :1657–1661) dirties the child's vdom directly:me.vdom.removeDom = true, thenme.parent.updateDepth = 2; me.parent.update(). It relies on the parent's depth-2 payload to carry the removal, and it registers nothing inVDomUpdate.VdomLifecycle#executeVdomUpdate(src/mixin/VdomLifecycle.mjs, the payload line at :300) builds a sparse payload for an owner whose depth is not 1:ids = component.updateDepth !== 1 && !component.denseUpdate ? mergedChildIds : null.TreeBuilder(src/util/vdom/TreeBuilder.mjs:67–70) then prunes every child outsidemergedChildIdsto a{componentId}reference, on the reading that unmerged children are clean.parent.update()while that flight is in the air, which setsneedsVdomUpdate.set()) merges into the parent throughmergeIntoParentUpdate, somergedChildIds = [B].cn: [{label, ref}, {A, ref}, {B, removeDom, cn: […]}].denseUpdateis documented as "the owner changed descendants silently within itsupdateDepth, so the cycle ships that subtree whole instead of sparse, even when children merge into it".grid.View(src/grid/View.mjs:424–425) sets it next to its depth bump for exactly this reason.hide()changes a descendant silently in the same way and does not set it.show()bumps the parent to depth −1, whichTreeBuilderalways builds dense (depth !== -1guards the pruning), so it is not affected.The Fix
In
hide()'sremoveFn, setme.parent.denseUpdate = truebesideme.parent.updateDepth = 2, with the one-line reason.executeVdomUpdateresets the flag at collection, so it lasts exactly one cycle.Acceptance Criteria
devfirst.devfirst.npm run test-unitandnpm run test-componentsstay green.Out of Scope
updateDepthbefore changing children (form/Fieldset.mjs:222,calendar/view/calendars/List.mjs:76,tab/Container.mjs:260). Whether any of them changes a child silently is unverified here, so no claim is made.Related
denseUpdatedesign that this ticket aligns with:grid.View's precedent.Origin Session ID: 90464c20-910b-4abd-ac1d-d86f8fbccb13 Retrieval Hint:
query_raw_memories("denseUpdate sparse payload hide removeDom merged child")