← Back to Pull requests

test(oauth): parse and assert decoded OAuth redirect query parameters #6

Merged
ankit-cybertron merged 1 files (10 lines) on Sep 19, 2026 05:30 UTC
View on GitHub
ankit-cybertron ankit-cybertron commented on Sep 19, 2026 05:25 UTC
Author

Updates the GitHub OAuth integration test to parse and validate decoded query parameters instead of relying on raw URL encoding.

This fixes the existing test failure caused by urlencode() encoding the OAuth scope parameter.

Part of #4 and supports the GitHub App authentication migration in #5.

Diff: 10 lines (+7 / -3) across 1 files Reviewer: None requested Review duration: 4m
All Vouch review confidence checks passed
Residual risk 0.43 = Change Risk (0.63) × (1 − Review Confidence (0.32)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 10 lines diff across 1 files
0.63
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
31%
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.344
Diff Size diff_size
0.143
No Reviewer Assigned no_reviewer_assigned
0.120
Rapid Merge rapid_merge
0.100
Sensitive Paths sensitive_paths
0.063
Real PR Conversation Timeline
1 item
"Review active on #6"
general weight: 0.35
Reviewers
None requested
Assignees
ankit-cybertron ankit-cybertron
Labels
risk: medium confidence: 31.7% 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: 62.5% (MEDIUM) · Higher = larger blast radius
62.5%
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: 31.7% · Lower = rushed or shallow review
31.7%
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: 42.7% · Moderate risk
42.7%