fix: report a type missing from a dependency's assembly like main #3296
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.32) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 127 lines diff across 1 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.290
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3296"
general
weight: 0.35
mrgrain
When a dependency's
.jsiidoesn't have a type its declarations export, 7.1 reported it unlike main. 7.1 left out the JSII0005 for that type, and put JSII9002 on the dependency's declaration where main has no location. When an interfaceextendssuch a type, JSII3002 called it a "type" where main says "base interface". Main's tests don't cover this, so nothing caught it.How: like main, the type is now looked up at its value declaration, which an interface doesn't have. That gives JSII0005 when the dependency isn't a peer dependency, then JSII9002, even when JSII3001 was already reported. JSII3002 then follows as before. The interface heritage path sets "base interface" before it resolves the type, as the class path already did. The diagnostics are identical to main's, in the same order, for
extends,implements,import * as dep, a base class, a property and a parameter. A new internals test coversextendsandimplements; it fails without this change. The jsii-calc chain output is unchanged.