Repository navigation
fix(electron): retain unknown external module ownership - #7950
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no blocking defects were found. SummaryThe PR keeps ownership uncertain when a bare package was not inventoried, so Electron IPC analysis no longer reports a definite pair in that case.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Bare package lookup] --> B{Package inventoried?}
B -->|No, not a builtin| C[Retain unknown module effects]
C --> D[Graph records a module gap]
D --> E[Application ownership stays uncertain]
E --> F[IPC pairing becomes ambiguous]
Reviews (1) · Last reviewed commit: "fix(electron): retain unknown external m..." · Reviewed by Greptile |
morluto
marked this pull request as ready for review
October 28, 2026 23:24
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. |
2 tasks done
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.
Summary
Related to #7380. A bare package not found in the selected inventory could be loaded outside that inventory, but Electron IPC pairing treated its unexamined module effects as absent and reported a definite pair.
Problem and expected behavior
A synthetic application with one known IPC handler and preload transmission pairs them when its main file also requires an unobserved package. That package may execute outside the selected artifact, so its effects and possible application ownership remain unknown. Known Electron and Node builtins remain distinguishable from unexamined external packages. The original #7380 fixture includes an unexamined native addon and remains ambiguous; this PR does not close that issue.
Change and scope
The module path-resolution owner records an internal unexamined-imports fact for non-inventoried bare package lookup, including compiler-dependent resolution. Application graph ownership consumes that fact instead of reinterpreting raw declarations. Builtins and blocked package aliases retain their existing behavior. This does not inspect or execute external packages.
Contract and boundary impact
Expected effects:
Evidence and regression coverage
A source-built public CLI fixture reproduced one definite pair with an unobserved external package. The updated CLI and stdio MCP regression compares this case with Electron/Node builtin, dynamic require and native-addon controls. The existing two-application and native-gap fixtures continue to pass. The fixture is synthetic and does not execute Electron or an actual external package; real application frequency and other non-bare external path forms are not established.
Validation performed
npm run test:local -- src/application/javascript/JavaScriptArtifactPathResolution.test.ts— 302 passed.npm run test:focused -- tests/boundary/cli/electronScopedIpc.test.ts tests/boundary/filesystem/javascript-applications/electronApplicationAnalysis.test.ts— 20 passed, including CLI and stdio MCP cases.npm run check:fastandgit diff --check— passed.Compatibility, safety, and release
Unexamined external packages can now make ownership and IPC pairing ambiguous. No schema migration. Real Electron runtime and external-package behavior were not exercised.
Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.