← Back to Pull requests

Run only the soundness checks a caller enabled #361

Closed
unknown closed this pull request without merging on Nov 19, 2026 13:02 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 01:29 UTC
Author

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 check job 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 check the configurations, through the workflows-scripts action, 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 -e without pipefail.
Added soundness-plan-checks-tests.sh and soundness-run-check-tests.sh, and ran them from shell_tests.yml.
Named the checks in soundness-docs-check.md instead 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 check job remains and the run passes.

  • No job names change
  • <img width="670" height="668" alt="image" src="https://github.com/user-attachments/assets/2def312d-245a-4db3-9465-51c12ec3775b" />

    Diff: 206 lines (+154 / -52) across 2 files Reviewer: FranzBusch Review duration: 2132m
    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
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #361"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.7% · Safe to merge
    15.7%