FA-76997 / Calendar recurrence rules / Member archive
Applying moved and cancelled instance overrides in a window query: orphan guard · case 02
An override for a date that is not an instance adds a phantom occurrence.
Case contract
A daily-interval series of count instances. overrides is an ordered list of [original_date, new_date] where new_date None cancels; for repeated originals the last override wins; overrides whose original is not a series instance are ignored. Return [original, actual] pairs for instances whose actual date lies in [window_start, window_end], sorted by actual then original date.
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 |
|---|---|---|---|
| orphan move | [["2024-01-01", "2024-01-01"], ["2024-01-03", "2024-01-03"], ["2024-01-02", "2024-01-04"], ["2024-01-05", "2024-01-05"], ["2024-01-07", "2024-01-07"], ["2024-01-09", "2024-01-09"]] | [["2024-01-01", "2024-01-01"], ["2024-01-03", "2024-01-03"], ["2024-01-05", "2024-01-05"], ["2024-01-07", "2024-01-07"], ["2024-01-09", "2024-01-09"]] | 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 ↗