properly normalize / validate abiflags and include in environment signature #3299
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 120 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
Real PR Conversation Timeline
1 comments
"Review active on #3299"
general
weight: 0.35
messense
maturincurrently generatesPYO3_ENVIRONMENT_SIGNATUREwithout accounting for abiflags. This in particular means that builds switching between regular and free-threaded Python can fail to invalidatepyo3-ffi's cache and lead to compilation selecting the wrong ABI.This PR corrects the generated environment signature, and attempts to make abiflag handling correct throughout
maturin. In particular I found the following other deficiencies:PYO3_CONFIG_FILEdid not infer (or validate) missing ABI flags fromPy_GIL_DISABLEDorPy_DEBUG.PYO3_CONFIG_FILEomitted free-threaded and debug flags. (This would produce a wheel with an invalid extension for the free-threaded/debug interpreter.)ddebug abiflag.