Exclude moved occurrences on a date EXDATE of a date-time series #299
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 181 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.311
Real PR Conversation Timeline
1 comments
"Review active on #299"
general
weight: 0.35
youdie006
For a date-time series, a date-valued
EXDATEremoves rule occurrences on that day (the rule loop inSeries.betweenandhas_recurrence_id_in_rruleboth checkconvert_to_date(start) in check_exdates_date). The modifications loop added for #163 only checkscheck_exdates_datetime, so an override whoseRECURRENCE-IDfalls on a dateEXDATEcomes back, while the same exclusion written as a date-timeEXDATEhides it:This adds the date check to that loop, using the local recurrence id (
recurrence_ids[-1]), which is the same local time the rule loop converts. So a New York 21:00 series withEXDATE;VALUE=DATE:20240103drops the override of local Jan 3, as it already drops the plain occurrence. Overrides moved into an excluded day still show, since EXDATE matches recurrence ids.The new fixture
issue_163_date_exdate_datetime_series.icshas a UTC series, a New York series and a New York series whose EXDATE is on the next local day (that override must stay). The test fails without the change. The full test suite passes locally under TZ=UTC and Australia/Sydney, and ruff 0.11.9 (the pre-commit pin) is clean. Changelog line under Unreleased.Written with AI assistance (Claude); I have reviewed the change.