{"abstract":"Each quarter panel receives half the circumference.","category":"Knitting and sewing pattern grading","checks":8,"contract":"Sizes 6..22 in steps of 2 (others -> \"error: size\"). Grading one size step between sizes s and s+2 changes the circumference by `small` cm if the lower size s < brk, else `large`. Going down subtracts the same step amounts. Return [circumference, per quarter-panel = circumference/4], both half-up to 0.1.","contract_signature":"base_size, target_size, base_cm, small, large, brk","evaluation_group":"w2-knitting_and_sewing_pattern_grading-grade-rules","failed_approach":"Quartering only the grade change reports the per-panel increment, not the panel measurement.","family":"w2-knitting_and_sewing_pattern_grading-grade-rules-quarter-panel-split","id":"FA-97526","implementations":{"attempt":{"sha256":"9dac154599c24037b0edf5ecf15683cc3d6b0430de004d9b6785e211d389d748","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(base_size, target_size, base_cm, small, large, brk):\n    SIZES = [6, 8, 10, 12, 14, 16, 18, 20, 22]\n    if base_size not in SIZES or target_size not in SIZES:\n        return 'error: size'\n    i, j = SIZES.index(base_size), SIZES.index(target_size)\n    m = Fraction(str(base_cm))\n    step = 1 if j > i else -1\n    k = i\n    while k != j:\n        lo = min(k, k + step)\n        inc = small if SIZES[lo] < brk else large\n        m += step * inc\n        k += step\n    q = (m - Fraction(str(base_cm))) / 4\n    return [math.floor(m * 10 + Fraction(1, 2)) / 10, math.floor(q * 10 + Fraction(1, 2)) / 10]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['regression: quarter panel split', [10, 10, '100', 4, 6, 14], [100.0, 25.0]],\n  ['repair check: quarter panel split', [8, 16, '100', 5, 7, 16], [120.0, 30.0]],\n  ['generated control 1', [14, 24, '88', 4, 6, 18], 'error: size'],\n  ['generated control 2', [8, 22, '100', 5, 6, 18], [137.0, 34.3]],\n  ['generated control 3', [10, 10, '88', 4, 6, 14], [88.0, 22.0]]],\n [['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['regression: quarter panel split', [10, 12, '100', 4, 7, 16], [104.0, 26.0]],\n  ['repair check: quarter panel split', [16, 6, '100', 4, 6, 12], [76.0, 19.0]],\n  ['generated control 1', [20, 24, '92.5', 5, 7, 16], 'error: size'],\n  ['generated control 2', [22, 20, '96', 5, 7, 12], [89.0, 22.3]],\n  ['generated control 3', [18, 22, '88', 4, 7, 16], [102.0, 25.5]]],\n [['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['regression: quarter panel split', [18, 22, '100', 5, 7, 18], [114.0, 28.5]],\n  ['repair check: quarter panel split', [14, 22, '92.5', 5, 6, 18], [114.5, 28.6]],\n  ['generated control 1', [10, 12, '96', 5, 6, 12], [101.0, 25.3]],\n  ['generated control 2', [14, 16, '96', 4, 7, 12], [103.0, 25.8]],\n  ['generated control 3', [10, 6, '100', 5, 6, 14], [90.0, 22.5]]],\n [['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['regression: quarter panel split', [6, 8, '88', 4, 6, 18], [92.0, 23.0]],\n  ['repair check: quarter panel split', [22, 16, '100', 5, 6, 12], [82.0, 20.5]],\n  ['generated control 1', [14, 16, '96', 5, 7, 18], [101.0, 25.3]],\n  ['generated control 2', [6, 6, '88', 4, 7, 18], [88.0, 22.0]],\n  ['generated control 3', [14, 22, '88', 4, 6, 16], [110.0, 27.5]]],\n [['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['regression: quarter panel split', [20, 10, '100', 4, 7, 18], [77.0, 19.3]],\n  ['repair check: quarter panel split', [12, 10, '92.5', 4, 6, 18], [88.5, 22.1]],\n  ['generated control 1', [22, 14, '88', 5, 7, 14], [60.0, 15.0]],\n  ['generated control 2', [6, 22, '88', 4, 7, 18], [126.0, 31.5]],\n  ['generated control 3', [22, 16, '88', 5, 6, 16], [70.0, 17.5]]]]\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":"a361e479eae55ff5c6cade62330038415341959f544798a87b6ecece361e977d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(base_size, target_size, base_cm, small, large, brk):\n    SIZES = [6, 8, 10, 12, 14, 16, 18, 20, 22]\n    if base_size not in SIZES or target_size not in SIZES:\n        return 'error: size'\n    i, j = SIZES.index(base_size), SIZES.index(target_size)\n    m = Fraction(str(base_cm))\n    step = 1 if j > i else -1\n    k = i\n    while k != j:\n        lo = min(k, k + step)\n        inc = small if SIZES[lo] < brk else large\n        m += step * inc\n        k += step\n    q = m / 2\n    return [math.floor(m * 10 + Fraction(1, 2)) / 10, math.floor(q * 10 + Fraction(1, 2)) / 10]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['regression: quarter panel split', [10, 10, '100', 4, 6, 14], [100.0, 25.0]],\n  ['repair check: quarter panel split', [8, 16, '100', 5, 7, 16], [120.0, 30.0]],\n  ['generated control 1', [14, 24, '88', 4, 6, 18], 'error: size'],\n  ['generated control 2', [8, 22, '100', 5, 6, 18], [137.0, 34.3]],\n  ['generated control 3', [10, 10, '88', 4, 6, 14], [88.0, 22.0]]],\n [['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['regression: quarter panel split', [10, 12, '100', 4, 7, 16], [104.0, 26.0]],\n  ['repair check: quarter panel split', [16, 6, '100', 4, 6, 12], [76.0, 19.0]],\n  ['generated control 1', [20, 24, '92.5', 5, 7, 16], 'error: size'],\n  ['generated control 2', [22, 20, '96', 5, 7, 12], [89.0, 22.3]],\n  ['generated control 3', [18, 22, '88', 4, 7, 16], [102.0, 25.5]]],\n [['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['regression: quarter panel split', [18, 22, '100', 5, 7, 18], [114.0, 28.5]],\n  ['repair check: quarter panel split', [14, 22, '92.5', 5, 6, 18], [114.5, 28.6]],\n  ['generated control 1', [10, 12, '96', 5, 6, 12], [101.0, 25.3]],\n  ['generated control 2', [14, 16, '96', 4, 7, 12], [103.0, 25.8]],\n  ['generated control 3', [10, 6, '100', 5, 6, 14], [90.0, 22.5]]],\n [['unknown size', [12, 24, '92', 5, 6, 16], 'error: size'],\n  ['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['regression: quarter panel split', [6, 8, '88', 4, 6, 18], [92.0, 23.0]],\n  ['repair check: quarter panel split', [22, 16, '100', 5, 6, 12], [82.0, 20.5]],\n  ['generated control 1', [14, 16, '96', 5, 7, 18], [101.0, 25.3]],\n  ['generated control 2', [6, 6, '88', 4, 7, 18], [88.0, 22.0]],\n  ['generated control 3', [14, 22, '88', 4, 6, 16], [110.0, 27.5]]],\n [['same size', [12, 12, '92.5', 5, 6, 16], [92.5, 23.1]],\n  ['across the break', [14, 20, '96', 5, 6, 16], [113.0, 28.3]],\n  ['down across the break', [20, 14, '110', 5, 6, 16], [93.0, 23.3]],\n  ['regression: quarter panel split', [20, 10, '100', 4, 7, 18], [77.0, 19.3]],\n  ['repair check: quarter panel split', [12, 10, '92.5', 4, 6, 18], [88.5, 22.1]],\n  ['generated control 1', [22, 14, '88', 5, 7, 14], [60.0, 15.0]],\n  ['generated control 2', [6, 22, '88', 4, 7, 18], [126.0, 31.5]],\n  ['generated control 3', [22, 16, '88', 5, 6, 16], [70.0, 17.5]]]]\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":"A deterministic toy contract stated in full here; it is a bounded teaching model, not an authoritative reference or standards implementation. 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-knitting_and_sewing_pattern_grading-grade-rules-quarter-panel-split","generated_at":"2026-09-29T14:52:33.046319+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Sewing pattern grading applies different increments above a size break and distributes them across front and back pieces.","root_cause":"The circumference is split in two instead of across four quarter panels.","sha256":"6af58960e0dee2d5ac76ac8bfbfd5e6f64be1c9852535a729b4ec19aab70f5e7","title":"Sewing pattern grade rule stepper: quarter panel split · 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":42.562,"exit_code":1,"observations":[{"actual":[92.5,0.0],"check":"same size","expected":[92.5,23.1],"passed":false},{"actual":[113.0,4.3],"check":"across the break","expected":[113.0,28.3],"passed":false},{"actual":[93.0,-4.2],"check":"down across the break","expected":[93.0,23.3],"passed":false},{"actual":[100.0,0.0],"check":"regression: quarter panel split","expected":[100.0,25.0],"passed":false},{"actual":[120.0,5.0],"check":"repair check: quarter panel split","expected":[120.0,30.0],"passed":false},{"actual":"error: size","check":"generated control 1","expected":"error: size","passed":true},{"actual":[137.0,9.3],"check":"generated control 2","expected":[137.0,34.3],"passed":false},{"actual":[88.0,0.0],"check":"generated control 3","expected":[88.0,22.0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same size\", \"actual\": [92.5, 0.0], \"expected\": [92.5, 23.1], \"passed\": false}, {\"check\": \"across the break\", \"actual\": [113.0, 4.3], \"expected\": [113.0, 28.3], \"passed\": false}, {\"check\": \"down across the break\", \"actual\": [93.0, -4.2], \"expected\": [93.0, 23.3], \"passed\": false}, {\"check\": \"regression: quarter panel split\", \"actual\": [100.0, 0.0], \"expected\": [100.0, 25.0], \"passed\": false}, {\"check\": \"repair check: quarter panel split\", \"actual\": [120.0, 5.0], \"expected\": [120.0, 30.0], \"passed\": false}, {\"check\": \"generated control 1\", \"actual\": \"error: size\", \"expected\": \"error: size\", \"passed\": true}, {\"check\": \"generated control 2\", \"actual\": [137.0, 9.3], \"expected\": [137.0, 34.3], \"passed\": false}, {\"check\": \"generated control 3\", \"actual\": [88.0, 0.0], \"expected\": [88.0, 22.0], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.98,"exit_code":1,"observations":[{"actual":[92.5,46.3],"check":"same size","expected":[92.5,23.1],"passed":false},{"actual":[113.0,56.5],"check":"across the break","expected":[113.0,28.3],"passed":false},{"actual":[93.0,46.5],"check":"down across the break","expected":[93.0,23.3],"passed":false},{"actual":[100.0,50.0],"check":"regression: quarter panel split","expected":[100.0,25.0],"passed":false},{"actual":[120.0,60.0],"check":"repair check: quarter panel split","expected":[120.0,30.0],"passed":false},{"actual":"error: size","check":"generated control 1","expected":"error: size","passed":true},{"actual":[137.0,68.5],"check":"generated control 2","expected":[137.0,34.3],"passed":false},{"actual":[88.0,44.0],"check":"generated control 3","expected":[88.0,22.0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same size\", \"actual\": [92.5, 46.3], \"expected\": [92.5, 23.1], \"passed\": false}, {\"check\": \"across the break\", \"actual\": [113.0, 56.5], \"expected\": [113.0, 28.3], \"passed\": false}, {\"check\": \"down across the break\", \"actual\": [93.0, 46.5], \"expected\": [93.0, 23.3], \"passed\": false}, {\"check\": \"regression: quarter panel split\", \"actual\": [100.0, 50.0], \"expected\": [100.0, 25.0], \"passed\": false}, {\"check\": \"repair check: quarter panel split\", \"actual\": [120.0, 60.0], \"expected\": [120.0, 30.0], \"passed\": false}, {\"check\": \"generated control 1\", \"actual\": \"error: size\", \"expected\": \"error: size\", \"passed\": true}, {\"check\": \"generated control 2\", \"actual\": [137.0, 68.5], \"expected\": [137.0, 34.3], \"passed\": false}, {\"check\": \"generated control 3\", \"actual\": [88.0, 44.0], \"expected\": [88.0, 22.0], \"passed\": false}], \"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."}}