{"abstract":"An elderly dependent loses the additional standard deduction.","category":"Tax bracket computation","checks":7,"contract":"solve(status, gross, earned, itemized, conditions, dependent, spouse_itemizes): stipulated deduction rules. Base standard deduction: single 14600, mfj 29200, mfs 14600, hoh 21900 (other statuses 'ERR:status'). A dependent's base is min(base, max(1300, earned + 450)). Then add 1950 per age/blindness condition for single or hoh, 1550 per condition for married statuses. If status is mfs and the spouse itemizes, the standard deduction is 0. The deduction is the larger of standard and itemized; taxable = max(0, gross - deduction). Return [deduction, taxable].","evaluation_group":"w2-tax_bracket_computation-deduction-selection-by-status","failed_approach":"Dropping the additional amounts for dependents altogether is the same loss by another route.","family":"w2-tax_bracket_computation-deduction-selection-by-status-additional-before-dependent-cap","id":"FA-62396","implementations":{"attempt":{"sha256":"dc491cf1b4ec97f6f8ca7bea2b95ba2c8fd1656671ea80b44973e8cab8d0412b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(status, gross, earned, itemized, conditions, dependent, spouse_itemizes):\n    std = {'single': 14600, 'mfj': 29200, 'mfs': 14600, 'hoh': 21900}\n    if status not in std: return 'ERR:status'\n    extra = 1950 if status in ('single', 'hoh') else 1550\n    base = std[status]\n    if dependent: base = min(base, max(1300, earned + 450))\n    s = base + (0 if dependent else extra * conditions)\n    if status == 'mfs' and spouse_itemizes: s = 0\n    d = max(s, itemized)\n    return [d, max(0, gross - d)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('regression additional-before-dependent-cap 1', ('single', 5000, 2000, 0, 1, True, False), [4400, 600]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('partial repair guard 1', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 22188, 500, 0, 1, True, True), [3250, 18938]),\n  ('regression additional-before-dependent-cap 2', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('partial repair guard 1', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])],\n [('regression additional-before-dependent-cap 1', ('mfj', 41032, 28549, 3000, 1, True, False), [30549, 10483]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('partial repair guard 1', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000]),\n  ('control: bad status', ('widow', 1, 1, 0, 0, False, False), 'ERR:status'),\n  ('control: dependent no earnings', ('single', 3000, 0, 0, 0, True, False), [1300, 1700]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400])],\n [('regression additional-before-dependent-cap 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('partial repair guard 1', ('single', 68311, 20000, 0, 2, True, False), [18500, 49811]),\n  ('partial repair guard 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 85892, 0, 0, 2, True, True), [5200, 80692]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 105604, 2000, 0, 2, True, False), [5550, 100054]),\n  ('partial repair guard 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('partial repair guard 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])]]\nfor label, args, expected in cases[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":"5ebfcf3d279bc380969b24d52a3512a109adb697ee95cc9f97acf1f6f276f277","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(status, gross, earned, itemized, conditions, dependent, spouse_itemizes):\n    std = {'single': 14600, 'mfj': 29200, 'mfs': 14600, 'hoh': 21900}\n    if status not in std: return 'ERR:status'\n    extra = 1950 if status in ('single', 'hoh') else 1550\n    base = std[status]\n    base += extra * conditions\n    if dependent: base = min(base, max(1300, earned + 450))\n    s = base\n    if status == 'mfs' and spouse_itemizes: s = 0\n    d = max(s, itemized)\n    return [d, max(0, gross - d)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('regression additional-before-dependent-cap 1', ('single', 5000, 2000, 0, 1, True, False), [4400, 600]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('partial repair guard 1', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 22188, 500, 0, 1, True, True), [3250, 18938]),\n  ('regression additional-before-dependent-cap 2', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('partial repair guard 1', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])],\n [('regression additional-before-dependent-cap 1', ('mfj', 41032, 28549, 3000, 1, True, False), [30549, 10483]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('partial repair guard 1', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000]),\n  ('control: bad status', ('widow', 1, 1, 0, 0, False, False), 'ERR:status'),\n  ('control: dependent no earnings', ('single', 3000, 0, 0, 0, True, False), [1300, 1700]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400])],\n [('regression additional-before-dependent-cap 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('partial repair guard 1', ('single', 68311, 20000, 0, 2, True, False), [18500, 49811]),\n  ('partial repair guard 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 85892, 0, 0, 2, True, True), [5200, 80692]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 105604, 2000, 0, 2, True, False), [5550, 100054]),\n  ('partial repair guard 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('partial repair guard 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])]]\nfor label, args, expected in cases[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"},"fixed":{"sha256":"791e2596b9d28f9dfb6adabc1577feca30f7f52ef947f8d22b706859debad360","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(status, gross, earned, itemized, conditions, dependent, spouse_itemizes):\n    std = {'single': 14600, 'mfj': 29200, 'mfs': 14600, 'hoh': 21900}\n    if status not in std: return 'ERR:status'\n    extra = 1950 if status in ('single', 'hoh') else 1550\n    base = std[status]\n    if dependent: base = min(base, max(1300, earned + 450))\n    s = base + extra * conditions\n    if status == 'mfs' and spouse_itemizes: s = 0\n    d = max(s, itemized)\n    return [d, max(0, gross - d)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncases = [[('regression additional-before-dependent-cap 1', ('single', 5000, 2000, 0, 1, True, False), [4400, 600]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('partial repair guard 1', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 22188, 500, 0, 1, True, True), [3250, 18938]),\n  ('regression additional-before-dependent-cap 2', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('partial repair guard 1', ('mfj', 100718, 20000, 0, 1, True, True), [22000, 78718]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])],\n [('regression additional-before-dependent-cap 1', ('mfj', 41032, 28549, 3000, 1, True, False), [30549, 10483]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('partial repair guard 1', ('single', 97749, 500, 3000, 2, True, False), [5200, 92549]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000]),\n  ('control: bad status', ('widow', 1, 1, 0, 0, False, False), 'ERR:status'),\n  ('control: dependent no earnings', ('single', 3000, 0, 0, 0, True, False), [1300, 1700]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400])],\n [('regression additional-before-dependent-cap 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('regression additional-before-dependent-cap 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('partial repair guard 1', ('single', 68311, 20000, 0, 2, True, False), [18500, 49811]),\n  ('partial repair guard 2', ('hoh', 39678, 500, 0, 1, True, True), [3250, 36428]),\n  ('control: single standard', ('single', 50000, 50000, 0, 0, False, False), [14600, 35400]),\n  ('control: hoh with age', ('hoh', 30000, 30000, 0, 1, False, False), [23850, 6150]),\n  ('control: dependent', ('single', 5000, 2000, 0, 0, True, False), [2450, 2550]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000])],\n [('regression additional-before-dependent-cap 1', ('hoh', 85892, 0, 0, 2, True, True), [5200, 80692]),\n  ('regression additional-before-dependent-cap 2', ('mfj', 105604, 2000, 0, 2, True, False), [5550, 100054]),\n  ('partial repair guard 1', ('hoh', 50678, 2000, 0, 2, True, True), [6350, 44328]),\n  ('partial repair guard 2', ('hoh', 111017, 500, 3000, 1, True, False), [3250, 107767]),\n  ('control: mfs spouse itemizes', ('mfs', 40000, 40000, 3000, 2, False, True), [3000, 37000]),\n  ('control: mfj below deduction', ('mfj', 20000, 20000, 0, 2, False, False), [32300, 0]),\n  ('control: high-earning dependent', ('single', 9000, 20000, 0, 1, True, False), [16550, 0]),\n  ('control: itemizer', ('mfj', 120000, 120000, 35000, 0, False, False), [35000, 85000])]]\nfor label, args, expected in cases[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":"A deterministic, bounded teaching model with a stipulated toy contract; it makes no claim of conformance to any real regulation, standard, or institution's rules. 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-tax_bracket_computation-deduction-selection-by-status-additional-before-dependent-cap","generated_at":"2026-09-29T14:47:04.322221+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Tax computations hinge on which slice, threshold, ordering and rounding rule applies at each step; a misplaced boundary silently misstates liabilities.","repair":"Apply the dependent limit to the base only, then add the additional amounts.","root_cause":"Additional amounts are added before the dependent limit is applied.","sha256":"bba4c126c75876e70d161255e56c3fb37f58a061e9654c45f879d66e1370588f","title":"The dependent cap also truncates the age and blindness additions · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.12,"exit_code":1,"observations":[{"actual":[2450,2550],"check":"regression additional-before-dependent-cap 1","expected":[4400,600],"passed":false},{"actual":[20450,80268],"check":"regression additional-before-dependent-cap 2","expected":[22000,78718],"passed":false},{"actual":[14600,0],"check":"partial repair guard 1","expected":[16550,0],"passed":false},{"actual":[14600,35400],"check":"control: single standard","expected":[14600,35400],"passed":true},{"actual":[23850,6150],"check":"control: hoh with age","expected":[23850,6150],"passed":true},{"actual":[2450,2550],"check":"control: dependent","expected":[2450,2550],"passed":true},{"actual":[3000,37000],"check":"control: mfs spouse itemizes","expected":[3000,37000],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression additional-before-dependent-cap 1\", \"actual\": [2450, 2550], \"expected\": [4400, 600], \"passed\": false}, {\"check\": \"regression additional-before-dependent-cap 2\", \"actual\": [20450, 80268], \"expected\": [22000, 78718], \"passed\": false}, {\"check\": \"partial repair guard 1\", \"actual\": [14600, 0], \"expected\": [16550, 0], \"passed\": false}, {\"check\": \"control: single standard\", \"actual\": [14600, 35400], \"expected\": [14600, 35400], \"passed\": true}, {\"check\": \"control: hoh with age\", \"actual\": [23850, 6150], \"expected\": [23850, 6150], \"passed\": true}, {\"check\": \"control: dependent\", \"actual\": [2450, 2550], \"expected\": [2450, 2550], \"passed\": true}, {\"check\": \"control: mfs spouse itemizes\", \"actual\": [3000, 37000], \"expected\": [3000, 37000], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.191,"exit_code":1,"observations":[{"actual":[2450,2550],"check":"regression additional-before-dependent-cap 1","expected":[4400,600],"passed":false},{"actual":[20450,80268],"check":"regression additional-before-dependent-cap 2","expected":[22000,78718],"passed":false},{"actual":[16550,0],"check":"partial repair guard 1","expected":[16550,0],"passed":true},{"actual":[14600,35400],"check":"control: single standard","expected":[14600,35400],"passed":true},{"actual":[23850,6150],"check":"control: hoh with age","expected":[23850,6150],"passed":true},{"actual":[2450,2550],"check":"control: dependent","expected":[2450,2550],"passed":true},{"actual":[3000,37000],"check":"control: mfs spouse itemizes","expected":[3000,37000],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression additional-before-dependent-cap 1\", \"actual\": [2450, 2550], \"expected\": [4400, 600], \"passed\": false}, {\"check\": \"regression additional-before-dependent-cap 2\", \"actual\": [20450, 80268], \"expected\": [22000, 78718], \"passed\": false}, {\"check\": \"partial repair guard 1\", \"actual\": [16550, 0], \"expected\": [16550, 0], \"passed\": true}, {\"check\": \"control: single standard\", \"actual\": [14600, 35400], \"expected\": [14600, 35400], \"passed\": true}, {\"check\": \"control: hoh with age\", \"actual\": [23850, 6150], \"expected\": [23850, 6150], \"passed\": true}, {\"check\": \"control: dependent\", \"actual\": [2450, 2550], \"expected\": [2450, 2550], \"passed\": true}, {\"check\": \"control: mfs spouse itemizes\", \"actual\": [3000, 37000], \"expected\": [3000, 37000], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.381,"exit_code":0,"observations":[{"actual":[4400,600],"check":"regression additional-before-dependent-cap 1","expected":[4400,600],"passed":true},{"actual":[22000,78718],"check":"regression additional-before-dependent-cap 2","expected":[22000,78718],"passed":true},{"actual":[16550,0],"check":"partial repair guard 1","expected":[16550,0],"passed":true},{"actual":[14600,35400],"check":"control: single standard","expected":[14600,35400],"passed":true},{"actual":[23850,6150],"check":"control: hoh with age","expected":[23850,6150],"passed":true},{"actual":[2450,2550],"check":"control: dependent","expected":[2450,2550],"passed":true},{"actual":[3000,37000],"check":"control: mfs spouse itemizes","expected":[3000,37000],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression additional-before-dependent-cap 1\", \"actual\": [4400, 600], \"expected\": [4400, 600], \"passed\": true}, {\"check\": \"regression additional-before-dependent-cap 2\", \"actual\": [22000, 78718], \"expected\": [22000, 78718], \"passed\": true}, {\"check\": \"partial repair guard 1\", \"actual\": [16550, 0], \"expected\": [16550, 0], \"passed\": true}, {\"check\": \"control: single standard\", \"actual\": [14600, 35400], \"expected\": [14600, 35400], \"passed\": true}, {\"check\": \"control: hoh with age\", \"actual\": [23850, 6150], \"expected\": [23850, 6150], \"passed\": true}, {\"check\": \"control: dependent\", \"actual\": [2450, 2550], \"expected\": [2450, 2550], \"passed\": true}, {\"check\": \"control: mfs spouse itemizes\", \"actual\": [3000, 37000], \"expected\": [3000, 37000], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}