[18.0][FIX] resource_leaves_geographic: skip other states in flexible leaves #311
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 133 lines diff across 1 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.293
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #311"
general
weight: 0.35
loida-vm
When an employee with flexible hours requests a single day off on a local holiday of another State, the request is computed as 0 days. Multi-day requests over the same day are computed correctly.
Why
For flexible employees with single-day requests,
hr.leave._get_durationssearches public holidays directly instead of using_leave_intervals_batch, so the State filter added by this module is never applied.What
Recompute the duration of those leaves using only global holidays and the local holidays of the employee's work address State. Other leaves keep the upstream computation.
How to test
1. Create a local Public Holiday for State A.
2. Set an employee's Work Address in State B and assign a working schedule with flexible hours.
3. Request a single-day Time Off on that holiday: it must count 1 day (before: 0 days).
4. Move the employee's Work Address to State A: the same request counts 0 days.
@moduon MT-17315
Assisted-by: Claude Code + Claude Opus 5.5
🤖 Generated with Claude Code