Repository navigation
fix(windows): restore native verification fixture coverage - #7479
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The reviewed changes appear safe to merge. SummaryRestores Windows native test coverage without changing production code.
No actionable issues or security findings were identified. Review checks were source-based; Windows execution was not verified here. The supersession check could not complete because GitHub access required authentication. Reviews (1) · Last reviewed commit: "fix(windows): restore native verificatio..." · Reviewed by Greptile |
Summary
Fixes #7474. Restore meaningful Windows native regression coverage while retaining the native implementation.
Problem and expected behavior
Valid loader fixtures declared a zero-length PE optional header, so eight tests failed at artifact admission before exercising their intended branches. The standalone verifier's manual dependency lists also omitted the current optional-header reader. Broad curated-suite failures then skipped the real Windows behavior and inspection-recovery proofs.
Change and scope
Contract and boundary impact
Evidence and regression coverage
Executed on pinned main
d6f88becd531cabafca1d968b89cf7fc77a80041, Node 24.22.1/npm 11.16.0:6a015bfefee7fafb6cbafab659f040170848a45425bbcef6caf962fd39b6ff7b: valid/restored pass; modified digest, invalid declared header with matching digest, and wrong package version each fail as intended. This Linux check validates real image identity, not Windows addon execution.Validation performed
npm run test:focused --the loader, private-runtime, owned-process, handle-close, artifact-domain, artifact-verifier, inspection-workspace and curated-lane test files — 101 pass.npm run typecheck -- --checkers 1 --maxMemory 2G— pass.npm run verify:module-boundaries,npm run verify:test-discovery, explicit seven-file format check,git diff --check— pass.npm run docs:check— pass, including 9 README conformance tests.Local resource observations: single CPU, 3 GiB early-stop / 4 GiB hard cap, no OOM or guard abort. Focused base: 16.734 s wall / 15.376 s CPU / 444.4 MiB process-family peak; candidate: 11.012 s / 9.582 s / 439.0 MiB. These are observed runs, not an equivalent-task speedup: the base failed early and cache state was uncontrolled. Full typecheck peaked at 1,017.1 MiB. Real-image checks: 1.638 s / 1.426 s / 64.8 MiB across fresh Node processes with compile cache disabled; OS page cache uncontrolled. Measurements are cgroup observations at payload exit, not final whole-scope counters. No agent-token or runtime-analysis performance change is claimed; cold/warm and token costs were not measured.
Final CI is not green. Attribution against the exact-base main run:
Main was fetched again before merge and remains
d6f88bec. The requester explicitly authorized bypassing established pre-existing main failures. No CI assertion or gate was weakened.Compatibility, safety, and release
No breaking changes, target authority changes, runtime changes, release metadata changes, or committed binaries. The real Windows native proof steps passed; later Windows package and Node 22/24 checks were skipped after pre-existing curated failures. All three native package baselines (Linux x64/arm64, macOS arm64) passed. Greptile reviewed head
a1346c7with no actionable findings (5/5, source-only; its supersession check lacked GitHub authentication). Codex review did not complete because repository review quota is exhausted; it is not counted as passed.Author readiness
Human owner: @gensokyo-dev
The requester explicitly directed entry of these declarations and authorized ready-for-review submission and merge. Technical diff review and validation were performed by Codex; no independently observed human review is claimed.
Before merge
type(scope): outcome.