Repository navigation
fix(javascript): report JSON status for imported package manifests - #1740
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5410fe307e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
5410fe3 to
9f001b7
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f001b783a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
9f001b7 to
4a15bfc
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4a15bfc2d5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Reproduced and reviewed current head One status distinction still needs attention. With The existing edge producer's Please include the actual native Independent fixture: valid root package object, |
4a15bfc to
1b9e4c2
Compare
|
@N0zoM1z0 confirmed, native require loads the array manifest. added that assertion and kept import status separate from metadata validation |
N0zoM1z0
left a comment
There was a problem hiding this comment.
Reviewed and independently reproduced updated head 1b9e4c2109effcc57bd0e5962547ed03b35e3d35. The JSON-text status / package-metadata distinction is now correct: Node 24.18.0 actually loads both array-valued explicit JSON imports; REA reports included for both import edges while retaining invalid for the array manifest's package metadata.
The updated public CLI/MCP regression fails against the earlier 4a15bfc2 runtime and passes after a fresh build of this head. Both changed test files pass (16 tests), including malformed/unavailable manifests and cancellation before manifest visits. An independent three-import fixture produces authenticated CLI and stdio-MCP Evidence with fully equal normalized results and a successful subsequent MCP ping. Full single-threaded typecheck, lint/module boundaries, changed-file formatting and architecture guards pass.
Also composed this exact source with current main 4daea941 in a private review branch, verified the complete expected merged tree and unchanged source blobs, then rebuilt and reran the same 16 tests, actual CLI/MCP fixture, and full typecheck successfully. This was a static-source workflow on Linux; no real browser or native analysis provider was used. The contributor's branch was not modified.
Summary
Report JSON availability for imported package manifests. No matching issue found after searching issues and PRs.
Problem and expected behavior
require("./package.json").versionresolves, but its import edge hastarget_json_status: null. Valid JSON should reportincluded, just like other JSON imports.Repro from a built checkout:
Change and scope
The existing
jsonStatuschecker already does the job. Use it forpackage-jsontargets too.Contract and boundary impact
Evidence and regression coverage
Tests added:
packageJsonImports.test.ts, using compiled CLI and stdio MCP. Covers valid/malformed/unavailable manifests, ordinary JSON, and JavaScript imports. Native Node confirms the valid manifest is readable.Base reproduction: both new workflow tests failed on
e36c82bewithnullinstead ofincluded.User-visible output: in
normalized_result.graph.edges, the manifest import now reportsincluded,invalid, orunavailable.Remaining proof gaps: macOS and Windows not run.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run test:focusedfor packageJsonImports, packageSubpathsCli, applicationManifestRoots, and javascriptModuleRelationships: 10 passed.npm run check: passed.npm run verify:test-discovery: passed.Compatibility, safety, and release
Review checklist