Run only the soundness checks a caller enabled #361
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 206 lines diff across 2 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.319
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #361"
general
weight: 0.35
FranzBusch
Each soundness check was its own job gated by an
if, so a check a caller turned off still showed as a skipped job. This PR generates a matrix similar to the Swift matrix workflow so that skipped jobs are invisible.This change uses a shel script rather than Swift as the other matrix workflow does. This is because it isn't as complex a problem so bash should be maintainable here, and bash is quicker for a task like this.
Changed:
Added
plan-checks.sh, which builds a matrix of only the enabled checks.Replaced the per-check jobs with one
checkjob that fans out over the matrix and keeps each check's name, so required status checks still match.Moved the check logic from the workflow into
run-check.sh, which reads the caller's inputs from the environment instead of having them substituted into the script.Located the scripts, and in
checkthe configurations, through theworkflows-scriptsaction, so they come from the commit of the running workflow.Read a check's container image only while that check is on.
Ran the caller's pre-build command under
bash -ewithoutpipefail.Added
soundness-plan-checks-tests.shandsoundness-run-check-tests.sh, and ran them fromshell_tests.yml.Named the checks in
soundness-docs-check.mdinstead of job IDs that no longer exist.Result:
A check a caller turns off no longer appears as a skipped job.
With every check off, a single skipped
checkjob remains and the run passes.<img width="670" height="668" alt="image" src="https://github.com/user-attachments/assets/2def312d-245a-4db3-9465-51c12ec3775b" />