← Back to Pull requests

reinfer: do not memoize dispatch-tuple lookups in edge verification #64382

Merged
vtjnash merged 1 files (1 lines) on Nov 14, 2026 13:00 UTC
View on GitHub
vtjnash vtjnash commented on Oct 27, 2026 14:22 UTC
Author

The ml_matches code already memoizes these, so memoizing them again is just unnecessary overhead (though probably trivial, particularly since reaching here as a dispatch-tuple means a lot of other fast paths already failed to apply).

Measured on using DataFrames, OrdinaryDiffEq (release build): of the 28k lookups, 14.3k are dispatch tuples, almost all sent to the full lookup by the interference-set cap. They took 49ms of lookup time, the memo repaid 2.4ms of it, and the IdDict traffic for them cost about 19ms. The abstract signatures cost is still worthwhile: 5.1k memo hits saving about 0.14s.

Assisted-by: Claude Code (Fable 5.1)

Diff: 1 lines (+1 / -0) across 1 files Reviewer: IanButterworth Review duration: 25837m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.12) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.12 · 1 lines diff across 1 files
0.12
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
0.00
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
48%
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
Shallow Review Depth shallow_review_depth
0.350
Ai Authored ai_authored
0.050
Diff Size diff_size
0.041
Real PR Conversation Timeline
2 items
IanButterworth IanButterworth approved these changes on Nov 14, 2026 03:33 UTC
Approved Reviewer

Approved these changes.

Assignees
vtjnash vtjnash
Labels
risk: low confidence: 48.5% 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: 12.1% (LOW) · Higher = larger blast radius
12.1%
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: 48.5% · Lower = rushed or shallow review
48.5%
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: 6.2% · Safe to merge
6.2%