Skip to content

0004 RDATE and THISANDFUTURE live evidence

  • Status: research decision, accepted 2026-12-04.
  • Issue: #134.
  • Follow-up to: decision 0001, which kept RDATE and ranged RECURRENCE-ID unsupported until live Apple evidence existed.
  • Scope: Calendar only. Contacts and Mail are out of scope.
  • Decision owner: maintainers.

Keep the current fail-closed rejection of RDATE and of RECURRENCE-ID;RANGE=THISANDFUTURE. Take three separate no-go decisions:

Capability Decision Decisive evidence
A. RDATE read expansion No-go The server time-range filter misses RDATE and range instances (rows R3, R4, R6, T1). A search can then report a complete-looking result with missing events.
B. Ranged RECURRENCE-ID read interpretation No-go The server expansion of a ranged override contradicts RFC 5545 section 3.8.4.4 (rows T1, T2, T3).
C. Any new write operation for these forms No-go No typed input model exists, and the provider’s own expansion of the stored object is not RFC-consistent. A write would be an unverified full-object re-PUT.

This record changes no production code, no tool schema, no argument, and no limit. It replaces the Apple-unverified statements of decision 0001 with measured responses. The evidence itself is in the probe record.

Evidence Source Label
Stored shapes, server filter results, server expansion, ETags Probe run on 2026-12-04 against the real iCloud CalDAV service, one disposable calendar per case, no attendees, no alarms Apple-verified (live, 2026-12-04)
Rejection of every stored shape on search, get, update, and delete, and the acceptance of a VTIMEZONE RDATE internal/icloud/recurrence_live_evidence_test.go Synthetic (tests)
Recurrence set semantics, RDATE value forms, range semantics, VTIMEZONE sub-components RFC 5545 sections 3.3.9, 3.6.5, 3.8.4.4, 3.8.5.1, 3.8.5.2 RFC-defined
How Apple Calendar or iPhone authors a “this and future” edit No live UI or EventKit evidence was collected UNVERIFIED
Rejection of a CalDAV prop-filter on this service Comment at internal/icloud/client.go:1136-1137, observed 2026-07-12; not retested by this probe Apple-verified earlier, not retested

The probe used a disposable calendar per case (icloud-mcp-test-134-*), a PUT with If-None-Match: *, a GET, a narrow time-range REPORT without expansion, a REPORT with <C:expand> over 2027-03-01 to 2027-05-01, a second GET for ETag stability, and a DELETE. Every calendar was deleted and a PROPFIND confirmed 404. The record carries no account identifier, no DSID, and no host name.

