FAILURE MAP
← Case archive

FA-59291 / Payroll withholding rules / Open access

Employment tax deposit due date: semiweekly Wednesday group · case 01

Wednesday paydays show the deposit due the same day.

Verified by executionVariant 1 · 8 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

A Wednesday payday yields a zero-day offset instead of the following Wednesday.

VERIFIED REPAIR

Restore the contract rule at the semiweekly Wednesday group step: use `delta = (2 - wd) % 7 or 7`.

Unsuccessful approach: The attempt adds a full week to all Wed-Fri paydays, pushing Thursday and Friday deposits a week late.

Case contract

Input {pay_date, lookback_total, accumulated}. If accumulated liability is 100,000.00 or more, deposit the next weekday after pay date. Else if lookback liability is 50,000.00 or less, deposit monthly by the 15th of the following month. Else semiweekly: Wed/Thu/Fri paydays deposit the following Wednesday; Sat-Tue paydays the following Friday. Return [schedule, ISO due date].

Why this case matters

Deposit schedules depend on lookback liability and weekday of payment; a wrong due date means penalties.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
N = 1
observations = []
def solve(x):
    d = datetime.date(*x['pay_date'])
    if x['accumulated'] >= 10000000:
        nd = d + datetime.timedelta(days=1)
        while nd.weekday() >= 5:
            nd += datetime.timedelta(days=1)
        return ['next-day', nd.isoformat()]
    if x['lookback_total'] <= 5000000:
        y, m = (d.year + 1, 1) if d.month == 12 else (d.year, d.month + 1)
        return ['monthly', datetime.date(y, m, 15).isoformat()]
    wd = d.weekday()
    if wd in (2, 3, 4):
        delta = (2 - wd) % 7
    else:
        delta = (4 - wd) % 7
    return ['semiweekly', (d + datetime.timedelta(days=delta)).isoformat()]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'pay_date': [2025, 8, 20], 'lookback_total': 15073801, 'accumulated': 1953477}, ['semiweekly', '2025-08-27']), ('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('partial-repair probe', {'pay_date': [2025, 10, 17], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-22']), ('partial-repair probe', {'pay_date': [2026, 1, 15], 'lookback_total': 5000001, 'accumulated': 128367}, ['semiweekly', '2026-01-21']), ('normal control', {'pay_date': [2025, 7, 24], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2025, 7, 23], 'lookback_total': 4030366, 'accumulated': 7676976}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2026, 1, 10], 'lookback_total': 8559426, 'accumulated': 10000000}, ['next-day', '2026-01-12']), ('normal control', {'pay_date': [2025, 11, 30], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-12-15'])], [('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('partial-repair probe', {'pay_date': [2025, 1, 9], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-01-15']), ('partial-repair probe', {'pay_date': [2025, 9, 18], 'lookback_total': 5000001, 'accumulated': 171509}, ['semiweekly', '2025-09-24']), ('normal control', {'pay_date': [2025, 3, 12], 'lookback_total': 5000000, 'accumulated': 5561044}, ['monthly', '2025-04-15']), ('normal control', {'pay_date': [2025, 7, 6], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-07']), ('normal control', {'pay_date': [2026, 1, 1], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2026-01-02']), ('normal control', {'pay_date': [2025, 7, 12], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-14'])], [('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('partial-repair probe', {'pay_date': [2024, 12, 27], 'lookback_total': 14968828, 'accumulated': 48129}, ['semiweekly', '2025-01-01']), ('partial-repair probe', {'pay_date': [2025, 2, 28], 'lookback_total': 5934057, 'accumulated': 9999999}, ['semiweekly', '2025-03-05']), ('normal control', {'pay_date': [2024, 12, 14], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-01-15']), ('normal control', {'pay_date': [2025, 4, 9], 'lookback_total': 5000000, 'accumulated': 17594}, ['monthly', '2025-05-15']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 5000001, 'accumulated': 2892395}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2026, 1, 11], 'lookback_total': 5000000, 'accumulated': 106033}, ['monthly', '2026-02-15'])], [('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('partial-repair probe', {'pay_date': [2024, 12, 12], 'lookback_total': 5000001, 'accumulated': 126127}, ['semiweekly', '2024-12-18']), ('partial-repair probe', {'pay_date': [2025, 5, 9], 'lookback_total': 14538348, 'accumulated': 95659}, ['semiweekly', '2025-05-14']), ('normal control', {'pay_date': [2025, 12, 21], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2026-01-15']), ('normal control', {'pay_date': [2024, 12, 8], 'lookback_total': 7946403, 'accumulated': 200852}, ['semiweekly', '2024-12-13']), ('normal control', {'pay_date': [2025, 7, 15], 'lookback_total': 7386577, 'accumulated': 7242712}, ['semiweekly', '2025-07-18']), ('normal control', {'pay_date': [2025, 6, 8], 'lookback_total': 5000001, 'accumulated': 136142}, ['semiweekly', '2025-06-13'])], [('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('regression', {'pay_date': [2025, 4, 23], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2025, 4, 24], 'lookback_total': 5000001, 'accumulated': 59984}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2026, 2, 5], 'lookback_total': 13040571, 'accumulated': 9999999}, ['semiweekly', '2026-02-11']), ('normal control', {'pay_date': [2025, 2, 13], 'lookback_total': 2864521, 'accumulated': 10000000}, ['next-day', '2025-02-14']), ('normal control', {'pay_date': [2024, 12, 22], 'lookback_total': 5000001, 'accumulated': 10000000}, ['next-day', '2024-12-23']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 14733386, 'accumulated': 9999999}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2025, 10, 25], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-31'])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
    check("%s %d" % (label, i), 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 fixtureActualExpectedOutcome
regression 0['semiweekly', '2025-08-20']['semiweekly', '2025-08-27']Failed
regression 1['semiweekly', '2025-04-09']['semiweekly', '2025-04-16']Failed
partial-repair probe 2['semiweekly', '2025-10-22']['semiweekly', '2025-10-22']Passed
partial-repair probe 3['semiweekly', '2026-01-21']['semiweekly', '2026-01-21']Passed
normal control 4['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 5['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 6['next-day', '2026-01-12']['next-day', '2026-01-12']Passed
normal control 7['monthly', '2025-12-15']['monthly', '2025-12-15']Passed

SHA-256 / 7a2b9a63e45a06f5f5562776466f01e2b322a5d30109e9bfbe4133ce4fb48ba1

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
N = 1
observations = []
def solve(x):
    d = datetime.date(*x['pay_date'])
    if x['accumulated'] >= 10000000:
        nd = d + datetime.timedelta(days=1)
        while nd.weekday() >= 5:
            nd += datetime.timedelta(days=1)
        return ['next-day', nd.isoformat()]
    if x['lookback_total'] <= 5000000:
        y, m = (d.year + 1, 1) if d.month == 12 else (d.year, d.month + 1)
        return ['monthly', datetime.date(y, m, 15).isoformat()]
    wd = d.weekday()
    if wd in (2, 3, 4):
        delta = (2 - wd) % 7 + 7
    else:
        delta = (4 - wd) % 7
    return ['semiweekly', (d + datetime.timedelta(days=delta)).isoformat()]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'pay_date': [2025, 8, 20], 'lookback_total': 15073801, 'accumulated': 1953477}, ['semiweekly', '2025-08-27']), ('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('partial-repair probe', {'pay_date': [2025, 10, 17], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-22']), ('partial-repair probe', {'pay_date': [2026, 1, 15], 'lookback_total': 5000001, 'accumulated': 128367}, ['semiweekly', '2026-01-21']), ('normal control', {'pay_date': [2025, 7, 24], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2025, 7, 23], 'lookback_total': 4030366, 'accumulated': 7676976}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2026, 1, 10], 'lookback_total': 8559426, 'accumulated': 10000000}, ['next-day', '2026-01-12']), ('normal control', {'pay_date': [2025, 11, 30], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-12-15'])], [('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('partial-repair probe', {'pay_date': [2025, 1, 9], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-01-15']), ('partial-repair probe', {'pay_date': [2025, 9, 18], 'lookback_total': 5000001, 'accumulated': 171509}, ['semiweekly', '2025-09-24']), ('normal control', {'pay_date': [2025, 3, 12], 'lookback_total': 5000000, 'accumulated': 5561044}, ['monthly', '2025-04-15']), ('normal control', {'pay_date': [2025, 7, 6], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-07']), ('normal control', {'pay_date': [2026, 1, 1], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2026-01-02']), ('normal control', {'pay_date': [2025, 7, 12], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-14'])], [('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('partial-repair probe', {'pay_date': [2024, 12, 27], 'lookback_total': 14968828, 'accumulated': 48129}, ['semiweekly', '2025-01-01']), ('partial-repair probe', {'pay_date': [2025, 2, 28], 'lookback_total': 5934057, 'accumulated': 9999999}, ['semiweekly', '2025-03-05']), ('normal control', {'pay_date': [2024, 12, 14], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-01-15']), ('normal control', {'pay_date': [2025, 4, 9], 'lookback_total': 5000000, 'accumulated': 17594}, ['monthly', '2025-05-15']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 5000001, 'accumulated': 2892395}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2026, 1, 11], 'lookback_total': 5000000, 'accumulated': 106033}, ['monthly', '2026-02-15'])], [('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('partial-repair probe', {'pay_date': [2024, 12, 12], 'lookback_total': 5000001, 'accumulated': 126127}, ['semiweekly', '2024-12-18']), ('partial-repair probe', {'pay_date': [2025, 5, 9], 'lookback_total': 14538348, 'accumulated': 95659}, ['semiweekly', '2025-05-14']), ('normal control', {'pay_date': [2025, 12, 21], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2026-01-15']), ('normal control', {'pay_date': [2024, 12, 8], 'lookback_total': 7946403, 'accumulated': 200852}, ['semiweekly', '2024-12-13']), ('normal control', {'pay_date': [2025, 7, 15], 'lookback_total': 7386577, 'accumulated': 7242712}, ['semiweekly', '2025-07-18']), ('normal control', {'pay_date': [2025, 6, 8], 'lookback_total': 5000001, 'accumulated': 136142}, ['semiweekly', '2025-06-13'])], [('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('regression', {'pay_date': [2025, 4, 23], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2025, 4, 24], 'lookback_total': 5000001, 'accumulated': 59984}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2026, 2, 5], 'lookback_total': 13040571, 'accumulated': 9999999}, ['semiweekly', '2026-02-11']), ('normal control', {'pay_date': [2025, 2, 13], 'lookback_total': 2864521, 'accumulated': 10000000}, ['next-day', '2025-02-14']), ('normal control', {'pay_date': [2024, 12, 22], 'lookback_total': 5000001, 'accumulated': 10000000}, ['next-day', '2024-12-23']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 14733386, 'accumulated': 9999999}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2025, 10, 25], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-31'])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
    check("%s %d" % (label, i), 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 fixtureActualExpectedOutcome
regression 0['semiweekly', '2025-08-27']['semiweekly', '2025-08-27']Passed
regression 1['semiweekly', '2025-04-16']['semiweekly', '2025-04-16']Passed
partial-repair probe 2['semiweekly', '2025-10-29']['semiweekly', '2025-10-22']Failed
partial-repair probe 3['semiweekly', '2026-01-28']['semiweekly', '2026-01-21']Failed
normal control 4['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 5['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 6['next-day', '2026-01-12']['next-day', '2026-01-12']Passed
normal control 7['monthly', '2025-12-15']['monthly', '2025-12-15']Passed

SHA-256 / 2ef96a9dc03935c6760d4150c524413fb56a61cda0819fc5bd7e2713eabac2b7

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
N = 1
observations = []
def solve(x):
    d = datetime.date(*x['pay_date'])
    if x['accumulated'] >= 10000000:
        nd = d + datetime.timedelta(days=1)
        while nd.weekday() >= 5:
            nd += datetime.timedelta(days=1)
        return ['next-day', nd.isoformat()]
    if x['lookback_total'] <= 5000000:
        y, m = (d.year + 1, 1) if d.month == 12 else (d.year, d.month + 1)
        return ['monthly', datetime.date(y, m, 15).isoformat()]
    wd = d.weekday()
    if wd in (2, 3, 4):
        delta = (2 - wd) % 7 or 7
    else:
        delta = (4 - wd) % 7
    return ['semiweekly', (d + datetime.timedelta(days=delta)).isoformat()]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'pay_date': [2025, 8, 20], 'lookback_total': 15073801, 'accumulated': 1953477}, ['semiweekly', '2025-08-27']), ('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('partial-repair probe', {'pay_date': [2025, 10, 17], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-22']), ('partial-repair probe', {'pay_date': [2026, 1, 15], 'lookback_total': 5000001, 'accumulated': 128367}, ['semiweekly', '2026-01-21']), ('normal control', {'pay_date': [2025, 7, 24], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2025, 7, 23], 'lookback_total': 4030366, 'accumulated': 7676976}, ['monthly', '2025-08-15']), ('normal control', {'pay_date': [2026, 1, 10], 'lookback_total': 8559426, 'accumulated': 10000000}, ['next-day', '2026-01-12']), ('normal control', {'pay_date': [2025, 11, 30], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-12-15'])], [('regression', {'pay_date': [2025, 4, 9], 'lookback_total': 12054037, 'accumulated': 2326539}, ['semiweekly', '2025-04-16']), ('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('partial-repair probe', {'pay_date': [2025, 1, 9], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-01-15']), ('partial-repair probe', {'pay_date': [2025, 9, 18], 'lookback_total': 5000001, 'accumulated': 171509}, ['semiweekly', '2025-09-24']), ('normal control', {'pay_date': [2025, 3, 12], 'lookback_total': 5000000, 'accumulated': 5561044}, ['monthly', '2025-04-15']), ('normal control', {'pay_date': [2025, 7, 6], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-07']), ('normal control', {'pay_date': [2026, 1, 1], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2026-01-02']), ('normal control', {'pay_date': [2025, 7, 12], 'lookback_total': 5000000, 'accumulated': 10000000}, ['next-day', '2025-07-14'])], [('regression', {'pay_date': [2025, 4, 2], 'lookback_total': 15830756, 'accumulated': 9999999}, ['semiweekly', '2025-04-09']), ('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('partial-repair probe', {'pay_date': [2024, 12, 27], 'lookback_total': 14968828, 'accumulated': 48129}, ['semiweekly', '2025-01-01']), ('partial-repair probe', {'pay_date': [2025, 2, 28], 'lookback_total': 5934057, 'accumulated': 9999999}, ['semiweekly', '2025-03-05']), ('normal control', {'pay_date': [2024, 12, 14], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2025-01-15']), ('normal control', {'pay_date': [2025, 4, 9], 'lookback_total': 5000000, 'accumulated': 17594}, ['monthly', '2025-05-15']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 5000001, 'accumulated': 2892395}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2026, 1, 11], 'lookback_total': 5000000, 'accumulated': 106033}, ['monthly', '2026-02-15'])], [('regression', {'pay_date': [2025, 5, 7], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-05-14']), ('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('partial-repair probe', {'pay_date': [2024, 12, 12], 'lookback_total': 5000001, 'accumulated': 126127}, ['semiweekly', '2024-12-18']), ('partial-repair probe', {'pay_date': [2025, 5, 9], 'lookback_total': 14538348, 'accumulated': 95659}, ['semiweekly', '2025-05-14']), ('normal control', {'pay_date': [2025, 12, 21], 'lookback_total': 5000000, 'accumulated': 9999999}, ['monthly', '2026-01-15']), ('normal control', {'pay_date': [2024, 12, 8], 'lookback_total': 7946403, 'accumulated': 200852}, ['semiweekly', '2024-12-13']), ('normal control', {'pay_date': [2025, 7, 15], 'lookback_total': 7386577, 'accumulated': 7242712}, ['semiweekly', '2025-07-18']), ('normal control', {'pay_date': [2025, 6, 8], 'lookback_total': 5000001, 'accumulated': 136142}, ['semiweekly', '2025-06-13'])], [('regression', {'pay_date': [2025, 6, 18], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-06-25']), ('regression', {'pay_date': [2025, 4, 23], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2025, 4, 24], 'lookback_total': 5000001, 'accumulated': 59984}, ['semiweekly', '2025-04-30']), ('partial-repair probe', {'pay_date': [2026, 2, 5], 'lookback_total': 13040571, 'accumulated': 9999999}, ['semiweekly', '2026-02-11']), ('normal control', {'pay_date': [2025, 2, 13], 'lookback_total': 2864521, 'accumulated': 10000000}, ['next-day', '2025-02-14']), ('normal control', {'pay_date': [2024, 12, 22], 'lookback_total': 5000001, 'accumulated': 10000000}, ['next-day', '2024-12-23']), ('normal control', {'pay_date': [2025, 1, 28], 'lookback_total': 14733386, 'accumulated': 9999999}, ['semiweekly', '2025-01-31']), ('normal control', {'pay_date': [2025, 10, 25], 'lookback_total': 5000001, 'accumulated': 9999999}, ['semiweekly', '2025-10-31'])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
    check("%s %d" % (label, i), 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 fixtureActualExpectedOutcome
regression 0['semiweekly', '2025-08-27']['semiweekly', '2025-08-27']Passed
regression 1['semiweekly', '2025-04-16']['semiweekly', '2025-04-16']Passed
partial-repair probe 2['semiweekly', '2025-10-22']['semiweekly', '2025-10-22']Passed
partial-repair probe 3['semiweekly', '2026-01-21']['semiweekly', '2026-01-21']Passed
normal control 4['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 5['monthly', '2025-08-15']['monthly', '2025-08-15']Passed
normal control 6['next-day', '2026-01-12']['next-day', '2026-01-12']Passed
normal control 7['monthly', '2025-12-15']['monthly', '2025-12-15']Passed

SHA-256 / 897f1d5e983f5f5839d960f018ac5eab420024d79d04ecdb7ecd0c639ed521c7

Verification & scope

A deterministic teaching model of a stipulated payroll rule with toy thresholds and rates. It makes no claim of conformance to any tax authority, statute or jurisdiction and is not payroll software. 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:46:34.854148+00:00.

Case digest / 9f4885ce2e9079cafd27b3862e037d73a00a1e0e6d605aebe14b5fe1abb8e377