← Back to Pull requests

Apply the rules-based compile args to C++20 module actions #926

Open
AustinSchuh opened this pull request with 649 lines diff across 22 files
View on GitHub
AustinSchuh AustinSchuh commented on Oct 06, 2026 04:59 UTC
Author

#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.

Diff: 649 lines (+635 / -14) across 22 files Reviewer: keith Review duration: 19502m
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
0.70
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 2 substantive comment(s)
0.55
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
69%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
keith keith approved these changes on Oct 06, 2026 18:18 UTC
Approved Reviewer

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

cerisier cerisier commented on Oct 06, 2026 19:20 UTC
Contributor

I'd love to test that with hermetic-llvm !

AustinSchuh AustinSchuh commented on Oct 07, 2026 07:26 UTC
Author

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!

keith keith approved these changes on Oct 07, 2026 18:54 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
AustinSchuh AustinSchuh
Labels
risk: low confidence: 69.3% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 70.3% (HIGH) · Higher = larger blast radius
70.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 69.3% · Lower = rushed or shallow review
69.3%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 21.5% · Safe to merge
21.5%