feat(mcp-oauth): a retry of a lost refresh answer is not a reuse (W48, D1705) #334
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 234 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.327
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #334"
general
weight: 0.35
claude[bot]
Round 6, W48, PR 7c of
docs/plans/security.md. Stacked on #327 (basefeat/w48-security, which writes D1705).Decision
spentAtis added to the record (additive; records without it have no window). The client id, resource and scope are checked before the retry decision, so a mismatched retry is never taken for one. Deferred item "a refresh whose answer is lost" is narrowed accordingly.Evidence
New tests in
oauth.test.ts:invalid_grantwithout ending the sign-in, the retry's pair works and rotates; 61 s after a spend the same token is a reuse and ends the sign-in.🤖 Generated with Claude Code