Repository navigation
Refactor JavaScript binding storage and COM value state - #154
Merged
Merged
Conversation
Centralize view inspection, extent and identity validation, retained typed views, and call-local bytes without changing domain validation order or IOCP lifetimes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep payloads, pointer provenance, apartment identity and deferred input bindings independent. Retain Win32 byte and string storage directly, separate from managed COM inputs and resource ownership. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Move runtime, metadata wrappers, values, containers, callbacks and utility exports into private modules. Preserve emitted JS class names and keep Win32 adapter retention explicitly Node-local while native resources remain Arc-owned. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mixed-language test coverageWorkflow status: ✅ Passed
|
Require execution in the extracted WinRT, shared storage, and COM value modules instead of wiring-only lib.rs. Preserve conditional implementation guards and percentage thresholds, with missing-source and zero-hit regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve independent retained storage, COM input leases, and Node-only Rc ownership while forwarding Env through the merged call boundary and retaining prepared native cleanup errors. Add real owned-return/out and managed COM input integration regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
shisan (qiutongMS)
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current integration and validation
Reviewed head:
e7c10ea6050fc0b0cc3b78f55a7e29b28c7dfa41. This merge incorporatesmainat32b706eb881f69b4e5f6f3dc074dd779c748c47d, including merged #155, without rewriting the four previously published commits. Thewin32.rsresolution preserves independent retained storage, explicit COM input leases and Node-onlyRcownership while forwardingEnvand preserving conditional prepared native cleanup errors, shared core resource owners, and #155's fallback/static recovery APIs. The seven-module native coverage guard and 45/70/18 percentage gates remain unchanged.A fresh independent code-review agent reviewed this exact merge, both parents, and the remaining diff against the new main: no significant issues. A separate fresh agent then executed the repository samples, in that order.
32b706Samples: unresolved findings retained
The sample matrix covered 25 entries / 34 modes: 19 entries passed, three failed, and three were startup-only. This is not an all-green sample result. Original failures and subsequent controls remain recorded.
--validate: sandbox child-process creation failed with GPU broker code 18 and fatal0x80000003. Two controlled candidate/main/candidate rounds reproduced the GPU failure on both new-main runs and three candidate runs; the other candidate run failed with async0x800702F7. A stable candidate-only regression was not established. The original broker Win32 error remains unavailable, and the async HRESULT is not that error. Neither a fix nor native memory corruption is claimed;--no-sandboxis not accepted as a repair.--smoke: access violation after printing success. Relevant source/core/Python/dependency-lock inputs match the new main, but no independent Python runtime baseline was executed, so pre-existing behavior is not proven.Post-push CI on the reviewed merge
Both workflows completed successfully on exact head
e7c10ea6050fc0b0cc3b78f55a7e29b28c7dfa41:These are new-head results, not the earlier
eea1649green runs. They do not resolve or replace the sample findings above. No PR merge or auto-merge is requested.Original publication record (historical)
The original sections below are preserved as evidence for the earlier
0130b3fbaseline and publication, not as a fresh full matrix or review of the current merge.Summary
js_storagefor backing-view retention and range, offset, alignment, identity, and detachment checks, preserving both existing retention strategies and domain-owned diagnostics and policies.DynWinRTValuestate with named WinRT data, independentCallStorage, and COM sidecar groups for payload, provenance/owner, apartment, and deferred inputs. Win32 byte/string retention no longer uses the COM carrier; managed COM inputs remain explicit.lib.rsinto responsibility-based modules, leaving 79 wiring/export lines, and update the architecture documentation.This is a JavaScript native-binding internals refactor, not a codegen, core, or Python feature change. Native core IOCP/resource coordination and public JavaScript/DTS facades are unchanged by this layer. It preserves merged #152 and #153.
Existing validation
Recorded against the fresh
mainbaseline0130b3f284edc79e6b90478b230a82245baec49e; no builds or tests were rerun for this publication-only recovery. The latest base-sync validation was ARM64-only, and not all checks are green.Earlier x64/i686 and full E2E runs are not presented as fresh executions on this baseline. No external WinUI/WinAppSDK or Python runtime coverage is claimed here.
Review
Independent read-only review and coordinator review found no significant issues. Replaying onto the new main resolved only a documentation conflict; all
bindings/js/srcbytes remained identical to the previously reviewed version. The three existing reviewed commits are published unchanged.