reinfer: do not memoize dispatch-tuple lookups in edge verification #64382
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 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.350
Ai Authored
ai_authored
0.050
Diff Size
diff_size
0.041
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
IanButterworth
vtjnash
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 theIdDicttraffic 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)