FA-59029 / Payroll withholding rules / Member archive
Resident and work-state withholding reciprocity: zero resident line suppression · case 04
Pay stubs show a zero-cent resident state withholding line.
Case contract
Input {wage, res, work, reciprocal:[sorted state pairs], rates:{state: basis points}, res_credit}. Tax for a state = wage*rate/10000 half-up. Same state: withhold only there. Reciprocal pair: withhold only the resident state. Otherwise withhold the work state; the resident state gets max(0, resident - work) when res_credit else its full tax; omit zero resident lines. Return {state: cents}.
Why this case matters
Multi-state withholding depends on reciprocity agreements and resident credits, and misplacing a state changes which agency is paid.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | {"KY": 0, "PA": 7078} | {"PA": 7078} | 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 ↗