← Back to Pull requests

Revamps for massive codegen code-size reduction #1

Merged
seritools merged 10 files (3800 lines) on Mar 22, 2024 22:01 UTC
View on GitHub
seritools seritools commented on Mar 20, 2024 23:34 UTC
Author

No description provided by author.

Diff: 3800 lines (+1979 / -1821) across 10 files Reviewer: jose-acevedoflores Review duration: 2787m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.62) × (1 − Review Confidence (0.67)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 3800 lines diff across 10 files
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.36 · 2 substantive comment(s)
0.36
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
66%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.400
Empty Description empty_description
0.060
Real PR Conversation Timeline
4 items
jose-acevedoflores jose-acevedoflores commented on code on Mar 22, 2024 13:46 UTC
Code Review
enunion/src/lib.rs:1
@@ -30,3 +30,17 @@ where
         .into_utf8()
         .ok()
 }
+
+#[doc(hidden)]
+pub fn merge_objects(target: &mut JsObject, sources: &[JsObject]) -> napi::Result<()> {

you don't need inline(never) for these out line functions?

jose-acevedoflores jose-acevedoflores approved these changes on Mar 22, 2024 13:47 UTC
Approved Reviewer

Approved these changes.

seritools seritools commented on code on Mar 22, 2024 13:48 UTC
Code Review
enunion/src/lib.rs:1
@@ -30,3 +30,17 @@ where
         .into_utf8()
         .ok()
 }
+
+#[doc(hidden)]
+pub fn merge_objects(target: &mut JsObject, sources: &[JsObject]) -> napi::Result<()> {

they aren't generic, so we can just trust Rust to do the right thing (e.g. inline if only one use, etc)

Assignees
seritools seritools
Labels
risk: low confidence: 66.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 62.2% (MEDIUM) · Higher = larger blast radius
62.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 66.9% · Lower = rushed or shallow review
66.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.6% · Safe to merge
20.6%