Row Stored shape Provider response Label
R1 RRULE FREQ=WEEKLY;COUNT=4 with RDATE;TZID=Europe/Paris outside the RRULE span, across the spring DST change PUT 201, stored verbatim, one REPORT hit, expand 207 with six instances at the correct wall clock Apple-verified (live, 2026-12-04)
R2 All-day RRULE with RDATE;VALUE=DATE PUT 201, stored verbatim, one REPORT hit, expand 207 with five distinct instances Apple-verified (live, 2026-12-04)
R3 RDATE;VALUE=PERIOD with an explicit end and a duration PUT 201, stored verbatim after unfolding (the provider folded the line), REPORT hit false, expand HTTP 500 Apple-verified (live, 2026-12-04)
R4 RDATE 20270311T090000Z that duplicates an RRULE instance, RDATEs 20270320T090000Z and 20270321T090000Z after the RRULE span, and an EXDATE on 20270320T090000Z PUT 201, stored verbatim, REPORT hit false for the 20270321 window, expand 207 with six instances: the duplicate is emitted once, the EXDATE removes 20270320, and 20270321 is expanded although the filter misses it Apple-verified (live, 2026-12-04)
R5 Two RDATE properties and no RRULE PUT 201, stored verbatim, REPORT hit true for an RDATE-only window, expand HTTP 500 Apple-verified (live, 2026-12-04)
R6 RDATE instance moved later by a RECURRENCE-ID override PUT 201, stored verbatim, REPORT hit false for the moved instance, expand HTTP 500 Apple-verified (live, 2026-12-04)
T1 RECURRENCE-ID;TZID;RANGE=THISANDFUTURE that moves the instance four hours later, series spanning DST PUT 201, stored verbatim, REPORT hit false for the shifted instance, expand 207: later instances keep 10:00 local, not 14:00 Apple-verified (live, 2026-12-04)
T2 All-day ranged override PUT 201, stored verbatim, REPORT hit true, expand 207: later instances keep the master DATE start Apple-verified (live, 2026-12-04)
T3 Ranged override plus a later single override PUT 201, stored verbatim, REPORT hit true, expand 207: later instances keep the master time, the later single override applies Apple-verified (live, 2026-12-04)
VTIMEZONE Minimal Europe/Paris VTIMEZONE in the request The provider replaced it with its own historical definition: X-LIC-LOCATION, sub-components from 1891, and many RDATE lines. The VEVENT was unchanged. Apple-verified (live, 2026-12-04)
Whole calendar All nine objects in one calendar, REPORT with <C:expand> HTTP 500 after the second object. One failing object breaks the whole REPORT. Apple-verified (live, 2026-12-04)
Rejection on all client paths The nine stored shapes protocol_error on search, get, update series, update occurrence, delete series, and delete occurrence. No PUT, no DELETE, no ETag change, no partial occurrence list. Synthetic (tests)
VTIMEZONE RDATE is not a VEVENT RDATE Historical VTIMEZONE with one RDATE per sub-component Accepted, expanded on the wall clock, and preserved by a series re-PUT. Synthetic (tests)
RDATE and range authoring from an Apple client None No EventKit or GUI evidence UNVERIFIED
RFC semantics of the recurrence set and of a range RFC 5545 RDATE joins the recurrence set, EXDATE wins, and a range shifts later instances by the start delta and applies the duration delta RFC-defined

Three measured facts decide this.

  1. Local expansion cannot guarantee a complete result. The client finds candidate objects with a server time-range filter (internal/icloud/client.go:112-121). That filter missed an RDATE instance after the RRULE span (R4), a PERIOD instance (R3), and an RDATE instance moved by an override (R6). It found an RDATE-only object (R5). The client cannot ask the server for RDATE-bearing objects instead: iCloud rejects a prop-filter (internal/icloud/client.go:1136-1137), so the time-range filter is the only available selector. A local expansion would therefore return a shorter list that looks complete.
  2. Server-side expansion is not an alternative. The provider returns HTTP 500 for PERIOD, RDATE-only, and RDATE-with-override objects (R3, R5, R6), and one such object fails the whole REPORT.
  3. Storage is not the obstacle. The provider stored every RDATE form verbatim (R1 to R6; R3 only after unfolding). The blocker is the filter and the expansion, not the values.

Row R5 is the one result that points the other way: the provider does index an RDATE-only instance. It does not extend to a series with an RRULE (R4), so it is not enough for a complete read.

A partial read is worse than a rejection here. A search that omits an instance makes free time look free and hides an event, and no error would signal it.

Reopen only with evidence of all of these:

  • A server-side selector that returns every RDATE instance of a window, or a proven complete enumeration path that is bounded and paginated.
  • A recorded provider response for PERIOD start and duration semantics, or an explicit decision to reject PERIOD while accepting DATE and DATE-TIME.
  • A test that fails when the filter misses an instance, so the completeness gap cannot come back silently.

B. Ranged RECURRENCE-ID read interpretation: no-go

Section titled “B. Ranged RECURRENCE-ID read interpretation: no-go”

RFC 5545 section 3.8.4.4 says a ranged override applies its start and duration changes to the master for that instance and for all later instances. The provider does not do that in its expansion:

  • T1 moves the range instance from 10:00 to 14:00. Later instances stay at 10:00.
  • T2 keeps the master DATE start for later instances.
  • T3 keeps 09:00Z for later instances and applies the later single override at 15:00Z.

The provider therefore treats RANGE=THISANDFUTURE as a single-instance override. Two clients would show different times for the same stored object: an RFC implementation shows the shift, the provider shows the master time. The client also cannot see the shifted instance through the time-range filter (T1 narrow window returned no hit), so a range application would find nothing.

