@@ -16,7 +16,13 @@ Current State
1616- Worker host-call misses now emit explicit first-failure diagnostics:
1717 - ` PARPAR:DIAG:FIRST_FAILURE:category=host_call_unhandled `
1818 - ` PARPAR:DIAG:FIRST_FAILURE:symbol=<nativeSymbol> `
19- - Latest CI artifacts still ran ` main-thread-mode ` (before this change) and timed out before ` CN1SS:SUITE:FINISHED ` .
19+ - Worker native-rebind bug identified and fixed:
20+ - Cause: ` translated_app.js ` redefined native stubs after ` port.js ` bind phase in worker startup order.
21+ - Fix: ` worker.js ` now calls ` __parparInstallNativeBindings() ` after imports, before handling ` start ` .
22+ - Latest CI artifacts now run worker mode but fail early before suite start with:
23+ - ` PARPAR:DIAG:FIRST_FAILURE:category=runtime_error `
24+ - ` TypeError: Cannot read properties of null (reading '__classDef') `
25+ - stack rooted in ` HTML5Implementation.__init ` after ` Window.current() ` returned ` null ` .
2026- Existing form-constructor recovery diagnostics remain active in ` port.js ` and are still relevant while migrating.
2127
2228Next Steps
@@ -25,23 +31,27 @@ Next Steps
25311 . Validate worker-only boot in CI and local:
2632 - Required markers: ` PARPAR:worker-mode ` , ` PARPAR:DIAG:BOOT:bridgeMode=worker ` .
2733 - Any ` main-thread-mode ` marker now indicates stale artifact or wrong bundle.
28- 2 . Separate VM/EDT execution from main-thread host services cleanly:
34+ 2 . Confirm worker native rebind fix is present in produced bundle:
35+ - In generated ` worker.js ` , ensure ` __parparInstallNativeBindings() ` is invoked after imports and before ` start ` .
36+ - This must eliminate ` Window.current() ` null stubs from startup execution.
37+ 3 . Separate VM/EDT execution from main-thread host services cleanly:
2938 - Keep VM/EDT scheduling in worker.
3039 - Ensure main-thread browser APIs are reached through explicit host-call handlers rather than direct worker DOM access.
31- 3 . Re-triage screenshot correctness in worker mode only:
40+ 4 . Re-triage screenshot correctness in worker mode only:
3241 - Re-run screenshot suite and classify first blocker using the existing ` TOP_BLOCKER ` output.
3342 - Prioritize deterministic runtime failures before throughput tuning.
34- 4 . Restore full screenshot count and correctness:
43+ 5 . Restore full screenshot count and correctness:
3544 - Exit gate remains ` CN1SS:SUITE:FINISHED ` with expected screenshot artifacts and no ` BROWSER:PARPAR_ERROR ` .
3645
3746Important Notes
3847--------------
3948
4049- Current CI artifact (` ~/Downloads/javascript-ui-tests/browser.log ` ) shows:
41- - ` PARPAR:main-thread-mode `
42- - ` PARPAR:DIAG:BOOT:bridgeMode=main-thread `
43- - timeout with ` TOP_BLOCKER=unknown|none|none `
44- - This is consistent with the new migration priority: enforce worker mode first, then debug screenshot behavior.
50+ - ` PARPAR:worker-mode `
51+ - ` PARPAR:DIAG:BOOT:bridgeMode=worker `
52+ - ` TOP_BLOCKER=runtime_error|none|none `
53+ - first crash in ` HTML5Implementation.__init ` due null window wrapper.
54+ - This is consistent with native rebind order being a primary startup blocker in worker mode.
4555
4656Known Important Context
4757-----------------------
0 commit comments