Block group applications using the stored reapplication timeframe. #4628
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 261 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.333
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4628"
general
weight: 0.35
Joker666
Changes
reapplicationTimeframeon that enrollment.standard.throwIfApplicationBlockednow owns both the enrollment-status checks and the group reapplication window, and returns a specific error per enrollment status instead of the generic "You have already applied to this program" message:"How to test
instant. They can apply to any group immediately, and the enrollment stays approved.standard. Applying to any group within 30 days of that rejection fails with the 30-day message. After 30 days fromreviewedAt, it succeeds.never. Further group applications fail with "You cannot reapply to this program."Notes
instantclears an earliernever.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Application Updates
When an application to an additional group is rejected, the approved enrollment remains approved, and the selected reapplication timeframe is saved.
Reapplication eligibility follows the saved timeframe: applicants may reapply immediately, be blocked from reapplying, or wait until the standard cooldown has passed since their latest reviewed rejection.
Approved applicants cannot apply again to the same group.
* Applications are blocked for pending, invited, and declined enrollments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->