FA-77015 / Calendar recurrence rules / Member archive
Splitting a series for a this-and-following edit: tail start · case 05
The new tail series begins on a date that was never an occurrence.
Case contract
A daily-interval series (dtstart, interval, and either count or until). Editing from 0-based occurrence k splits it: the head keeps occurrences 0..k-1 (count k, or until = its last retained occurrence date) and the tail starts at the original date of occurrence k with new_interval and the remaining count (or the original until). k <= 0 makes the head None; a split at or past the end makes the tail None. Return {"head": [dtstart, count, until] or None, "tail": [start, interval, count, until] or None}.
Why this case matters
Recurring calendar series are expanded into concrete instances for display, reminders and conflict checks.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| until split mid | {"head": ["2024-05-10", null, "2024-05-30"], "tail": ["2024-05-22", 2, null, "2024-07-01"]} | {"head": ["2024-05-10", null, "2024-05-30"], "tail": ["2024-06-03", 2, null, "2024-07-01"]} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