FA-77151 / Calendar recurrence rules / Open access
Monthly day 29-31 with OMIT/BACKWARD/FORWARD skip policy: forward target · case 01
FORWARD from February 31 lands on March 3 instead of March 1.
ROOT CAUSE
The forward target overflows by the number of missing days, like lenient date arithmetic.
VERIFIED REPAIR
At the forward target decision use `dt.date(y, m, dim) + dt.timedelta(days=1)`, leaving the other decision sites of the model unchanged.
Unsuccessful approach: The partial repair `dt.date(y, m, dim) + dt.timedelta(days=monthday - dim - 1)` subtracts one from the overflow, which is only right for a single missing day.
Case contract
FREQ=MONTHLY on a fixed monthday from the dtstart month. When the day does not exist in a month, skip decides: OMIT (also the default when skip is None) drops the month, BACKWARD uses the last day of the month, FORWARD uses the first day of the following month. February has 29 days in leap years. Instances before dtstart are dropped. Return the first count ISO dates.
Why this case matters
Recurring calendar series are expanded into concrete instances for display, reminders and conflict checks.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import datetime as dt
import calendar
N = 1
observations = []
def solve(dtstart, monthday, skip, count):
start = dt.date.fromisoformat(dtstart)
out = []
for k in range(240):
mi = start.month - 1 + k
y, m = start.year + mi // 12, mi % 12 + 1
dim = calendar.monthrange(y, m)[1]
if monthday <= dim:
d = dt.date(y, m, monthday)
elif skip in (None, 'OMIT'):
continue
elif skip == 'BACKWARD':
d = dt.date(y, m, dim)
else:
d = dt.date(y, m, dim) + dt.timedelta(days=monthday - dim)
if d < start:
continue
out.append(d.isoformat())
if len(out) >= count:
break
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01']),
('default omits', ['2023-01-30', 30, None, 3], ['2023-01-30', '2023-03-30', '2023-04-30']),
('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30'])],
[('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('century common february', ['2100-01-29', 29, 'OMIT', 3], ['2100-01-29', '2100-03-29', '2100-04-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])]]
for label, args, expected in fixtures[N-1]:
check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: 31st forward in common year | ['2023-01-31', '2023-03-03', '2023-03-31', '2023-05-01'] | ['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'] | Failed |
| default omits | ['2023-01-30', '2023-03-30', '2023-04-30'] | ['2023-01-30', '2023-03-30', '2023-04-30'] | Passed |
| explicit omit | ['2023-01-31', '2023-03-31', '2023-05-31'] | ['2023-01-31', '2023-03-31', '2023-05-31'] | Passed |
| backward from 31st | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | Passed |
| leap february 29 | ['2024-01-29', '2024-02-29', '2024-03-29'] | ['2024-01-29', '2024-02-29', '2024-03-29'] | Passed |
| common february 29 backward | ['2023-01-29', '2023-02-28', '2023-03-29'] | ['2023-01-29', '2023-02-28', '2023-03-29'] | Passed |
| forward 30th in february leap | ['2024-01-30', '2024-03-01', '2024-03-30'] | ['2024-01-30', '2024-03-01', '2024-03-30'] | Passed |
SHA-256 / 36013e15087c170476c21298a85a54100e62a1b976fef47f22ca3d7c5c334084
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import datetime as dt
import calendar
N = 1
observations = []
def solve(dtstart, monthday, skip, count):
start = dt.date.fromisoformat(dtstart)
out = []
for k in range(240):
mi = start.month - 1 + k
y, m = start.year + mi // 12, mi % 12 + 1
dim = calendar.monthrange(y, m)[1]
if monthday <= dim:
d = dt.date(y, m, monthday)
elif skip in (None, 'OMIT'):
continue
elif skip == 'BACKWARD':
d = dt.date(y, m, dim)
else:
d = dt.date(y, m, dim) + dt.timedelta(days=monthday - dim - 1)
if d < start:
continue
out.append(d.isoformat())
if len(out) >= count:
break
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01']),
('default omits', ['2023-01-30', 30, None, 3], ['2023-01-30', '2023-03-30', '2023-04-30']),
('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30'])],
[('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('century common february', ['2100-01-29', 29, 'OMIT', 3], ['2100-01-29', '2100-03-29', '2100-04-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])]]
for label, args, expected in fixtures[N-1]:
check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: 31st forward in common year | ['2023-01-31', '2023-03-02', '2023-03-31', '2023-04-30'] | ['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'] | Failed |
| default omits | ['2023-01-30', '2023-03-30', '2023-04-30'] | ['2023-01-30', '2023-03-30', '2023-04-30'] | Passed |
| explicit omit | ['2023-01-31', '2023-03-31', '2023-05-31'] | ['2023-01-31', '2023-03-31', '2023-05-31'] | Passed |
| backward from 31st | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | Passed |
| leap february 29 | ['2024-01-29', '2024-02-29', '2024-03-29'] | ['2024-01-29', '2024-02-29', '2024-03-29'] | Passed |
| common february 29 backward | ['2023-01-29', '2023-02-28', '2023-03-29'] | ['2023-01-29', '2023-02-28', '2023-03-29'] | Passed |
| forward 30th in february leap | ['2024-01-30', '2024-02-29', '2024-03-30'] | ['2024-01-30', '2024-03-01', '2024-03-30'] | Failed |
SHA-256 / 7f27fc0d8627c599d43c7a57fd62009efd67dc003dd67348df5cc65660f069c7
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
import datetime as dt
import calendar
N = 1
observations = []
def solve(dtstart, monthday, skip, count):
start = dt.date.fromisoformat(dtstart)
out = []
for k in range(240):
mi = start.month - 1 + k
y, m = start.year + mi // 12, mi % 12 + 1
dim = calendar.monthrange(y, m)[1]
if monthday <= dim:
d = dt.date(y, m, monthday)
elif skip in (None, 'OMIT'):
continue
elif skip == 'BACKWARD':
d = dt.date(y, m, dim)
else:
d = dt.date(y, m, dim) + dt.timedelta(days=1)
if d < start:
continue
out.append(d.isoformat())
if len(out) >= count:
break
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01']),
('default omits', ['2023-01-30', 30, None, 3], ['2023-01-30', '2023-03-30', '2023-04-30']),
('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30'])],
[('explicit omit', ['2023-01-31', 31, 'OMIT', 3], ['2023-01-31', '2023-03-31', '2023-05-31']),
('backward from 31st',
['2024-03-31', 31, 'BACKWARD', 4],
['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30']),
('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('leap february 29', ['2024-01-29', 29, 'BACKWARD', 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('common february 29 backward',
['2023-01-29', 29, 'BACKWARD', 3],
['2023-01-29', '2023-02-28', '2023-03-29']),
('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 30th in february leap',
['2024-01-30', 30, 'FORWARD', 3],
['2024-01-30', '2024-03-01', '2024-03-30']),
('backward 30th in february',
['2023-01-30', 30, 'BACKWARD', 3],
['2023-01-30', '2023-02-28', '2023-03-30']),
('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])],
[('forward 29th in common february',
['2023-01-29', 29, 'FORWARD', 3],
['2023-01-29', '2023-03-01', '2023-03-29']),
('leap day omit', ['2024-01-29', 29, None, 3], ['2024-01-29', '2024-02-29', '2024-03-29']),
('forward from april 31', ['2024-04-15', 31, 'FORWARD', 3], ['2024-05-01', '2024-05-31', '2024-07-01']),
('backward 31st leap february',
['2024-01-31', 31, 'BACKWARD', 3],
['2024-01-31', '2024-02-29', '2024-03-31']),
('century leap day', ['2000-01-29', 29, 'OMIT', 3], ['2000-01-29', '2000-02-29', '2000-03-29']),
('century common february', ['2100-01-29', 29, 'OMIT', 3], ['2100-01-29', '2100-03-29', '2100-04-29']),
('regression: 31st forward in common year',
['2023-01-31', 31, 'FORWARD', 4],
['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'])]]
for label, args, expected in fixtures[N-1]:
check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: 31st forward in common year | ['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'] | ['2023-01-31', '2023-03-01', '2023-03-31', '2023-05-01'] | Passed |
| default omits | ['2023-01-30', '2023-03-30', '2023-04-30'] | ['2023-01-30', '2023-03-30', '2023-04-30'] | Passed |
| explicit omit | ['2023-01-31', '2023-03-31', '2023-05-31'] | ['2023-01-31', '2023-03-31', '2023-05-31'] | Passed |
| backward from 31st | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | ['2024-03-31', '2024-04-30', '2024-05-31', '2024-06-30'] | Passed |
| leap february 29 | ['2024-01-29', '2024-02-29', '2024-03-29'] | ['2024-01-29', '2024-02-29', '2024-03-29'] | Passed |
| common february 29 backward | ['2023-01-29', '2023-02-28', '2023-03-29'] | ['2023-01-29', '2023-02-28', '2023-03-29'] | Passed |
| forward 30th in february leap | ['2024-01-30', '2024-03-01', '2024-03-30'] | ['2024-01-30', '2024-03-01', '2024-03-30'] | Passed |
SHA-256 / e9e9f0577384742275ff78be0bbde6049ffb3dd8886a32229433fec22ca6725a
Verification & scope
Stipulated, bounded recurrence-expansion model evaluated offline on explicit fixtures; it is not a complete iCalendar implementation and makes no claim of standards conformance. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-29T14:49:22.951390+00:00.
Case digest / 39a218b7b06ca1af90bde1558e8a8c06e0f7b498aa812ff363b89542ba613a2d