← Back to Pull requests

fix: GitHub OAuth redirect handling #5

Merged
Ishaan-Chaturved1 merged 9 files (1045 lines) on Sep 19, 2026 08:17 UTC
View on GitHub
Ishaan-Chaturved1 Ishaan-Chaturved1 commented on Sep 19, 2026 04:52 UTC
Author

Updates the GitHub OAuth flow to safely construct authorization parameters and explicitly pass the callback URL during token exchange.

Part of #4

Diff: 1045 lines (+830 / -215) across 9 files Reviewer: ankit-cybertron Review duration: 204m
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.78) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.78 · 1045 lines diff across 9 files
0.78
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.29 · 1 substantive comment(s)
0.29
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
57%
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.400
Shallow Review Depth shallow_review_depth
0.250
Sensitive Paths sensitive_paths
0.078
Real PR Conversation Timeline
3 items
ankit-cybertron ankit-cybertron commented on Sep 19, 2026 05:38 UTC
Contributor

CI now has 134 passing and 2 failures. The original OAuth URL encoding test is fixed. The remaining failures are older tests that still expect the previous error-redirect behavior for /auth/github and the GitHub App install route. These likely need to be updated as part of #5’s authentication-flow changes.

ankit-cybertron ankit-cybertron approved these changes on Sep 19, 2026 08:17 UTC
Approved Reviewer

Approved these changes.

Assignees
Ishaan-Chaturved1 Ishaan-Chaturved1
Labels
risk: low confidence: 57.4% reviewed sensitive_module
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: 77.9% (HIGH) · Higher = larger blast radius
77.9%
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: 57.4% · Lower = rushed or shallow review
57.4%
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: 33.1% · Safe to merge
33.1%