← Back to Pull requests

feat: add Groq fallback for risk narration #7

Merged
ankit-cybertron merged 5 files (730 lines) on Sep 19, 2026 09:25 UTC
View on GitHub
ankit-cybertron ankit-cybertron commented on Sep 19, 2026 09:21 UTC
Author

Adds an on-demand Groq API fallback for risk narration and updates the application dependency version.

  • Add Groq fallback for risk narration

  • Update application version to 2.1

  • Keep existing narration flow unchanged when Groq is unavailable
  • Diff: 730 lines (+719 / -11) across 5 files Reviewer: None requested Review duration: 4m
    All Vouch review confidence checks passed
    Residual risk 0.63 = Change Risk (0.70) × (1 − Review Confidence (0.11)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.70 · 730 lines diff across 5 files
    0.70
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 26% · Reviewer familiarity: 10%
    10%
    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.395
    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 item
    "Review active on #7"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    ankit-cybertron ankit-cybertron
    Labels
    risk: medium confidence: 10.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: 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: 10.8% · Lower = rushed or shallow review
    10.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: 62.7% · Moderate risk
    62.7%