BUG: beta, betaln: use the `lgam` path at `MAXGAM` #632
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 121 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.289
Diff Size
diff_size
0.287
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #632"
general
weight: 0.35
j-bowhay
Reference issue
No issue; item 2 of #629. Found while porting xsf to Rust (https://github.com/jorenham/xsf-rust/pull/2102).
What does this implement/fix?
beta(170.3743769563027, 1.25)returned0(expected0.001471187499158437) andbetalnreturned-inf, becauseGammareturnsinfatMAXGAM. TheMAXGAMchecks now use>=, so|a + b| == MAXGAMor|a| == MAXGAMtakes thelgampath.Additional information
The new tests fail on
mainwith GCC and Clang (0,-infandinf) and pass with the fix; the xsref table tests ofbeta,betaln,binomand thebdtr,fdtrandnbdtrfamilies pass. Open PR #369 also editsbeta.hnear these lines, but does not change these checks.AI Generation Disclosure
Claude Opus 5.5 (Claude Code) wrote the fix, the test, and this description, following the plan in this comment. GPT-6.2 Sol (Codex CLI) reviewed it.