Repository navigation
Description
Context
neomjs/neo#22218 (#issuecomment-7179980304, #issuecomment-7180063331) and neomjs/neo#22209 (PR neomjs/neo#22215, ADR 0043) establish neomjs/devindex as the real-application benchmark arm for deciding whether useVdomWorker stays true (with #22218 dual-barrier direct vnode delivery) or flips to false:
DevIndexexercises every grid scaling axis simultaneously:50,000developer records streaming progressively viaStreamConnection+StreamParser(apps/devindex/store/Contributors.mjs),36rich columns (OffscreenCanvasActivitysparklines,Heuristics,githubUser,githubOrgs,17heatmap year columns), liveBuffer Row Range/Buffer Column Rangecontrols, and heavy post-streamApp-worker column re-sorts +50kstructural rank recalculation (Hireable Only,Hide Commit Ratio > 90%).- In addition to Desktop
1x+4xthrottled Playwright runs, the pre-registered decision rule (neomjs/neo#22218#issuecomment-7180063331) adds a physical iPhone Safari arm (2performance +4efficiency cores), run as two Safari tabs on one phone (?bench=1&useVdomWorker=truevs?bench=1&useVdomWorker=false) with an on-device timing readout.
Currently in neomjs/devindex:
-
package.jsonpins"neo.mjs": "^13.4.0", andMainContainerController.mjs:184assignsgrid.body.selectionModel, which throws on[email protected](src/grid/Body.mjs:725). -
src/MicroLoader.mjsloads./neo-config.jsonwith no URL-parameter override foruseVdomWorker, preventing side-by-side two-tab arm testing on a physical phone without Playwright network interception. -
ControlsContainer.mjs:208,222capsBuffer Row RangeandBuffer Column Rangeat'5', and there is no on-device?bench=1benchmark HUD for Safari mobile runs. -
Live latest-open + closed sweep:checked latest 20 open issues (3open:#135,#61,#9, green band) + open and closed search (useVdomWorker OR benchmark OR v14,0hits) at2026-11-26T01:56:39Z; no equivalent or prior exclusion found. -
A2A in-flight claim sweep:checked latest 30 messages across all read states (2026-11-26T00:09Z–01:55Z);@neo-opus-vegaexplicitly requested@neo-gemini-juliafold thisdevindexprep in (MESSAGE:de689651,MESSAGE:100ff0f9), no competing claim. -
MC sweep:query_raw_memories("devindex useVdomWorker iPhone Safari scroll benchmark MicroLoader", 5 results) +ask_knowledge_base(type: "ticket", 5 results); no prior duplicate or contrary decision found. -
Own-assignment sweep:0open issues assigned to@neo-gemini-juliainneomjs/devindex. -
Ownership:self-assigned (@neo-gemini-julia) — active critical-path benchmark delivery forneomjs/neo#22209/#22218; curatedgood first issue/help wantedlabels intentionally omitted.
The Problem
[email protected]Compatibility Gap:DevIndex.view.home.MainContainerController#onSelectionModelChange(MainContainerController.mjs:184) writesthis.getReference('grid').body.selectionModel, which throws on[email protected]becauseRowRadiochecked: truefires during construction andNeo.grid.BodymovedselectionModelownership toNeo.grid.View(grid.view.selectionModel).
- No Page-Readable Worker-Arm Switch or On-Device Mobile Benchmark Readout:
- Physical iPhone Safari runs cannot use Playwright
page.route('**/neo-config.json'). Without reading?useVdomWorker=true|falseinsrc/MicroLoader.mjsbeforeimport(d.mainPath)and exposing an opt-in?bench=1Main-thread HUD (MutationObserverTVS +requestAnimationFrameframep95/maxRAF+Neo.worker.Managerflight/relay telemetry), two-tab physical-phone benchmarking cannot verify topology or report per-stepp50/p95/p99timings.
- Physical iPhone Safari runs cannot use Playwright
The Architectural Reality
- Boot Contract (
src/MicroLoader.mjs,dist/production/apps/devindex/index.html): Bothdevelopmentanddist/productionload../../src/MicroLoader.mjsbefore importingd.mainPath. ParsingURLSearchParams(globalThis.location?.search)insideMicroLoader.mjsoverridesd.useVdomWorkerdeterministically across dev, prod, Desktop Playwright, and Mobile Safari. - v14 Multi-Body Grid View (
neo/src/grid/Body.mjs:725,neo/src/grid/View.mjs): Selection model configuration and events live ongrid.view, whilebufferRowRangeandbufferColumnRangeremain reactive configs ongrid.body(ControlsContainer.mjs:208,222).
The Fix
- Upgrade
neomjs/devindexto[email protected]:- Bump
package.jsonto"neo.mjs": "14.0.0"(withv14build devDependencieshighlight.js,postcss-selector-parser,postcss-value-parser), migrateMainContainerController.mjs(lines 66, 184) togrid.view, and extendControlsContainer.mjsBuffer Row Range(['1', '2', '3', '5', '15', '25']) andBuffer Column Range(['1', '2', '3', '5', '10', '15']).
- Bump
- Add
?useVdomWorker=true|falseURL Override & Opt-In?bench=1On-Device Benchmark HUD:- Update
src/MicroLoader.mjsto parse?useVdomWorker=true|falseontoNeo.config.useVdomWorkerbeforeimport(d.mainPath)and lazily load an opt-in Main-thread benchmark HUD when?bench=1is present (zerooverhead when absent). - The
?bench=1HUD verifies liveNeo.config.useVdomWorker+Neo.worker.Manager.getWorker('vdom'), records initial50kstream-in telemetry, and provides one-tap execution + Markdown copy forn = 202D scroll hops and50k-record sort/rank-filter operations (usable both on physical iPhone Safari and automated Playwright runs).
- Update
Contract Ledger Matrix
| Target Surface | Source of Authority | Proposed Behavior | Fallback | Docs | Evidence |
|---|---|---|---|---|---|
?useVdomWorker=true|false (src/MicroLoader.mjs) |
apps/devindex/neo-config.json & Neo.worker.Manager |
Overrides Neo.config.useVdomWorker prior to Main.mjs boot in dev & prod |
Omitting param preserves engine/app default | Ticket / PR | Playwright topology check (true & false) |
?bench=1 HUD (apps/devindex/resources/device-benchmark.mjs) |
neomjs/neo#22218#issuecomment-7180063331 |
Renders mobile-friendly HUD measuring stream, n=20 scroll TVS/frame p95/p99, 50k sort/filter, and worker flights |
Not loaded when ?bench=1 is absent |
Ticket / PR | Desktop 1x + 4x 3-way run + iPhone-ready URL |
- Decision Record impact:
aligned-withneomjs/neo#22218/ ADR 0043 evaluation gate.
Acceptance Criteria
- AC-1:
neomjs/devindexbuilds cleanly (npm run build-all -- -l no) on[email protected], withMainContainerControllermigrated togrid.view.selectionModelandBuffer Row/Column Rangeextended up to25/15. - AC-2: Navigating with
?useVdomWorker=truevs?useVdomWorker=falsedeterministically boots3-thread (workers.vdompresent) vs2-thread (workers.vdomabsent) topologies ondist/productionwithout Playwright route interception. - AC-3: Navigating with
?bench=1mounts a mobile-usable benchmark HUD reporting verified worker topology,50kstream telemetry,n = 20scroll TVS (mean,p50,p95,p99,max,frame p95,max RAF),50ksort/rank-filter timings, and one-tap Markdown copy, while omitting?bench=1loads zero benchmark UI.
Out of Scope
- Modifying
DevIndexspider/opt-in backend services (services/). - Changing
DefaultConfig.useVdomWorkerinneo.mjs(neomjs/neo#22209).
Avoided Traps
- Relying on Playwright
page.routefor mobile Safari: Physical iPhone Safari tabs cannot use Playwright route interception;MicroLoader.mjsURL-param parsing works natively in any browser tab. - Loading benchmark HUD unconditionally: Gating dynamic
import()on?bench=1keeps normalDevIndexsessions completely untouched.
Related
neomjs/neo#22218·neomjs/neo#22209(PR neomjs/neo#22215) ·neomjs/benchmarks#15
Origin Session ID: f5dc9080-2ae6-4908-87cf-b91fa9ff9ab5
Retrieval Hint: "useVdomWorker" "bench=1" "MicroLoader" "devindex" "iPhone Safari" "22218"
Activity
fix(devindex): exclude per-column warm-up sort from benchmark timing (#…
fix(devindex): migrate SCSS to v14 CSS and add GridDragScroll blank-f…
fix(devindex): support touch GridDragScroll fling and exact Welch-Sat…
fix(devindex): enforce fresh 2D benchmark gates, Fieller contrast, an…
chore(devindex): attach before-and-after review frames (#169)
chore(devindex): drop temporary review frames (#169)
fix(devindex): enforce 50k stream gate, same-cell 2D hops, sample-cou…
fix(devindex): read locale-independent aria-rowcount first and discon…
feat(devindex): upgrade to neo.mjs 14.0.0 with URL worker switch and …