← Back to Pull requests

Fix socket-patch workflow: require dep install and use scan before apply #4

Merged
mikolalysenko merged 3 files (497 lines) on Mar 06, 2026 21:49 UTC
View on GitHub
mikolalysenko mikolalysenko commented on Mar 06, 2026 21:46 UTC
Author

Summary


  • socket-dep-patch: Added dependency installation as a prerequisite, replaced non-existent socket-patch apply --dry-run with socket-patch scan, added error handling for missing .socket folder

  • socket-fix: Added dependency install check to Step 1 environment detection, updated Phase 1b and Phase 3c to use socket-patch scan → socket-patch apply workflow

  • socket-setup: Updated all CI/CD patterns (GitLab, Bitbucket, Dockerfile, Makefile, generic) and the package manager reference table to use the two-step scan → apply workflow
  • The correct socket-patch workflow is: install deps → socket-patch scan → socket-patch apply. Previously the skills used socket-patch apply --dry-run (which doesn't exist) and didn't check that dependencies were installed first, causing socket-patch apply to find nothing to patch.

    Test plan


  • npm test — all 69 structural tests pass

  • Grep for apply --dry-run returns zero matches

  • Verified socket-dep-patch prerequisites mention dependency installation

  • Verified socket-fix Step 1 includes dependency install check

  • Verified all socket-setup CI/CD patterns show socket-patch scan before socket-patch apply
  • 🤖 Generated with Claude Code

    Diff: 497 lines (+346 / -151) across 3 files Reviewer: None requested Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.58 = Change Risk (0.65) × (1 − Review Confidence (0.11)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 497 lines diff across 3 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 27% · Reviewer familiarity: 10%
    11%
    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.372
    Shallow Review Depth shallow_review_depth
    0.344
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    1 comments
    "Review active on #4"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    mikolalysenko mikolalysenko
    Labels
    risk: medium confidence: 11.1% 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: 65.1% (HIGH) · Higher = larger blast radius
    65.1%
    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: 11.1% · Lower = rushed or shallow review
    11.1%
    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: 57.9% · Moderate risk
    57.9%