← Back to Pull requests

Exclude moved occurrences on a date EXDATE of a date-time series #299

Open
unknown opened this pull request with 181 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 27, 2026 15:42 UTC
Author

For a date-time series, a date-valued EXDATE removes rule occurrences on that day (the rule loop in Series.between and has_recurrence_id_in_rrule both check convert_to_date(start) in check_exdates_date). The modifications loop added for #163 only checks check_exdates_datetime, so an override whose RECURRENCE-ID falls on a date EXDATE comes back, while the same exclusion written as a date-time EXDATE hides it:

daily 10:00 UTC series, occurrence of Jan 3 moved to 15:00

EXDATE:20240103T100000Z       at(2024-01-03) -> []
EXDATE;VALUE=DATE:20240103    at(2024-01-03) -> before: [moved 2024-01-03T15:00]   after: []

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 with EXDATE;VALUE=DATE:20240103 drops 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.ics has 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.

Diff: 181 lines (+135 / -46) across 2 files Reviewer: youdie006 Review duration: 48865m
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
0.43
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: 35%
44%
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.311
Real PR Conversation Timeline
1 comments
"Review active on #299"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.7% reviewed
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: 42.6% (MEDIUM) · Higher = larger blast radius
42.6%
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: 44.7% · Lower = rushed or shallow review
44.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: 23.5% · Safe to merge
23.5%