Make the package JET-clean and run JET on all reported code #363
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 196 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.316
Real PR Conversation Timeline
1 comments
"Review active on #363"
general
weight: 0.35
PatrickHaecker
I think I found a solution which is the best of both worlds from our discussion of the feature.
The JET workflow analyzed only
FixedPointNumbersitself and printed an unrestricted report on the side, which is less efficient can be confusing as they differed. Reports from Base code reached throughFixedPointNumbersare worth catching as well, so the workflow now runstest_packagewithouttarget_modulesand fails on any report. This helps to find regressions both in futureFixedPointNumbersversions and in future Julia versions.This required removing the three remaining causes of reports on Julia 1.10 and 1.13 when not limiting JET to
FixedPointNumbers:signedandunsignedforFixedPointthrew aMethodErroronly becauseremhas no method for a type argument. They now throw theMethodErrorexplicitly. This enables JET to understand that this is on purpose (and humans who haven't read the comment).isintegerreached theFixedmethod of_floorthrough the generic_truncforFixedPoint{<:Unsigned}, with an impossibleFixed{Union{}}, becauseUnion{}is bothSignedandUnsigned. Bounding that method byT <: Signedlimits the overlap toFixed{Union{}, f}, which has no values and now has its own method._truncstays unchanged.rand!converted the array pointer withreinterpret, whose Base internals JET reports on Julia 1.10. ThePtr{T}constructor does the same conversion and is better style anyway.