← Back to Pull requests

chore(IR): move `IRContext` setters to their own file #1695

Open
math-fehr opened this pull request with 1773 lines diff across 7 files
View on GitHub
math-fehr math-fehr commented on Oct 09, 2026 01:43 UTC
Author

This makes it clearer the structure of the project, as IRContext setters should not be used directly, and users should use the Rewriter or WfRewriter public API instead.

Diff: 1773 lines (+921 / -852) across 7 files Reviewer: tobiasgrosser Review duration: 2352m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.52) × (1 − Review Confidence (0.65)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 1773 lines diff across 7 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
0.35
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
65%
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
Real PR Conversation Timeline
3 items
tobiasgrosser tobiasgrosser approved these changes on Oct 09, 2026 01:46 UTC
Approved Reviewer

Nice!

ineol ineol approved these changes on Oct 09, 2026 10:06 UTC
Approved Reviewer

lgmt!

I just have a nitpick: the setters file has pushOperand etc functions which is mildly confusing.

Reviewers
Assignees
math-fehr math-fehr
Labels
risk: low confidence: 65.2% 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: 51.8% (MEDIUM) · Higher = larger blast radius
51.8%
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: 65.2% · Lower = rushed or shallow review
65.2%
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: 18% · Safe to merge
18%
Repository