Apply the rules-based compile args to C++20 module actions #926
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.70) × (1 − Review Confidence (0.69)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.70 · 649 lines diff across 22 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 2 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.388
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
5 items
Approved
looks good but it would be ideal if there were an existing group we could add some of these too to make it easier for downstream toolchains too
I'd love to test that with hermetic-llvm !
looks good but it would be ideal if there were an existing group we could add some of these too to make it easier for downstream toolchains too
source_compile_actions looks reasonable for that, done!
Approved
Approved these changes.
keith
AustinSchuh
#750 added cpp20_module_actions, but only a few args cover it, so a rule-based toolchain's module compiles get no include paths, defines, sysroot or PIC, and fail on any header. This brings them up to parity with unix_cc_toolchain_config, which already covers these actions.
Apply the include path, define and layering_check args to module compile and dependency scanning, but not codegen, which doesn't preprocess. layering_check skips the module compile, where -fmodule-name would rename the module; the scan checks the includes instead. Apply PIC, random seed and sysroot to all module actions, and per-object debug info to codegen.
Tested with a golden for each changed arg in legacy_features_as_args listing the actions it covers, which fails without this change, and a golden for cpp20_module_actions. End to end, toolchains_llvm's rule-based darwin toolchain builds and runs C++20 module tests with layering_check on, and catches a layering violation in a module unit.