Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: I tested this on Linux, and it fixes both cases. On 6.2.0 and on main, both get a fake definite change. On this branch, both match what Node really exports. A real export still shows its change. MCP agrees with the CLI. This is head The full suite ran with For each case, I wrote a v1/v2 pair of
Case 2 is the PR's own: an outer Over stdio MCP, one session compared two different pairs back to back. I tried case 1 then 3, and case 2 then 1. On all three builds, the results match the CLI, and the second call works. Not run: Windows or macOS, a real app, and the process cleanup change beyond its tests. Edit: This line said JADX by mistake. The cleanup change is the process one, in Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
|
Reviewed 665749c. No blocking issue found in the changed logic. Skipping a bare exports rebinding as a default export is correct; compound/logical writes no longer establish a callable from the RHS alone, and the recognized module.exports = exports = fn chain is deliberately narrow. I also reviewed the separate ProcessOwnership change in this PR: the exit refresh only settles a launcher mismatch when a fresh table no longer contains that PID, keeps surviving detached-descendant uncertainty, and leaves token/identity validation in place before signaling. That is materially more appropriate than relaxing ownership based on the command name alone. The supplied tests exercise real CommonJS loading with public CLI/MCP comparison and the ownership failure paths. CI is green at this head. Looks ready subject to final checks; I did not independently rerun its full process/native suite. After merging #1351 or #1292, rerun these CommonJS cases because those PRs modify the same semantic collection/binding area. For future changes, splitting the semantic and process-supervision fixes would make independent review easier. |
Combine assignment-aware CommonJS exports with the lexical module-link binding owner, retaining parameter-copy and process ownership fixes. Validation: 118 focused tests including public CLI/MCP exported-binding regressions, typecheck/lint, architecture guards, and formatting.
|
TL;DR: Thanks for the review, morluto. I reran the CommonJS cases on this branch merged with current main, which now has #1351 and #1292. It's clean. The bare I merged main at Full suite. After My three
Case 2 was wrong on main at Over stdio MCP, I compared two different pairs back to back in one session: case 1 then 3, and case 2 then 1. Both builds match their CLI results, and the second call works. Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
Merge current main and follow refreshed descendants of the original process lineage before accepting a stale-launcher exit. A newly detached descendant now retains cleanup uncertainty during both planning and pre-signal validation instead of being left alive behind a successful cleanup result. Validated with Node 24.18.0 and npm 11.16.0: build:cached, all eight check:ci tasks, and 574 focused tests. The real Linux process-identity case is unavailable on this host and remains enabled in CI.
|
TL;DR: The CommonJS fix still holds on the new head This head merges main at What the merge changed. I compared each head's diff against its own main. The CommonJS change in Tests. The three changed test files pass: 63 tests, on all three Nodes. That was 54 at Cases. I used the same
Main is one commit ahead of this merge's parent Still not run
Edit: The newest head cf4fc9c has the same CommonJS and process code as f28feba, and the same tests. Only line numbers moved, and one 6-line test file, Commands
Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
Merge upstream main at 926c2d6, preserving the CommonJS exports reassignment fix and launcher-exit ownership safeguards. Incorporate upstream browser cancellation cleanup, the EVM cleanup diagnostic fix, and firmware/Qwen regression expectations matching intended cleanup behavior. Verification: check:ci (8 tasks and architecture guards), docs:check, strict C fixture compilation, and JavaScript syntax check passed. Focused tests: 539 passed, 2 skipped; 42 native-process cases failed at the container's procps/process-identity boundary (fatal library error, lookup self). CommonJS CLI/MCP, browser cancellation, Qwen uninstall, and session snapshot regressions passed. Native lanes require GitHub CI verification.
Check CLI failure message fields directly instead of comparing a raw path with re-serialized JSON, which escapes Windows backslashes. Keep the category, error, full-output wrapper, exit status, logging and recovery assertions intact. Exercise JSON escaping on POSIX with a literal backslash in the root filename so the regression reproduces without a Windows host. Apply the decoded-message assertions to the permission case as well. Verification with pinned Node 24.18.0 and npm 11.16.0: the four preflight cases fail with the old assertion and pass with this change; three existing platform/permission cases are skipped on this host. check:ci passes all eight tasks and architecture guards. GitHub CI on parent a1537d3 has confirmed the original failing shard and real binary-layout/EVM lanes pass.
Merge upstream main at 54e2890, including its equivalent decoded-path assertions and browser formatting repair. Resolve the overlapping CLI assertions with the upstream checks while preserving the literal-backslash fixture regression on POSIX. Preserve the CommonJS feature, conservative launcher-exit cleanup, all existing branch commits, and the new upstream browser, JavaScript package-path, and client-environment fixes. Verification with Node 24.18.0/npm 11.16.0: check:ci passes all eight tasks and architecture guards; docs:check passes. Focused integration suites: 345 passed, 4 existing availability/platform cases skipped. Two Electron tests failed before launch at the local procps/process-identity boundary (fatal library error, lookup self), so their native verification remains with GitHub CI. CommonJS CLI/MCP, process-ownership validation, session snapshot, setup, package-path, browser cancellation, and decoded-path regressions pass.
Retain upstream CommonJS assignment-chain and captured-receiver semantics. Align existing MCP regressions with missing detached exports and resolved local assignment chains, while preserving launcher-exit cleanup hardening. Validation: pinned Node 24.18.0/npm 11.16.0; check:ci and docs:check pass; 310 domain/process-ownership tests pass. Local compiled CLI/MCP and one host-identity test remain blocked by the container process namespace.
Refresh a mismatched launcher snapshot only when a new live process table proves its PID absent. Preserve uncertainty for detached descendants and continue checking ownership of surviving group members before signaling. Index retained lineage membership instead of rescanning it for each refreshed process. Adapted from #1357. Validation: 71 source tests passed, one Linux-only identity case skipped; 32 real process-boundary tests passed on macOS. Co-authored-by: You Wish <[email protected]>
Keep the configured launcher alive while its limited Python child runs so ownership checks retain the admitted executable identity. Trigger memory exhaustion with one oversized ELF zero-fill tail rather than racing section traversal against a timeout. Adapted from #1357. JavaScript syntax, strict C syntax compilation, formatting, and static checks passed. The Linux pwntools verification lane was not run on this macOS host. Co-authored-by: You Wish <[email protected]>
|
Thanks for the launcher-exit diagnosis and regression cases. The changes are integrated on main as 80896a1 (launcher exit and retained descendant lineage), e385504 (resource-limited verifier controls), and a99b2fd (focused CommonJS and escaped-path regressions). The integration preserves conservative cleanup when the process table is unavailable or a launcher identity remains present. It uses the existing CLI/MCP acceptance suite rather than adding a second broad regression matrix. Source/composition checks, focused compiled boundaries, and the distinct regression cases passed; 32 real macOS process-boundary tests also passed. The Linux resource-limited binary-layout verifier was not run on this macOS host. Closing as superseded by the main commits, with contributor credit retained. |
|
TL;DR: I ran the Linux binary-layout verifier that was not run on macOS. It passed 3 times out of 3 on main, ea06264 (#1688). The CommonJS cases and the process tests also pass on Node 22, 24 and 26. Linux binary-layout verifierI ran main's The resource limits come from CommonJS and process results
The 2 skipped tests only run on Windows. I also reran my earlier cases on main. The "earlier run" column is my result on the PR head f28feba and cf4fc9c, from my earlier comments.
All four rows matched on all three Nodes. Main also changed the CommonJS code in 8b2f851 and 1e51c73. The commit a99b2fd adds tests only. Not run
Thanks, morluto, for folding the work into main. Thanks, Y0UW1SH, for the diagnosis and the test cases. Commands
Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
When a process-table snapshot races launcher exit, its stale command can make otherwise owned cleanup fail. This PR refreshes that snapshot only after a fresh table proves that the launcher PID has exited. Surviving or reused PIDs, unavailable inspection, foreign group members, and detached continuations retain cleanup uncertainty and the existing ownership checks.
The binary-layout verifier keeps its configured launcher alive while its resource-limited Python child runs, preserving process-group identity through timeout cleanup. Its memory fixture forces an allocation failure rather than racing section processing against a deadline.
The CommonJS correction is now present in upstream main, including assignment-chain and captured-receiver handling. This branch retains that implementation unchanged and adds CLI/MCP regressions using Node's real CommonJS loader as the oracle. Expectations now recognize discarded named exports as missing and resolve nested local assignment chains. A CLI regression also checks decoded error-message paths, including literal-backslash POSIX filenames.
The branch includes upstream main at
f88c99021b88ce67e513025901f57478d8107d0cthrough merge commit8d1dfc986a52e09b78443b025ce812c3d75f3dc1. Both histories are retained; no force push was used. GitHub reports the branch mergeable.Validation with Node 24.18.0 and npm 11.16.0:
npm run check:cipasses all eight tasks and architecture guards, including typechecking, lint, formatting, unused-code checks, metadata, duplication and debt-marker checks.npm run docs:checkpasses.fatal library error, lookup self. Those checks require GitHub's native runner; no production fallback or test assertion was weakened to bypass the restriction.The PR remains draft while CI for the updated commit runs.