The missing input is decisive and not available here: how Apple Calendar or iPhone authors the edit. No UI or EventKit evidence was collected, so the stored shape may not be what an Apple client produces at all. This row stays UNVERIFIED.

Reopen only with evidence of all of these:

  • Recorded Apple client behavior for a “this and future” edit on a disposable calendar: does the client write RANGE, split the series, or write single overrides?
  • A provider expansion that matches the chosen interpretation, or a documented decision to follow the provider instead of the RFC and to state that in the public compatibility matrix.
  • Confirmation that the time-range filter returns the shifted instances.
  • The client has no typed input for RDATE or for a range. A write feature needs new schema, new validation, PERIOD duration rules, and new occurrence identity rules. None of that exists.
  • An update or delete of an existing object is a full-object re-PUT with If-Match (internal/icloud/client.go:340-482). On these objects the client would rewrite and return a resource whose own expansion it does not model. The removal proof of the two guards shows this directly. Without the guards, the series-scoped update and delete in TestLiveProbe20261204WritePathsFailClosed complete the mutation (a PUT or a DELETE) on every stored shape, so the guards are the only barrier on those paths. The occurrence-scoped paths fail later, at occurrence resolution or at VEVENT identity validation (R6), which is not a designed protection.
  • The provider’s expansion of a stored range contradicts the RFC (T1, T2, T3), so a writer cannot predict what a reader will later show.
  • Scheduled-event approval stays a separate gate (decision 0001, candidate C). It does not unblock this item.

Reopen only with evidence of all of these:

  • A typed input model for RDATE and range writes, with occurrence identity and duration rules.
  • A recorded provider PUT that keeps the occurrence identity that the provider later expands, for DATE, DATE-TIME, and PERIOD forms.
  • Approval and ETag rules for the new operation, and a live test on a disposable calendar with no attendees.
  • validateRemoteCalendar rejects any VEVENT with an RDATE property (internal/icloud/ical.go:745-747) and any RECURRENCE-ID with a non-empty RANGE parameter (internal/icloud/ical.go:748-752). The check runs before value inspection, so DATE, DATE-TIME, and PERIOD forms share one rejection.
  • The check runs on the GET path (internal/icloud/dav.go:411), on the REPORT path (internal/icloud/client.go:1288), and in parseCalendarObject (internal/icloud/ical.go:983-991). Search, get, update, and delete all reach it before any PUT or DELETE, because findEventByUID (internal/icloud/client.go:1135) starts with a GET.
  • An RDATE inside a VTIMEZONE sub-component is legal (RFC 5545 section 3.6.5) and is not rejected. The check is limited to VEVENT components. iCloud adds RDATE lines to every stored VTIMEZONE, so a check on any component would make every zoned event unreadable. Tests prove the current behavior, and a series re-PUT keeps the stored VTIMEZONE.
  • The 2,000 occurrence cap and the 100,000 advance cap stay (internal/icloud/recurrence.go:15-20). A series that exceeds the cap still rejects when it carries an RDATE or a ranged override, so the cap can never turn a rejection into a partial result.
  1. How Apple Calendar and iPhone author a “this and future” edit stays UNVERIFIED. A Calendar privacy grant on the test Mac is the missing input.
  2. Whether the provider displays a stored range as shifted in its own clients was not observed. Only the CalDAV expansion was measured.
  3. Whether a PUT that keeps an RDATE or a range causes an attendee notification was not observed. No fixture carried an attendee.
  4. The first DELETE of R1 returned 503 and a retry succeeded. The probe did not study that transient error, and the client never replays a mutation.
  5. The prop-filter rejection is carried over from an earlier observation and was not retested on 2026-12-04.
  • RFC 5545, sections 3.3.9, 3.6.5, 3.8.4.4, 3.8.5.1, and 3.8.5.2.
  • RFC 4791, sections 7.3, 7.8, and 9.6.
  • Decision 0001, Recurrence semantics.
  • Probe record 0004.
  • internal/icloud/ical.go, internal/icloud/client.go, internal/icloud/dav.go, internal/icloud/recurrence.go, and internal/icloud/recurrence_live_evidence_test.go.