[EASY] [STF] exception_policy: spell library-level throws with the CCCL exception macros #11742
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 150 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
Diff Size
diff_size
0.300
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11742"
general
weight: 0.35
andralex
Description
Follow-up to a review remark by @caugonnet on #11683: STF code should not use naked
throw, since_CCCL_THROW/_CCCL_RETHROWare what keep a header compiling when exceptions are disabled (they print the type andwhat()and abort, or terminate, in that configuration, and are a plainthrowotherwise).An inventory of the merged STF headers found all remaining library-level naked throws in one file,
exception_policy.cuh: 25 sites outside theUNITTESTED_FILEregions, none behind an_CCCL_HAS_EXCEPTIONS()guard.throw;that decline a policy (catch-only, translate, alternation, fold) are now_CCCL_RETHROW;._CCCL_THROW(type, args...): the three rungs oftranslate_t::__throw_translated,circuit_openin the circuit breaker, and thestd::logic_errorin the type check.No behavior change with exceptions enabled. The unit tests embedded in the header keep plain
throw(134 sites), which is also what libcu++'s own tests do.Checklist
🤖 Generated with Claude Code