fix(javascript): report JSON status for imported package manifests #1740
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 380 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1740"
general
weight: 0.35
immanuwell
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
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.e36c82bewithnullinstead ofincluded.normalized_result.graph.edges, the manifest import now reportsincluded,invalid, orunavailable.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