{"abstract":"An instance moved out of the window is still returned, and one moved into it is missing.","category":"Calendar recurrence rules","checks":7,"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.","contract_signature":"dtstart, interval, count, overrides, window_start, window_end","evaluation_group":"w2-calendar-recurrence-rules-recurrence-id-overrides","failed_approach":"The partial repair `ws <= o <= we or ws <= a <= we` accepts either date, so instances moved out of the window still appear.","family":"w2-calendar-recurrence-rules-recurrence-id-overrides-window-test","id":"FA-77006","implementations":{"attempt":{"sha256":"e14738b7f9cee5096b07a320b5c167137ca5ca481d1f662922b8c024f07123b1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport datetime as dt\nimport calendar\nN = 1\nobservations = []\ndef solve(dtstart, interval, count, overrides, window_start, window_end):\n    start = dt.date.fromisoformat(dtstart)\n    ws = dt.date.fromisoformat(window_start)\n    we = dt.date.fromisoformat(window_end)\n    originals = [start + dt.timedelta(days=k * interval) for k in range(count)]\n    origset = set(originals)\n    actual = {o: o for o in originals}\n    for orig, new in overrides:\n        o = dt.date.fromisoformat(orig)\n        if o not in origset:\n            continue\n        actual[o] = None if new is None else dt.date.fromisoformat(new)\n    rows = [[o.isoformat(), a.isoformat()] for o, a in actual.items() if a is not None and ws <= o <= we or ws <= a <= we]\n    return sorted(rows, key=lambda r: (r[1], r[0]))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']])],\n [('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']])],\n [('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']])],\n [('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']])],\n [('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"05ee162bf0bdcc827d987a633d42f83179c567538e3b4293c804bc92b0e9a5fc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport datetime as dt\nimport calendar\nN = 1\nobservations = []\ndef solve(dtstart, interval, count, overrides, window_start, window_end):\n    start = dt.date.fromisoformat(dtstart)\n    ws = dt.date.fromisoformat(window_start)\n    we = dt.date.fromisoformat(window_end)\n    originals = [start + dt.timedelta(days=k * interval) for k in range(count)]\n    origset = set(originals)\n    actual = {o: o for o in originals}\n    for orig, new in overrides:\n        o = dt.date.fromisoformat(orig)\n        if o not in origset:\n            continue\n        actual[o] = None if new is None else dt.date.fromisoformat(new)\n    rows = [[o.isoformat(), a.isoformat()] for o, a in actual.items() if a is not None and ws <= o <= we]\n    return sorted(rows, key=lambda r: (r[1], r[0]))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']])],\n [('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']])],\n [('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']]),\n  ('cancel then move',\n   ['2024-02-01', 1, 3, [['2024-02-02', None], ['2024-02-02', '2024-02-05']], '2024-02-01', '2024-02-05'],\n   [['2024-02-01', '2024-02-01'], ['2024-02-03', '2024-02-03'], ['2024-02-02', '2024-02-05']]),\n  ('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']])],\n [('restated original date',\n   ['2024-03-01', 7, 3, [['2024-03-08', '2024-03-08']], '2024-03-01', '2024-03-31'],\n   [['2024-03-01', '2024-03-01'], ['2024-03-08', '2024-03-08'], ['2024-03-15', '2024-03-15']]),\n  ('two moved onto same day',\n   ['2024-04-01',\n    1,\n    5,\n    [['2024-04-04', '2024-04-02'], ['2024-04-05', '2024-04-02']],\n    '2024-04-02',\n    '2024-04-03'],\n   [['2024-04-02', '2024-04-02'],\n    ['2024-04-04', '2024-04-02'],\n    ['2024-04-05', '2024-04-02'],\n    ['2024-04-03', '2024-04-03']]),\n  ('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']])],\n [('orphan after series end',\n   ['2024-05-01', 1, 3, [['2024-05-10', '2024-05-02']], '2024-05-01', '2024-05-10'],\n   [['2024-05-01', '2024-05-01'], ['2024-05-02', '2024-05-02'], ['2024-05-03', '2024-05-03']]),\n  ('no overrides',\n   ['2024-06-01', 3, 3, [], '2024-06-02', '2024-06-07'],\n   [['2024-06-04', '2024-06-04'], ['2024-06-07', '2024-06-07']]),\n  ('regression: moved into window',\n   ['2024-01-01', 1, 10, [['2024-01-02', '2024-01-06']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'],\n    ['2024-01-02', '2024-01-06'],\n    ['2024-01-06', '2024-01-06'],\n    ['2024-01-07', '2024-01-07']]),\n  ('moved out of window',\n   ['2024-01-01', 1, 10, [['2024-01-06', '2024-01-20']], '2024-01-05', '2024-01-07'],\n   [['2024-01-05', '2024-01-05'], ['2024-01-07', '2024-01-07']]),\n  ('orphan move',\n   ['2024-01-01', 2, 5, [['2024-01-02', '2024-01-04']], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'],\n    ['2024-01-03', '2024-01-03'],\n    ['2024-01-05', '2024-01-05'],\n    ['2024-01-07', '2024-01-07'],\n    ['2024-01-09', '2024-01-09']]),\n  ('orphan cancel',\n   ['2024-01-01', 2, 3, [['2024-01-04', None]], '2024-01-01', '2024-01-09'],\n   [['2024-01-01', '2024-01-01'], ['2024-01-03', '2024-01-03'], ['2024-01-05', '2024-01-05']]),\n  ('last override wins',\n   ['2024-02-01',\n    1,\n    4,\n    [['2024-02-02', '2024-02-10'], ['2024-02-02', '2024-02-03']],\n    '2024-02-01',\n    '2024-02-10'],\n   [['2024-02-01', '2024-02-01'],\n    ['2024-02-02', '2024-02-03'],\n    ['2024-02-03', '2024-02-03'],\n    ['2024-02-04', '2024-02-04']])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-calendar-recurrence-rules-recurrence-id-overrides-window-test","generated_at":"2026-09-29T14:49:21.629076+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Recurring calendar series are expanded into concrete instances for display, reminders and conflict checks.","root_cause":"The window is tested against the original date instead of the actual date.","sha256":"2cff27aff3491fa4f34a19e898fc27adf278b820884e30fcce4436306eb7026d","title":"Applying moved and cancelled instance overrides in a window query: window test · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":45.689,"exit_code":1,"observations":[{"actual":[["2024-01-05","2024-01-05"],["2024-01-02","2024-01-06"],["2024-01-06","2024-01-06"],["2024-01-07","2024-01-07"]],"check":"regression: moved into window","expected":[["2024-01-05","2024-01-05"],["2024-01-02","2024-01-06"],["2024-01-06","2024-01-06"],["2024-01-07","2024-01-07"]],"passed":true},{"actual":[["2024-01-05","2024-01-05"],["2024-01-07","2024-01-07"],["2024-01-06","2024-01-20"]],"check":"moved out of window","expected":[["2024-01-05","2024-01-05"],["2024-01-07","2024-01-07"]],"passed":false},{"actual":[["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"]],"check":"orphan move","expected":[["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"]],"passed":true},{"actual":[["2024-01-01","2024-01-01"],["2024-01-03","2024-01-03"],["2024-01-05","2024-01-05"]],"check":"orphan cancel","expected":[["2024-01-01","2024-01-01"],["2024-01-03","2024-01-03"],["2024-01-05","2024-01-05"]],"passed":true},{"actual":[["2024-02-01","2024-02-01"],["2024-02-02","2024-02-03"],["2024-02-03","2024-02-03"],["2024-02-04","2024-02-04"]],"check":"last override wins","expected":[["2024-02-01","2024-02-01"],["2024-02-02","2024-02-03"],["2024-02-03","2024-02-03"],["2024-02-04","2024-02-04"]],"passed":true},{"actual":[["2024-02-01","2024-02-01"],["2024-02-03","2024-02-03"],["2024-02-02","2024-02-05"]],"check":"cancel then move","expected":[["2024-02-01","2024-02-01"],["2024-02-03","2024-02-03"],["2024-02-02","2024-02-05"]],"passed":true},{"actual":[["2024-03-01","2024-03-01"],["2024-03-08","2024-03-08"],["2024-03-15","2024-03-15"]],"check":"restated original date","expected":[["2024-03-01","2024-03-01"],["2024-03-08","2024-03-08"],["2024-03-15","2024-03-15"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: moved into window\", \"actual\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-02\", \"2024-01-06\"], [\"2024-01-06\", \"2024-01-06\"], [\"2024-01-07\", \"2024-01-07\"]], \"expected\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-02\", \"2024-01-06\"], [\"2024-01-06\", \"2024-01-06\"], [\"2024-01-07\", \"2024-01-07\"]], \"passed\": true}, {\"check\": \"moved out of window\", \"actual\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-07\", \"2024-01-07\"], [\"2024-01-06\", \"2024-01-20\"]], \"expected\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-07\", \"2024-01-07\"]], \"passed\": false}, {\"check\": \"orphan move\", \"actual\": [[\"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\"]], \"expected\": [[\"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\"]], \"passed\": true}, {\"check\": \"orphan cancel\", \"actual\": [[\"2024-01-01\", \"2024-01-01\"], [\"2024-01-03\", \"2024-01-03\"], [\"2024-01-05\", \"2024-01-05\"]], \"expected\": [[\"2024-01-01\", \"2024-01-01\"], [\"2024-01-03\", \"2024-01-03\"], [\"2024-01-05\", \"2024-01-05\"]], \"passed\": true}, {\"check\": \"last override wins\", \"actual\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-02\", \"2024-02-03\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-04\", \"2024-02-04\"]], \"expected\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-02\", \"2024-02-03\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-04\", \"2024-02-04\"]], \"passed\": true}, {\"check\": \"cancel then move\", \"actual\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-02\", \"2024-02-05\"]], \"expected\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-02\", \"2024-02-05\"]], \"passed\": true}, {\"check\": \"restated original date\", \"actual\": [[\"2024-03-01\", \"2024-03-01\"], [\"2024-03-08\", \"2024-03-08\"], [\"2024-03-15\", \"2024-03-15\"]], \"expected\": [[\"2024-03-01\", \"2024-03-01\"], [\"2024-03-08\", \"2024-03-08\"], [\"2024-03-15\", \"2024-03-15\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.627,"exit_code":1,"observations":[{"actual":[["2024-01-05","2024-01-05"],["2024-01-06","2024-01-06"],["2024-01-07","2024-01-07"]],"check":"regression: moved into window","expected":[["2024-01-05","2024-01-05"],["2024-01-02","2024-01-06"],["2024-01-06","2024-01-06"],["2024-01-07","2024-01-07"]],"passed":false},{"actual":[["2024-01-05","2024-01-05"],["2024-01-07","2024-01-07"],["2024-01-06","2024-01-20"]],"check":"moved out of window","expected":[["2024-01-05","2024-01-05"],["2024-01-07","2024-01-07"]],"passed":false},{"actual":[["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"]],"check":"orphan move","expected":[["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"]],"passed":true},{"actual":[["2024-01-01","2024-01-01"],["2024-01-03","2024-01-03"],["2024-01-05","2024-01-05"]],"check":"orphan cancel","expected":[["2024-01-01","2024-01-01"],["2024-01-03","2024-01-03"],["2024-01-05","2024-01-05"]],"passed":true},{"actual":[["2024-02-01","2024-02-01"],["2024-02-02","2024-02-03"],["2024-02-03","2024-02-03"],["2024-02-04","2024-02-04"]],"check":"last override wins","expected":[["2024-02-01","2024-02-01"],["2024-02-02","2024-02-03"],["2024-02-03","2024-02-03"],["2024-02-04","2024-02-04"]],"passed":true},{"actual":[["2024-02-01","2024-02-01"],["2024-02-03","2024-02-03"],["2024-02-02","2024-02-05"]],"check":"cancel then move","expected":[["2024-02-01","2024-02-01"],["2024-02-03","2024-02-03"],["2024-02-02","2024-02-05"]],"passed":true},{"actual":[["2024-03-01","2024-03-01"],["2024-03-08","2024-03-08"],["2024-03-15","2024-03-15"]],"check":"restated original date","expected":[["2024-03-01","2024-03-01"],["2024-03-08","2024-03-08"],["2024-03-15","2024-03-15"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: moved into window\", \"actual\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-06\", \"2024-01-06\"], [\"2024-01-07\", \"2024-01-07\"]], \"expected\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-02\", \"2024-01-06\"], [\"2024-01-06\", \"2024-01-06\"], [\"2024-01-07\", \"2024-01-07\"]], \"passed\": false}, {\"check\": \"moved out of window\", \"actual\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-07\", \"2024-01-07\"], [\"2024-01-06\", \"2024-01-20\"]], \"expected\": [[\"2024-01-05\", \"2024-01-05\"], [\"2024-01-07\", \"2024-01-07\"]], \"passed\": false}, {\"check\": \"orphan move\", \"actual\": [[\"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\"]], \"expected\": [[\"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\"]], \"passed\": true}, {\"check\": \"orphan cancel\", \"actual\": [[\"2024-01-01\", \"2024-01-01\"], [\"2024-01-03\", \"2024-01-03\"], [\"2024-01-05\", \"2024-01-05\"]], \"expected\": [[\"2024-01-01\", \"2024-01-01\"], [\"2024-01-03\", \"2024-01-03\"], [\"2024-01-05\", \"2024-01-05\"]], \"passed\": true}, {\"check\": \"last override wins\", \"actual\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-02\", \"2024-02-03\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-04\", \"2024-02-04\"]], \"expected\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-02\", \"2024-02-03\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-04\", \"2024-02-04\"]], \"passed\": true}, {\"check\": \"cancel then move\", \"actual\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-02\", \"2024-02-05\"]], \"expected\": [[\"2024-02-01\", \"2024-02-01\"], [\"2024-02-03\", \"2024-02-03\"], [\"2024-02-02\", \"2024-02-05\"]], \"passed\": true}, {\"check\": \"restated original date\", \"actual\": [[\"2024-03-01\", \"2024-03-01\"], [\"2024-03-08\", \"2024-03-08\"], [\"2024-03-15\", \"2024-03-15\"]], \"expected\": [[\"2024-03-01\", \"2024-03-01\"], [\"2024-03-08\", \"2024-03-08\"], [\"2024-03-15\", \"2024-03-15\"]], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}