Repository navigation
fix(javascript): reconcile Node targets with entry assets - #8155
ShuaixinHuang wants to merge 1 commit into
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. |
[Medium impact] The PR appears safe to merge; entry matching stays separate from evidence that code loaded. SummaryFixes saved-Evidence reconciliation so V8 Inspector
Validation was source-based; tests were not run during this review. Whether another PR supersedes this one could not be checked because GitHub access required authentication. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[V8 Inspector target] --> B{Protocol type is node?}
B -->|Yes| C[JavaScript candidates]
B -->|No| D[Renderer candidates]
C --> E{Location resolves uniquely?}
E -->|Yes| F[Medium-confidence inferred match]
E -->|No| G[Unknown, unmatched, or ambiguous]
F --> H[Target match does not prove loaded code]
I[Observed script match] --> J[Loaded code]
Reviews (1) · Last reviewed commit: "fix(javascript): reconcile Node targets ..." · Reviewed by Greptile |
Superseded by #8252 at the author's request: #8252 . The replacement uses the same verified head commit; this PR retains the original discussion and validation record.
Summary
Fixes #8126. A V8 Inspector target with protocol type
nodeand a mapped entry-file location was searched only against renderer candidates. Reconciliation therefore returnedunmatched/no-static-content-matcheven when the JavaScript asset existed. Use the existing JavaScript candidate category for that target and retain a medium-confidence location correspondence.Change and scope
The runtime projection owns the candidate category. Browser/Electron page targets keep their renderer category; unresolved locations still remain unknown. The load-state consumer now accepts only script reconciliation items as evidence of loaded code: matching a target entry location alone must not claim script presence or execution. Owning documentation records this distinction.
This is a read-only correction within existing saved-Evidence reconciliation. No new provider, runtime role authentication, public schema, target selection, process authority, capture behavior, installation or resource limit is introduced. A new maintainer capability decision is not applicable. Original Evidence and inferred
observed_asprovenance remain separate.Expected effects:
Evidence and regression coverage
Pinned base:
675d4076de1af5052f01709a9cf4cdf0cc3e2c67. Windows, Node 24.22.1 / npm 11.16.0.runtime_scripts: 0,static_loaded: 0; an observed script still establishes loaded presence.EPERM, before reconciliation executes. Temporarily restoring both changed production owners to exact main reproduces that same failure; both files were restored byte-for-byte afterward. No skip or assertion was changed. This is not a fully green local suite.check:fast: typecheck/lint 2/2 passed (31.53 seconds). Test discovery: all 2,881 files discovered exactly once. Documentation fact check passed. Normal precommit passed, with all six committed files identical to tested bytes; normal prepush 2/2 passed (cached 215 ms).The matching regressions use explicitly synthetic, schema-validated Evidence. A separate real owned Node Inspector + CLI probe on Windows completed listing, observation, static analysis and reconciliation, but its lossy discovery URL correctly stayed unresolved/unknown; it does not establish a real Linux reproduction. The test process was stopped afterward. No Linux/macOS or real Electron run is claimed. The existing full Inspector observation file also had two Windows-specific expectations fail on the baseline; that file is unchanged. Hosted CI must independently validate this new head.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.