{"abstract":"Young workers on their 90th day are shortchanged or overpaid at the window edge.","category":"Payroll withholding rules","checks":8,"contract":"Input {federal, state|None, local|None, age, days_employed, hours, paid}. Applicable rate is the highest of the defined federal, state and local minimums. A youth rate of 4.25 may replace it when age < 20, days_employed <= 90 and neither a state nor local minimum is defined. Return [rate, max(0, hours*rate - paid)].","contract_signature":"x","evaluation_group":"w2-payroll-withholding-minimum-wage-jurisdiction","failed_approach":"The attempt approximates months, extending the window to 119 days.","family":"w2-payroll-withholding-minimum-wage-jurisdiction-youth-window-length","id":"FA-59171","implementations":{"attempt":{"sha256":"d5172dfefecd48a3f460a3cad09d7d60e043fd66df671170b0e4abd9762351f2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    rates = [x['federal']] + [r for r in (x['state'], x['local']) if r is not None]\n    applicable = max(rates)\n    if x['age'] < 20 and x['days_employed'] // 30 <= 3 and x['state'] is None and x['local'] is None:\n        applicable = min(applicable, 425)\n    return [applicable, max(0, x['hours'] * applicable - x['paid'])]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 6, 'paid': 3640}, [725, 710]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 91, 'hours': 6, 'paid': 16880}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 21, 'days_employed': 10, 'hours': 36, 'paid': 32014}, [900, 386]), ('normal control', {'federal': 725, 'state': 1500, 'local': 900, 'age': 19, 'days_employed': 200, 'hours': 32, 'paid': 60214}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 17, 'days_employed': 10, 'hours': 44, 'paid': 52557}, [1500, 13443]), ('normal control', {'federal': 725, 'state': 700, 'local': 900, 'age': 17, 'days_employed': 90, 'hours': 42, 'paid': 43650}, [900, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 119, 'hours': 35, 'paid': 32541}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 91, 'hours': 13, 'paid': 19333}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 200, 'hours': 49, 'paid': 66535}, [725, 0]), ('normal control', {'federal': 725, 'state': 700, 'local': 1400, 'age': 20, 'days_employed': 119, 'hours': 50, 'paid': 49362}, [1400, 20638]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 17, 'days_employed': 200, 'hours': 12, 'paid': 62529}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 19, 'days_employed': 91, 'hours': 13, 'paid': 52409}, [1500, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 100, 'hours': 29, 'paid': 59285}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 119, 'hours': 44, 'paid': 55291}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 1700, 'age': 21, 'days_employed': 200, 'hours': 31, 'paid': 26649}, [1700, 26051]), ('normal control', {'federal': 725, 'state': 700, 'local': None, 'age': 35, 'days_employed': 200, 'hours': 25, 'paid': 55516}, [725, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 21, 'days_employed': 91, 'hours': 3, 'paid': 73893}, [1500, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 35, 'days_employed': 10, 'hours': 44, 'paid': 29457}, [900, 10143])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 100, 'hours': 21, 'paid': 28873}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 19, 'paid': 42785}, [725, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 19, 'days_employed': 90, 'hours': 35, 'paid': 10142}, [1500, 42358]), ('normal control', {'federal': 725, 'state': 800, 'local': 1400, 'age': 21, 'days_employed': 89, 'hours': 42, 'paid': 70854}, [1400, 0]), ('normal control', {'federal': 725, 'state': 800, 'local': 900, 'age': 35, 'days_employed': 10, 'hours': 27, 'paid': 8188}, [900, 16112]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 17, 'days_employed': 200, 'hours': 2, 'paid': 39319}, [900, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 119, 'hours': 23, 'paid': 24115}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 6, 'paid': 3640}, [725, 710]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 21, 'days_employed': 100, 'hours': 38, 'paid': 59758}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 35, 'days_employed': 91, 'hours': 1, 'paid': 31574}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 21, 'days_employed': 89, 'hours': 20, 'paid': 19880}, [1500, 10120]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 20, 'days_employed': 89, 'hours': 13, 'paid': 20235}, [1500, 0])]]\nfor i, (label, args, expected) in enumerate(fixtures[N-1]):\n    check(\"%s %d\" % (label, i), 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":"632c7378b18f0e5ff7557985e5ac7d29485bf8e48cb4a519b7c9ce8dc8653c35","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    rates = [x['federal']] + [r for r in (x['state'], x['local']) if r is not None]\n    applicable = max(rates)\n    if x['age'] < 20 and x['days_employed'] < 90 and x['state'] is None and x['local'] is None:\n        applicable = min(applicable, 425)\n    return [applicable, max(0, x['hours'] * applicable - x['paid'])]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 6, 'paid': 3640}, [725, 710]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 91, 'hours': 6, 'paid': 16880}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 21, 'days_employed': 10, 'hours': 36, 'paid': 32014}, [900, 386]), ('normal control', {'federal': 725, 'state': 1500, 'local': 900, 'age': 19, 'days_employed': 200, 'hours': 32, 'paid': 60214}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 17, 'days_employed': 10, 'hours': 44, 'paid': 52557}, [1500, 13443]), ('normal control', {'federal': 725, 'state': 700, 'local': 900, 'age': 17, 'days_employed': 90, 'hours': 42, 'paid': 43650}, [900, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 119, 'hours': 35, 'paid': 32541}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 91, 'hours': 13, 'paid': 19333}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 200, 'hours': 49, 'paid': 66535}, [725, 0]), ('normal control', {'federal': 725, 'state': 700, 'local': 1400, 'age': 20, 'days_employed': 119, 'hours': 50, 'paid': 49362}, [1400, 20638]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 17, 'days_employed': 200, 'hours': 12, 'paid': 62529}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 19, 'days_employed': 91, 'hours': 13, 'paid': 52409}, [1500, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 100, 'hours': 29, 'paid': 59285}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 119, 'hours': 44, 'paid': 55291}, [725, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 1700, 'age': 21, 'days_employed': 200, 'hours': 31, 'paid': 26649}, [1700, 26051]), ('normal control', {'federal': 725, 'state': 700, 'local': None, 'age': 35, 'days_employed': 200, 'hours': 25, 'paid': 55516}, [725, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 21, 'days_employed': 91, 'hours': 3, 'paid': 73893}, [1500, 0]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 35, 'days_employed': 10, 'hours': 44, 'paid': 29457}, [900, 10143])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 23, 'paid': 23235}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 100, 'hours': 21, 'paid': 28873}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 19, 'paid': 42785}, [725, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 19, 'days_employed': 90, 'hours': 35, 'paid': 10142}, [1500, 42358]), ('normal control', {'federal': 725, 'state': 800, 'local': 1400, 'age': 21, 'days_employed': 89, 'hours': 42, 'paid': 70854}, [1400, 0]), ('normal control', {'federal': 725, 'state': 800, 'local': 900, 'age': 35, 'days_employed': 10, 'hours': 27, 'paid': 8188}, [900, 16112]), ('normal control', {'federal': 725, 'state': None, 'local': 900, 'age': 17, 'days_employed': 200, 'hours': 2, 'paid': 39319}, [900, 0])], [('regression', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 90, 'hours': 40, 'paid': 47076}, [425, 0]), ('regression', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 90, 'hours': 19, 'paid': 48745}, [425, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 17, 'days_employed': 119, 'hours': 23, 'paid': 24115}, [725, 0]), ('partial-repair probe', {'federal': 725, 'state': None, 'local': None, 'age': 19, 'days_employed': 100, 'hours': 6, 'paid': 3640}, [725, 710]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 21, 'days_employed': 100, 'hours': 38, 'paid': 59758}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 35, 'days_employed': 91, 'hours': 1, 'paid': 31574}, [1500, 0]), ('normal control', {'federal': 725, 'state': 1500, 'local': None, 'age': 21, 'days_employed': 89, 'hours': 20, 'paid': 19880}, [1500, 10120]), ('normal control', {'federal': 725, 'state': 1500, 'local': 1400, 'age': 20, 'days_employed': 89, 'hours': 13, 'paid': 20235}, [1500, 0])]]\nfor i, (label, args, expected) in enumerate(fixtures[N-1]):\n    check(\"%s %d\" % (label, i), 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":"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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-payroll-withholding-minimum-wage-jurisdiction-youth-window-length","generated_at":"2026-09-29T14:46:33.670170+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Payroll must pay the most protective minimum wage, and the youth rate exception is narrow.","root_cause":"The 90-day youth window excludes day 90.","sha256":"16f261f7331ec807180544ffc7020e92f40d0c2856f1cabc19820c07bf50d335","title":"Applicable minimum wage and youth rate: youth window length · 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":41.34,"exit_code":1,"observations":[{"actual":[425,0],"check":"regression 0","expected":[425,0],"passed":true},{"actual":[425,0],"check":"regression 1","expected":[425,0],"passed":true},{"actual":[425,0],"check":"partial-repair probe 2","expected":[725,710],"passed":false},{"actual":[425,0],"check":"partial-repair probe 3","expected":[725,0],"passed":false},{"actual":[900,386],"check":"normal control 4","expected":[900,386],"passed":true},{"actual":[1500,0],"check":"normal control 5","expected":[1500,0],"passed":true},{"actual":[1500,13443],"check":"normal control 6","expected":[1500,13443],"passed":true},{"actual":[900,0],"check":"normal control 7","expected":[900,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 0\", \"actual\": [425, 0], \"expected\": [425, 0], \"passed\": true}, {\"check\": \"regression 1\", \"actual\": [425, 0], \"expected\": [425, 0], \"passed\": true}, {\"check\": \"partial-repair probe 2\", \"actual\": [425, 0], \"expected\": [725, 710], \"passed\": false}, {\"check\": \"partial-repair probe 3\", \"actual\": [425, 0], \"expected\": [725, 0], \"passed\": false}, {\"check\": \"normal control 4\", \"actual\": [900, 386], \"expected\": [900, 386], \"passed\": true}, {\"check\": \"normal control 5\", \"actual\": [1500, 0], \"expected\": [1500, 0], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [1500, 13443], \"expected\": [1500, 13443], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [900, 0], \"expected\": [900, 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.674,"exit_code":1,"observations":[{"actual":[725,0],"check":"regression 0","expected":[425,0],"passed":false},{"actual":[725,0],"check":"regression 1","expected":[425,0],"passed":false},{"actual":[725,710],"check":"partial-repair probe 2","expected":[725,710],"passed":true},{"actual":[725,0],"check":"partial-repair probe 3","expected":[725,0],"passed":true},{"actual":[900,386],"check":"normal control 4","expected":[900,386],"passed":true},{"actual":[1500,0],"check":"normal control 5","expected":[1500,0],"passed":true},{"actual":[1500,13443],"check":"normal control 6","expected":[1500,13443],"passed":true},{"actual":[900,0],"check":"normal control 7","expected":[900,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 0\", \"actual\": [725, 0], \"expected\": [425, 0], \"passed\": false}, {\"check\": \"regression 1\", \"actual\": [725, 0], \"expected\": [425, 0], \"passed\": false}, {\"check\": \"partial-repair probe 2\", \"actual\": [725, 710], \"expected\": [725, 710], \"passed\": true}, {\"check\": \"partial-repair probe 3\", \"actual\": [725, 0], \"expected\": [725, 0], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [900, 386], \"expected\": [900, 386], \"passed\": true}, {\"check\": \"normal control 5\", \"actual\": [1500, 0], \"expected\": [1500, 0], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [1500, 13443], \"expected\": [1500, 13443], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [900, 0], \"expected\": [900, 0], \"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."}}