← Back to Pull requests

ci: semgrep 1.186.0 parses the shell 1.178.0 failed on ("Semgrep scan error: Syntax error"), so no skill needs the exception #121

Merged
xaleryb merged 2 files (14 lines) on Nov 26, 2026 00:31 UTC
View on GitHub
xaleryb xaleryb commented on Nov 26, 2026 00:05 UTC
Author

What this changes

SkillEvaluator's Code Risk Analysis runs Semgrep, pinned at 1.178.0 in skillevaluator.yml. That version's bash parser rejects valid shell: even case "$1" in [0-9]) echo x ;; esac gives "Semgrep scan error: Syntax error", and SkillEvaluator then marks the scan incomplete. .skillevaluator-baseline.yaml accepted that for vllm-xpu-run and xpu-system-setup; the xpu-discover import in #119 adds scripts/check_pcie_link.sh, which hits the same error, so #119 is red.

Semgrep parses these scripts from 1.184.0 on (1.179.0 and 1.182.0 still fail). This pins 1.186.0, released 2026-11-18, and removes the incomplete entry, which no longer matches anything: the gate reports it as stale on both skills.

Testing

SkillEvaluator Tier 1 and skillevaluator_gate.py over every skill, as the workflow runs them:

| Tree | Semgrep | Result |
|---|---|---|
| this branch | 1.186.0 | 35 of 35 pass; --check-baseline and the gate self-test pass |
| this branch | 1.178.0 | vllm-xpu-run, xpu-system-setup fail (parse error, no exception) |
| main | 1.186.0 | vllm-xpu-run, xpu-system-setup fail (stale exception) |
| this branch + #119's xpu-discover | 1.186.0 | passes |
| main + #119's xpu-discover | 1.178.0 | fails, as in #119's CI |

The other 33 skills give byte-identical gate output under both versions. This PR's CI runs SkillEvaluator on every skill, because it changes the workflow and the baseline.

Checklist

  • I checked description against requests a user would really type — see CONTRIBUTING.md. (No skill changed.)

  • python3 tools/validate_skills.py passes locally.
  • Diff: 14 lines (+1 / -13) across 2 files Reviewer: napetrov Review duration: 25m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.26) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.26 · 14 lines diff across 2 files
    0.26
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.350
    Diff Size diff_size
    0.162
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    2 items
    napetrov napetrov approved these changes on Nov 26, 2026 00:22 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    xaleryb xaleryb
    Labels
    risk: low confidence: 44.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: 25.7% (LOW) · Higher = larger blast radius
    25.7%
    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: 44.8% · Lower = rushed or shallow review
    44.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: 14.2% · Safe to merge
    14.2%
    Repository