LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtOct 15, 2026, 12:53 PM
updatedAtOct 15, 2026, 1:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/19751
authorneo-gpt-euclid
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 15, 2026, 1:23 PM

Animated component lists keep membership loads synchronous

Closed v13.3.0/archive-v13-3-0-chunk-1 bugairegressioncore
neo-gpt-euclid
neo-gpt-euclid commented on Oct 15, 2026, 12:53 PM

Context

The correction in #19738 introduced a consumer regression while repairing #19717's animated sorting. Grace bisected Institution's cardIdentity.spec.mjs with Brain held at 4ec5c03: Engine 95e058fed9 passes all six cases; eb2cf2d678 fails the joiner, leave/rejoin and retired-card cases. This blocks neomjs/neo-agent-institution#695 and the Stage59 consumer neomjs/neo-agent-institution#696.

The Problem

Animate.construct wraps the component-list owner's onStoreLoad; the new wrapper defers every original load handler to a microtask. A real typed Store + exact-head handler probe confirms that add and clear emit load, mutate with no fine sort, while the owner's rebuild has not run when the mutation returns. Institution's synchronous card-pool/descriptor assertions at lines 136, 173 and 307 are therefore broken. These assertions concern membership, not synchronous browser paint.

The Architectural Reality

Store.onCollectionSort deliberately emits coarse load before the collection's fine sort; load-only consumers need that notification. list.plugin.Animate owns the component-list presentation coordination and must distinguish this coarse sort notification from ordinary membership/replacement loads. The prior repair's motion/record mapping and stale-work fences remain necessary.

Design authority: the existing Store sort/load contract spec and component-list membership consumer tests. Independent triage with Grace retained those consumer assertions.

The Fix

Identify the coarse notification emitted by Store.onCollectionSort and let Animate's fine sort handler own that presentation. Keep ordinary load handling synchronous through the original mount-aware owner, removing the blanket microtask delay and its now-unneeded load serial. Preserve coarse load emission/order and existing sort/filter motion fences.

Prescription checked: src/data/Store.mjs:onCollectionSort owns event origin; src/list/plugin/Animate.mjs:onStoreLoad owns the consumer's granularity choice. Adding sleeps or changing Institution's assertions would treat the symptom.

Contract Ledger

Target surface Authority Behavior Fallback Docs Evidence
Coarse sort-load payload isSort Store.onCollectionSort Marks this load as the coarse half of an actual sort; load-only consumers still receive reordered items before fine sort Ordinary loads omit the marker and keep their timing Method JSDoc Real Store notification-order and membership controls
Animate component-list load handling Existing original owner handler and fine sort owner Ordinary add/remove/clear/replacement rebuild synchronously; the identified sort load does not pre-reassign components Existing owner mount handling remains in charge Method JSDoc Immediate pool/descriptor controls plus unchanged single-motion suite

Decision Record impact: none; restores membership timing within the existing Store/list ownership.

Acceptance Criteria

  • AC-1: Store still emits one coarse load with current reordered items before fine sort; its sort-origin marker is absent from ordinary membership loads.
  • AC-2: Animated component lists expose correct component membership and descriptors synchronously after add, remove, clear and replacement, retaining unaffected component identity.
  • AC-3: The single-motion component/base-list sorting, record-bound content updates, filter/sort interruption and stale-load controls delivered by #19738 continue to pass.
  • AC-4: Institution's unchanged six-case cardIdentity.spec.mjs passes against the repaired Engine candidate; retain the parent/head bisect evidence.

Out of Scope

Changing Institution's roster expectations, removing coarse Store notifications, adding timer waits, unrelated roster refactors or undoing the original sorting repair.

Avoided Traps

Waiting one microtask to guess whether a fine event will arrive also delays mutations with no fine event. Suppressing the Store's load globally breaks load-only consumers. A green plugin unit suite alone cannot prove the consumer's card-pool contract.

Related: #19738 · #19717 · neomjs/neo-agent-institution#695 · neomjs/neo-agent-institution#696 · neomjs/neo-stage#59.

Live latest-open sweep: latest 20 open Engine issues checked 2026-10-15T10:54Z; no equivalent. Current all-state A2A30 includes Grace's bisect and agreement that Euclid owns the correction, no competing implementation claim. MC three-framing sweep recovered the original sorting lane in session8cf1c1d0-b239-4fea-98f8-943db7f99233, but no separate prior correction decision. Own-assignment sweep: three unrelated open tasks; none covers this regression. Exact/historical search found no matching membership repair. Structure map: existing frontend Store/plugin owners, no new directory or service. Origin Session ID: ed9c23e6-01d5-4dc2-8031-cb7c5a631f62 Retrieval Hint: "19738 cardIdentity membership load microtask Animate component list"

tobiu referenced in commit 39537f3 - "feat(data): identify sort loads for animated lists (#19751) (#19752)" on Oct 15, 2026, 1:23 PM
tobiu closed this issue on Oct 15, 2026, 1:23 PM