Repository navigation
fix(javascript): reconcile Node targets with entry assets - #8670
Merged
morluto merged 6 commits intoNov 3, 2026
Merged
Conversation
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
12 tasks done
Contributor
[Medium impact] This pass adds no new findings, but the existing test failure still blocks merging. SummaryThe PR maps Node entry targets to JavaScript candidates without treating target matches as loaded scripts.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Node target entry] --> B[JavaScript candidates]
B --> C[Location correspondence]
D[Observed script] --> E[Script correspondence]
E --> F[Loaded state]
Reviews (3) · Last reviewed commit: "test(javascript): restore Evidence workf..." · Reviewed by Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
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.
CI regression correction — 2026-11-03
Restored
reconciled.value.evidence.normalized_resultin the Node target boundary test. The preceding hosted run reported TS2339 on EvidenceWorkflowExecution and both parameterized cases failed schema parsing at the direct normalized_result access. The correction restores exactly the previously verified tree while retaining the maintainer's commit in history.Local validation in the existing repair checkout: both boundary cases pass and check:fast passes. That checkout contains preserved diagnostic work and is not the exact published tree; hosted CI must independently validate this new HEAD. No production code, assertions or resource limits changed.
Supersedes #8638 at the author's explicit request to resubmit all current PRs. Same published branch and HEAD 1c8ffde. Original discussion and historical validation remain at #8638. This new PR requires its own hosted CI and new human declarations for this PR ID.
Supersedes #8538 at the author's explicit request to resubmit all current PRs. Same published branch and HEAD
1c8ffdeda19d8083dcb7c4becbe0a9eab0850277. Original discussion and historical validation remain at #8538. This new PR requires its own hosted CI and a new human declaration for this PR ID; prior review declarations are historical.Supersedes #8488 at the author's explicit request to resubmit this contribution. This new PR uses the same published branch and HEAD
1c8ffdeda19d8083dcb7c4becbe0a9eab0850277. Original discussions and validation are preserved at #8488. The historical results below retain their original execution points; this new PR requires its own hosted CI and a new human declaration for this PR ID.Supersedes #8252 at the author's explicit request to resubmit the existing PR. This replacement reuses verified head e56bcc9 and preserves the original discussion and validation record at #8155. Historical validation and its limitations below remain at their stated execution points. This new PR must pass its own hosted CI.
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.This replacement preserves the prior PR discussion and validation history at #8252. It reuses the verified published head and requires its own hosted CI.
Current-head CI repair (2026-11-01)
Commit
1c8ffdeda19d8083dcb7c4becbe0a9eab0850277restores the boundary regression's access throughreconciled.value.evidence.normalized_result. The preceding suggestion commitec01ac7a0dc62c5e349cc419a15cd3d647ce884ereverted that access to the old return shape, causing TS2339 and two schema parse failures in hosted run 41311098542. No production behavior or assertion was weakened.On a current-main (
aa48d494e9726d469a1b9ed917f021d8a1a4c7ea) plus PR tree, the original access reproduced 2/2 boundary failures. With the corrected access, the complete boundary and compiled CLI/stdio-MCP files passed 4/4, the three build prerequisite tasks succeeded, andcheck:fastpassed 2/2 in 42.977s. Windows x64 / Node 24.22.1, npm 10.9.3 (the repository pins 11.16.0); no dependency changes. The remote patch is exactly one restored property access, and its tree matches the earlier5206d727PR tree. This new HEAD needs its own hosted CI result.