{"abstract":"Half a cup prints as \"4/8\" and one and a quarter as \"1 2/8\".","category":"Recipe scaling and nutrition","checks":8,"contract":"Scale [name, qty, unit, kind] rows from base to target servings. Factor f=target/base (both must be positive, else an error string). Seasoning rows scale by 1+(f-1)*3/4 (damped); other rows by f. Unit \"each\" rounds half-up to an integer with a floor of 1. Other units round half-up to the nearest 1/8 and print as reduced kitchen fractions (\"1 1/2\", \"3/4\", \"2\"); a zero result prints \"pinch\".","evaluation_group":"w2-recipe_scaling_and_nutrition-servings-scaler","failed_approach":"Dividing only by 2 turns 4/8 into 2/4 instead of 1/2.","family":"w2-recipe_scaling_and_nutrition-servings-scaler-kitchen-fraction-reduction","id":"FA-96866","implementations":{"attempt":{"sha256":"3687cf07513fcee948516d4e9c49391c86a25762f803a0e42dea9b32dedc9a56","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(items, base, target):\n    if base <= 0 or target <= 0:\n        return 'error: servings must be positive'\n    f = Fraction(target, base)\n    def fmt(e):\n        if e == 0:\n            return 'pinch'\n        whole, rem = divmod(e, 8)\n        if rem == 0:\n            return str(whole)\n        g = 2 if rem % 2 == 0 else 1\n        frac = '%d/%d' % (rem // g, 8 // g)\n        return frac if whole == 0 else '%d %s' % (whole, frac)\n    out = []\n    for name, qty, unit, kind in items:\n        q = Fraction(qty)\n        if kind == 'seasoning':\n            s = q * (1 + (f - 1) * Fraction(3, 4))\n        else:\n            s = q * f\n        if unit == 'each':\n            n = int(s) + (1 if s - int(s) >= Fraction(1, 2) else 0)\n            out.append([name, str(max(1, n)), unit])\n        else:\n            e = int(s * 8 + Fraction(1, 2))\n            out.append([name, fmt(e), unit])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '5/2', 'tsp', 'seasoning'], ['salt', '2', 'tsp', 'seasoning']], 8, 1],\n   [['pepper', '7/8', 'tsp'], ['salt', '3/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['milk', '3/4', 'cup', 'base'], ['garlic clove', '3', 'each', 'base'], ['lime', '2', 'each', 'base'],\n     ['egg', '4', 'each', 'base']],\n    3, 6],\n   [['milk', '1 1/2', 'cup'], ['garlic clove', '6', 'each'], ['lime', '4', 'each'], ['egg', '8', 'each']]],\n  ['generated control 1',\n   [[['milk', '1', 'cup', 'base'], ['butter', '5/2', 'tbsp', 'base'], ['pepper', '1/4', 'tsp', 'seasoning'],\n     ['cumin', '1/4', 'tsp', 'seasoning']],\n    3, 12],\n   [['milk', '4', 'cup'], ['butter', '10', 'tbsp'], ['pepper', '7/8', 'tsp'], ['cumin', '7/8', 'tsp']]],\n  ['generated control 2', [[['salt', '3/4', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 7, 8],\n   [['salt', '7/8', 'tsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1', 'tsp', 'seasoning'], ['garlic clove', '5', 'each', 'base'], ['egg', '4', 'each', 'base'],\n     ['salt', '3/4', 'tsp', 'seasoning']],\n    2, 3],\n   [['pepper', '1 3/8', 'tsp'], ['garlic clove', '8', 'each'], ['egg', '6', 'each'], ['salt', '1', 'tsp']]]],\n [['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['salt', '1/2', 'tsp', 'seasoning'], ['garlic clove', '1/2', 'each', 'base']], 2, 11],\n   [['salt', '2 1/4', 'tsp'], ['garlic clove', '3', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['cumin', '3/2', 'tsp', 'seasoning'], ['salt', '5/2', 'tsp', 'seasoning'],\n     ['flour', '3/4', 'cup', 'base'], ['garlic clove', '4', 'each', 'base'],\n     ['butter', '3/2', 'tbsp', 'base']],\n    2, 10],\n   [['cumin', '6', 'tsp'], ['salt', '10', 'tsp'], ['flour', '3 3/4', 'cup'], ['garlic clove', '20', 'each'],\n    ['butter', '7 1/2', 'tbsp']]],\n  ['generated control 1',\n   [[['butter', '2', 'tbsp', 'base'], ['pepper', '5/2', 'tsp', 'seasoning'], ['milk', '1/2', 'cup', 'base']],\n    5, 8],\n   [['butter', '3 1/4', 'tbsp'], ['pepper', '3 5/8', 'tsp'], ['milk', '3/4', 'cup']]],\n  ['generated control 2',\n   [[['pepper', '1/4', 'tsp', 'seasoning'], ['cumin', '3', 'tsp', 'seasoning'],\n     ['butter', '9/4', 'tbsp', 'base'], ['lime', '4', 'each', 'base']],\n    5, 2],\n   [['pepper', '1/8', 'tsp'], ['cumin', '1 5/8', 'tsp'], ['butter', '7/8', 'tbsp'], ['lime', '2', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1/8', 'tsp', 'seasoning'], ['butter', '2/3', 'tbsp', 'base'], ['egg', '4', 'each', 'base'],\n     ['milk', '1/3', 'cup', 'base']],\n    6, 1],\n   [['pepper', 'pinch', 'tsp'], ['butter', '1/8', 'tbsp'], ['egg', '1', 'each'], ['milk', 'pinch', 'cup']]]],\n [['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '2/3', 'tsp', 'seasoning'], ['salt', '3/4', 'tsp', 'seasoning']], 6, 11],\n   [['pepper', '1 1/8', 'tsp'], ['salt', '1 1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '5/2', 'cup', 'base'], ['milk', '3/4', 'cup', 'base'], ['lime', '2', 'each', 'base'],\n     ['cumin', '3/2', 'tsp', 'seasoning']],\n    5, 3],\n   [['flour', '1 1/2', 'cup'], ['milk', '1/2', 'cup'], ['lime', '1', 'each'], ['cumin', '1', 'tsp']]],\n  ['generated control 1', [[['butter', '2', 'tbsp', 'base'], ['pepper', '3/2', 'tsp', 'seasoning']], 1, 4],\n   [['butter', '8', 'tbsp'], ['pepper', '4 7/8', 'tsp']]],\n  ['generated control 2',\n   [[['pepper', '3/4', 'tsp', 'seasoning'], ['milk', '3/2', 'cup', 'base'], ['egg', '1', 'each', 'base']], 1,\n    8],\n   [['pepper', '4 3/4', 'tsp'], ['milk', '12', 'cup'], ['egg', '8', 'each']]],\n  ['generated control 3',\n   [[['egg', '1', 'each', 'base'], ['flour', '1/8', 'cup', 'base'], ['pepper', '3/4', 'tsp', 'seasoning'],\n     ['salt', '1', 'tsp', 'seasoning']],\n    6, 12],\n   [['egg', '2', 'each'], ['flour', '1/4', 'cup'], ['pepper', '1 3/8', 'tsp'], ['salt', '1 3/4', 'tsp']]]],\n [['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['butter', '2/3', 'tbsp', 'base'], ['flour', '2/3', 'cup', 'base'],\n     ['pepper', '3/2', 'tsp', 'seasoning'], ['salt', '1/4', 'tsp', 'seasoning'],\n     ['lime', '4', 'each', 'base']],\n    7, 3],\n   [['butter', '1/4', 'tbsp'], ['flour', '1/4', 'cup'], ['pepper', '7/8', 'tsp'], ['salt', '1/8', 'tsp'],\n    ['lime', '2', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['egg', '2', 'each', 'base'], ['garlic clove', '2', 'each', 'base'], ['butter', '3/4', 'tbsp', 'base'],\n     ['lime', '4', 'each', 'base'], ['cumin', '1/8', 'tsp', 'seasoning']],\n    2, 12],\n   [['egg', '12', 'each'], ['garlic clove', '12', 'each'], ['butter', '4 1/2', 'tbsp'],\n    ['lime', '24', 'each'], ['cumin', '5/8', 'tsp']]],\n  ['generated control 1', [[['flour', '2/3', 'cup', 'base'], ['garlic clove', '3', 'each', 'base']], 3, 8],\n   [['flour', '1 3/4', 'cup'], ['garlic clove', '8', 'each']]],\n  ['generated control 2',\n   [[['egg', '1/2', 'each', 'base'], ['garlic clove', '3', 'each', 'base'],\n     ['cumin', '1/4', 'tsp', 'seasoning'], ['lime', '1/2', 'each', 'base'], ['butter', '1', 'tbsp', 'base']],\n    5, 1],\n   [['egg', '1', 'each'], ['garlic clove', '1', 'each'], ['cumin', '1/8', 'tsp'], ['lime', '1', 'each'],\n    ['butter', '1/4', 'tbsp']]],\n  ['generated control 3',\n   [[['egg', '2', 'each', 'base'], ['pepper', '2/3', 'tsp', 'seasoning'], ['milk', '9/4', 'cup', 'base'],\n     ['flour', '9/4', 'cup', 'base']],\n    6, 7],\n   [['egg', '2', 'each'], ['pepper', '3/4', 'tsp'], ['milk', '2 5/8', 'cup'], ['flour', '2 5/8', 'cup']]]],\n [['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['regression: kitchen fraction reduction',\n   [[['egg', '1', 'each', 'base'], ['pepper', '1/4', 'tsp', 'seasoning']], 7, 8],\n   [['egg', '1', 'each'], ['pepper', '1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '2/3', 'cup', 'base'], ['pepper', '1', 'tsp', 'seasoning'],\n     ['garlic clove', '4', 'each', 'base'], ['salt', '2', 'tsp', 'seasoning']],\n    3, 11],\n   [['flour', '2 1/2', 'cup'], ['pepper', '3', 'tsp'], ['garlic clove', '15', 'each'], ['salt', '6', 'tsp']]],\n  ['generated control 1', [[['garlic clove', '1/2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 1, 4],\n   [['garlic clove', '2', 'each'], ['flour', '6', 'cup']]],\n  ['generated control 2',\n   [[['flour', '1', 'cup', 'base'], ['butter', '1/8', 'tbsp', 'base'], ['egg', '3', 'each', 'base']], 7, 7],\n   [['flour', '1', 'cup'], ['butter', '1/8', 'tbsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['salt', '2/3', 'tsp', 'seasoning'], ['lime', '2', 'each', 'base'], ['milk', '1/2', 'cup', 'base'],\n     ['egg', '2', 'each', 'base'], ['cumin', '5/2', 'tsp', 'seasoning']],\n    4, 4],\n   [['salt', '5/8', 'tsp'], ['lime', '2', 'each'], ['milk', '1/2', 'cup'], ['egg', '2', 'each'],\n    ['cumin', '2 1/2', 'tsp']]]]]\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":"652f9cb6a5fa9d1f5289f3e2fa1f49fe2706c2f77263bb6d712be49aa9ea12f3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(items, base, target):\n    if base <= 0 or target <= 0:\n        return 'error: servings must be positive'\n    f = Fraction(target, base)\n    def fmt(e):\n        if e == 0:\n            return 'pinch'\n        whole, rem = divmod(e, 8)\n        if rem == 0:\n            return str(whole)\n        g = 1\n        frac = '%d/%d' % (rem // g, 8 // g)\n        return frac if whole == 0 else '%d %s' % (whole, frac)\n    out = []\n    for name, qty, unit, kind in items:\n        q = Fraction(qty)\n        if kind == 'seasoning':\n            s = q * (1 + (f - 1) * Fraction(3, 4))\n        else:\n            s = q * f\n        if unit == 'each':\n            n = int(s) + (1 if s - int(s) >= Fraction(1, 2) else 0)\n            out.append([name, str(max(1, n)), unit])\n        else:\n            e = int(s * 8 + Fraction(1, 2))\n            out.append([name, fmt(e), unit])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '5/2', 'tsp', 'seasoning'], ['salt', '2', 'tsp', 'seasoning']], 8, 1],\n   [['pepper', '7/8', 'tsp'], ['salt', '3/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['milk', '3/4', 'cup', 'base'], ['garlic clove', '3', 'each', 'base'], ['lime', '2', 'each', 'base'],\n     ['egg', '4', 'each', 'base']],\n    3, 6],\n   [['milk', '1 1/2', 'cup'], ['garlic clove', '6', 'each'], ['lime', '4', 'each'], ['egg', '8', 'each']]],\n  ['generated control 1',\n   [[['milk', '1', 'cup', 'base'], ['butter', '5/2', 'tbsp', 'base'], ['pepper', '1/4', 'tsp', 'seasoning'],\n     ['cumin', '1/4', 'tsp', 'seasoning']],\n    3, 12],\n   [['milk', '4', 'cup'], ['butter', '10', 'tbsp'], ['pepper', '7/8', 'tsp'], ['cumin', '7/8', 'tsp']]],\n  ['generated control 2', [[['salt', '3/4', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 7, 8],\n   [['salt', '7/8', 'tsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1', 'tsp', 'seasoning'], ['garlic clove', '5', 'each', 'base'], ['egg', '4', 'each', 'base'],\n     ['salt', '3/4', 'tsp', 'seasoning']],\n    2, 3],\n   [['pepper', '1 3/8', 'tsp'], ['garlic clove', '8', 'each'], ['egg', '6', 'each'], ['salt', '1', 'tsp']]]],\n [['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['salt', '1/2', 'tsp', 'seasoning'], ['garlic clove', '1/2', 'each', 'base']], 2, 11],\n   [['salt', '2 1/4', 'tsp'], ['garlic clove', '3', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['cumin', '3/2', 'tsp', 'seasoning'], ['salt', '5/2', 'tsp', 'seasoning'],\n     ['flour', '3/4', 'cup', 'base'], ['garlic clove', '4', 'each', 'base'],\n     ['butter', '3/2', 'tbsp', 'base']],\n    2, 10],\n   [['cumin', '6', 'tsp'], ['salt', '10', 'tsp'], ['flour', '3 3/4', 'cup'], ['garlic clove', '20', 'each'],\n    ['butter', '7 1/2', 'tbsp']]],\n  ['generated control 1',\n   [[['butter', '2', 'tbsp', 'base'], ['pepper', '5/2', 'tsp', 'seasoning'], ['milk', '1/2', 'cup', 'base']],\n    5, 8],\n   [['butter', '3 1/4', 'tbsp'], ['pepper', '3 5/8', 'tsp'], ['milk', '3/4', 'cup']]],\n  ['generated control 2',\n   [[['pepper', '1/4', 'tsp', 'seasoning'], ['cumin', '3', 'tsp', 'seasoning'],\n     ['butter', '9/4', 'tbsp', 'base'], ['lime', '4', 'each', 'base']],\n    5, 2],\n   [['pepper', '1/8', 'tsp'], ['cumin', '1 5/8', 'tsp'], ['butter', '7/8', 'tbsp'], ['lime', '2', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1/8', 'tsp', 'seasoning'], ['butter', '2/3', 'tbsp', 'base'], ['egg', '4', 'each', 'base'],\n     ['milk', '1/3', 'cup', 'base']],\n    6, 1],\n   [['pepper', 'pinch', 'tsp'], ['butter', '1/8', 'tbsp'], ['egg', '1', 'each'], ['milk', 'pinch', 'cup']]]],\n [['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '2/3', 'tsp', 'seasoning'], ['salt', '3/4', 'tsp', 'seasoning']], 6, 11],\n   [['pepper', '1 1/8', 'tsp'], ['salt', '1 1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '5/2', 'cup', 'base'], ['milk', '3/4', 'cup', 'base'], ['lime', '2', 'each', 'base'],\n     ['cumin', '3/2', 'tsp', 'seasoning']],\n    5, 3],\n   [['flour', '1 1/2', 'cup'], ['milk', '1/2', 'cup'], ['lime', '1', 'each'], ['cumin', '1', 'tsp']]],\n  ['generated control 1', [[['butter', '2', 'tbsp', 'base'], ['pepper', '3/2', 'tsp', 'seasoning']], 1, 4],\n   [['butter', '8', 'tbsp'], ['pepper', '4 7/8', 'tsp']]],\n  ['generated control 2',\n   [[['pepper', '3/4', 'tsp', 'seasoning'], ['milk', '3/2', 'cup', 'base'], ['egg', '1', 'each', 'base']], 1,\n    8],\n   [['pepper', '4 3/4', 'tsp'], ['milk', '12', 'cup'], ['egg', '8', 'each']]],\n  ['generated control 3',\n   [[['egg', '1', 'each', 'base'], ['flour', '1/8', 'cup', 'base'], ['pepper', '3/4', 'tsp', 'seasoning'],\n     ['salt', '1', 'tsp', 'seasoning']],\n    6, 12],\n   [['egg', '2', 'each'], ['flour', '1/4', 'cup'], ['pepper', '1 3/8', 'tsp'], ['salt', '1 3/4', 'tsp']]]],\n [['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['butter', '2/3', 'tbsp', 'base'], ['flour', '2/3', 'cup', 'base'],\n     ['pepper', '3/2', 'tsp', 'seasoning'], ['salt', '1/4', 'tsp', 'seasoning'],\n     ['lime', '4', 'each', 'base']],\n    7, 3],\n   [['butter', '1/4', 'tbsp'], ['flour', '1/4', 'cup'], ['pepper', '7/8', 'tsp'], ['salt', '1/8', 'tsp'],\n    ['lime', '2', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['egg', '2', 'each', 'base'], ['garlic clove', '2', 'each', 'base'], ['butter', '3/4', 'tbsp', 'base'],\n     ['lime', '4', 'each', 'base'], ['cumin', '1/8', 'tsp', 'seasoning']],\n    2, 12],\n   [['egg', '12', 'each'], ['garlic clove', '12', 'each'], ['butter', '4 1/2', 'tbsp'],\n    ['lime', '24', 'each'], ['cumin', '5/8', 'tsp']]],\n  ['generated control 1', [[['flour', '2/3', 'cup', 'base'], ['garlic clove', '3', 'each', 'base']], 3, 8],\n   [['flour', '1 3/4', 'cup'], ['garlic clove', '8', 'each']]],\n  ['generated control 2',\n   [[['egg', '1/2', 'each', 'base'], ['garlic clove', '3', 'each', 'base'],\n     ['cumin', '1/4', 'tsp', 'seasoning'], ['lime', '1/2', 'each', 'base'], ['butter', '1', 'tbsp', 'base']],\n    5, 1],\n   [['egg', '1', 'each'], ['garlic clove', '1', 'each'], ['cumin', '1/8', 'tsp'], ['lime', '1', 'each'],\n    ['butter', '1/4', 'tbsp']]],\n  ['generated control 3',\n   [[['egg', '2', 'each', 'base'], ['pepper', '2/3', 'tsp', 'seasoning'], ['milk', '9/4', 'cup', 'base'],\n     ['flour', '9/4', 'cup', 'base']],\n    6, 7],\n   [['egg', '2', 'each'], ['pepper', '3/4', 'tsp'], ['milk', '2 5/8', 'cup'], ['flour', '2 5/8', 'cup']]]],\n [['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['regression: kitchen fraction reduction',\n   [[['egg', '1', 'each', 'base'], ['pepper', '1/4', 'tsp', 'seasoning']], 7, 8],\n   [['egg', '1', 'each'], ['pepper', '1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '2/3', 'cup', 'base'], ['pepper', '1', 'tsp', 'seasoning'],\n     ['garlic clove', '4', 'each', 'base'], ['salt', '2', 'tsp', 'seasoning']],\n    3, 11],\n   [['flour', '2 1/2', 'cup'], ['pepper', '3', 'tsp'], ['garlic clove', '15', 'each'], ['salt', '6', 'tsp']]],\n  ['generated control 1', [[['garlic clove', '1/2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 1, 4],\n   [['garlic clove', '2', 'each'], ['flour', '6', 'cup']]],\n  ['generated control 2',\n   [[['flour', '1', 'cup', 'base'], ['butter', '1/8', 'tbsp', 'base'], ['egg', '3', 'each', 'base']], 7, 7],\n   [['flour', '1', 'cup'], ['butter', '1/8', 'tbsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['salt', '2/3', 'tsp', 'seasoning'], ['lime', '2', 'each', 'base'], ['milk', '1/2', 'cup', 'base'],\n     ['egg', '2', 'each', 'base'], ['cumin', '5/2', 'tsp', 'seasoning']],\n    4, 4],\n   [['salt', '5/8', 'tsp'], ['lime', '2', 'each'], ['milk', '1/2', 'cup'], ['egg', '2', 'each'],\n    ['cumin', '2 1/2', 'tsp']]]]]\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"},"fixed":{"sha256":"510e58a5def619b96c87c9c3ca6749674efbae9bcfa209f9880f012e06a201b6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(items, base, target):\n    if base <= 0 or target <= 0:\n        return 'error: servings must be positive'\n    f = Fraction(target, base)\n    def fmt(e):\n        if e == 0:\n            return 'pinch'\n        whole, rem = divmod(e, 8)\n        if rem == 0:\n            return str(whole)\n        g = math.gcd(rem, 8)\n        frac = '%d/%d' % (rem // g, 8 // g)\n        return frac if whole == 0 else '%d %s' % (whole, frac)\n    out = []\n    for name, qty, unit, kind in items:\n        q = Fraction(qty)\n        if kind == 'seasoning':\n            s = q * (1 + (f - 1) * Fraction(3, 4))\n        else:\n            s = q * f\n        if unit == 'each':\n            n = int(s) + (1 if s - int(s) >= Fraction(1, 2) else 0)\n            out.append([name, str(max(1, n)), unit])\n        else:\n            e = int(s * 8 + Fraction(1, 2))\n            out.append([name, fmt(e), unit])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '5/2', 'tsp', 'seasoning'], ['salt', '2', 'tsp', 'seasoning']], 8, 1],\n   [['pepper', '7/8', 'tsp'], ['salt', '3/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['milk', '3/4', 'cup', 'base'], ['garlic clove', '3', 'each', 'base'], ['lime', '2', 'each', 'base'],\n     ['egg', '4', 'each', 'base']],\n    3, 6],\n   [['milk', '1 1/2', 'cup'], ['garlic clove', '6', 'each'], ['lime', '4', 'each'], ['egg', '8', 'each']]],\n  ['generated control 1',\n   [[['milk', '1', 'cup', 'base'], ['butter', '5/2', 'tbsp', 'base'], ['pepper', '1/4', 'tsp', 'seasoning'],\n     ['cumin', '1/4', 'tsp', 'seasoning']],\n    3, 12],\n   [['milk', '4', 'cup'], ['butter', '10', 'tbsp'], ['pepper', '7/8', 'tsp'], ['cumin', '7/8', 'tsp']]],\n  ['generated control 2', [[['salt', '3/4', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 7, 8],\n   [['salt', '7/8', 'tsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1', 'tsp', 'seasoning'], ['garlic clove', '5', 'each', 'base'], ['egg', '4', 'each', 'base'],\n     ['salt', '3/4', 'tsp', 'seasoning']],\n    2, 3],\n   [['pepper', '1 3/8', 'tsp'], ['garlic clove', '8', 'each'], ['egg', '6', 'each'], ['salt', '1', 'tsp']]]],\n [['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['regression: kitchen fraction reduction',\n   [[['salt', '1/2', 'tsp', 'seasoning'], ['garlic clove', '1/2', 'each', 'base']], 2, 11],\n   [['salt', '2 1/4', 'tsp'], ['garlic clove', '3', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['cumin', '3/2', 'tsp', 'seasoning'], ['salt', '5/2', 'tsp', 'seasoning'],\n     ['flour', '3/4', 'cup', 'base'], ['garlic clove', '4', 'each', 'base'],\n     ['butter', '3/2', 'tbsp', 'base']],\n    2, 10],\n   [['cumin', '6', 'tsp'], ['salt', '10', 'tsp'], ['flour', '3 3/4', 'cup'], ['garlic clove', '20', 'each'],\n    ['butter', '7 1/2', 'tbsp']]],\n  ['generated control 1',\n   [[['butter', '2', 'tbsp', 'base'], ['pepper', '5/2', 'tsp', 'seasoning'], ['milk', '1/2', 'cup', 'base']],\n    5, 8],\n   [['butter', '3 1/4', 'tbsp'], ['pepper', '3 5/8', 'tsp'], ['milk', '3/4', 'cup']]],\n  ['generated control 2',\n   [[['pepper', '1/4', 'tsp', 'seasoning'], ['cumin', '3', 'tsp', 'seasoning'],\n     ['butter', '9/4', 'tbsp', 'base'], ['lime', '4', 'each', 'base']],\n    5, 2],\n   [['pepper', '1/8', 'tsp'], ['cumin', '1 5/8', 'tsp'], ['butter', '7/8', 'tbsp'], ['lime', '2', 'each']]],\n  ['generated control 3',\n   [[['pepper', '1/8', 'tsp', 'seasoning'], ['butter', '2/3', 'tbsp', 'base'], ['egg', '4', 'each', 'base'],\n     ['milk', '1/3', 'cup', 'base']],\n    6, 1],\n   [['pepper', 'pinch', 'tsp'], ['butter', '1/8', 'tbsp'], ['egg', '1', 'each'], ['milk', 'pinch', 'cup']]]],\n [['double batch with seasoning', [[['salt', '1', 'tsp', 'seasoning'], ['egg', '3', 'each', 'base']], 4, 8],\n   [['salt', '1 3/4', 'tsp'], ['egg', '6', 'each']]],\n  ['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['pepper', '2/3', 'tsp', 'seasoning'], ['salt', '3/4', 'tsp', 'seasoning']], 6, 11],\n   [['pepper', '1 1/8', 'tsp'], ['salt', '1 1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '5/2', 'cup', 'base'], ['milk', '3/4', 'cup', 'base'], ['lime', '2', 'each', 'base'],\n     ['cumin', '3/2', 'tsp', 'seasoning']],\n    5, 3],\n   [['flour', '1 1/2', 'cup'], ['milk', '1/2', 'cup'], ['lime', '1', 'each'], ['cumin', '1', 'tsp']]],\n  ['generated control 1', [[['butter', '2', 'tbsp', 'base'], ['pepper', '3/2', 'tsp', 'seasoning']], 1, 4],\n   [['butter', '8', 'tbsp'], ['pepper', '4 7/8', 'tsp']]],\n  ['generated control 2',\n   [[['pepper', '3/4', 'tsp', 'seasoning'], ['milk', '3/2', 'cup', 'base'], ['egg', '1', 'each', 'base']], 1,\n    8],\n   [['pepper', '4 3/4', 'tsp'], ['milk', '12', 'cup'], ['egg', '8', 'each']]],\n  ['generated control 3',\n   [[['egg', '1', 'each', 'base'], ['flour', '1/8', 'cup', 'base'], ['pepper', '3/4', 'tsp', 'seasoning'],\n     ['salt', '1', 'tsp', 'seasoning']],\n    6, 12],\n   [['egg', '2', 'each'], ['flour', '1/4', 'cup'], ['pepper', '1 3/8', 'tsp'], ['salt', '1 3/4', 'tsp']]]],\n [['tiny scale-down to pinch', [[['cumin', '1/8', 'tsp', 'base'], ['egg', '1', 'each', 'base']], 8, 1],\n   [['cumin', 'pinch', 'tsp'], ['egg', '1', 'each']]],\n  ['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['regression: kitchen fraction reduction',\n   [[['butter', '2/3', 'tbsp', 'base'], ['flour', '2/3', 'cup', 'base'],\n     ['pepper', '3/2', 'tsp', 'seasoning'], ['salt', '1/4', 'tsp', 'seasoning'],\n     ['lime', '4', 'each', 'base']],\n    7, 3],\n   [['butter', '1/4', 'tbsp'], ['flour', '1/4', 'cup'], ['pepper', '7/8', 'tsp'], ['salt', '1/8', 'tsp'],\n    ['lime', '2', 'each']]],\n  ['repair check: kitchen fraction reduction',\n   [[['egg', '2', 'each', 'base'], ['garlic clove', '2', 'each', 'base'], ['butter', '3/4', 'tbsp', 'base'],\n     ['lime', '4', 'each', 'base'], ['cumin', '1/8', 'tsp', 'seasoning']],\n    2, 12],\n   [['egg', '12', 'each'], ['garlic clove', '12', 'each'], ['butter', '4 1/2', 'tbsp'],\n    ['lime', '24', 'each'], ['cumin', '5/8', 'tsp']]],\n  ['generated control 1', [[['flour', '2/3', 'cup', 'base'], ['garlic clove', '3', 'each', 'base']], 3, 8],\n   [['flour', '1 3/4', 'cup'], ['garlic clove', '8', 'each']]],\n  ['generated control 2',\n   [[['egg', '1/2', 'each', 'base'], ['garlic clove', '3', 'each', 'base'],\n     ['cumin', '1/4', 'tsp', 'seasoning'], ['lime', '1/2', 'each', 'base'], ['butter', '1', 'tbsp', 'base']],\n    5, 1],\n   [['egg', '1', 'each'], ['garlic clove', '1', 'each'], ['cumin', '1/8', 'tsp'], ['lime', '1', 'each'],\n    ['butter', '1/4', 'tbsp']]],\n  ['generated control 3',\n   [[['egg', '2', 'each', 'base'], ['pepper', '2/3', 'tsp', 'seasoning'], ['milk', '9/4', 'cup', 'base'],\n     ['flour', '9/4', 'cup', 'base']],\n    6, 7],\n   [['egg', '2', 'each'], ['pepper', '3/4', 'tsp'], ['milk', '2 5/8', 'cup'], ['flour', '2 5/8', 'cup']]]],\n [['half egg rounds up', [[['egg', '3', 'each', 'base'], ['milk', '1/2', 'cup', 'base']], 4, 6],\n   [['egg', '5', 'each'], ['milk', '3/4', 'cup']]],\n  ['identity scaling control', [[['egg', '2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 4, 4],\n   [['egg', '2', 'each'], ['flour', '1 1/2', 'cup']]],\n  ['zero servings rejected', [[['egg', '2', 'each', 'base']], 0, 4], 'error: servings must be positive'],\n  ['regression: kitchen fraction reduction',\n   [[['egg', '1', 'each', 'base'], ['pepper', '1/4', 'tsp', 'seasoning']], 7, 8],\n   [['egg', '1', 'each'], ['pepper', '1/4', 'tsp']]],\n  ['repair check: kitchen fraction reduction',\n   [[['flour', '2/3', 'cup', 'base'], ['pepper', '1', 'tsp', 'seasoning'],\n     ['garlic clove', '4', 'each', 'base'], ['salt', '2', 'tsp', 'seasoning']],\n    3, 11],\n   [['flour', '2 1/2', 'cup'], ['pepper', '3', 'tsp'], ['garlic clove', '15', 'each'], ['salt', '6', 'tsp']]],\n  ['generated control 1', [[['garlic clove', '1/2', 'each', 'base'], ['flour', '3/2', 'cup', 'base']], 1, 4],\n   [['garlic clove', '2', 'each'], ['flour', '6', 'cup']]],\n  ['generated control 2',\n   [[['flour', '1', 'cup', 'base'], ['butter', '1/8', 'tbsp', 'base'], ['egg', '3', 'each', 'base']], 7, 7],\n   [['flour', '1', 'cup'], ['butter', '1/8', 'tbsp'], ['egg', '3', 'each']]],\n  ['generated control 3',\n   [[['salt', '2/3', 'tsp', 'seasoning'], ['lime', '2', 'each', 'base'], ['milk', '1/2', 'cup', 'base'],\n     ['egg', '2', 'each', 'base'], ['cumin', '5/2', 'tsp', 'seasoning']],\n    4, 4],\n   [['salt', '5/8', 'tsp'], ['lime', '2', 'each'], ['milk', '1/2', 'cup'], ['egg', '2', 'each'],\n    ['cumin', '2 1/2', 'tsp']]]]]\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-recipe_scaling_and_nutrition-servings-scaler-kitchen-fraction-reduction","generated_at":"2026-09-29T14:52:26.621365+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Home and commercial recipe scalers must keep countable items whole and print measurable fractions cooks can actually portion.","repair":"Reduce rem/8 by gcd(rem, 8).","root_cause":"The remainder in eighths is printed without dividing out the common factor.","sha256":"382e5876be1a4f8d640c5e0f199d7a697ba9dfe58a9f0b2955aad40e240eec38","title":"Servings scaler: kitchen fraction reduction · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.472,"exit_code":1,"observations":[{"actual":[["egg","2","each"],["flour","1 2/4","cup"]],"check":"identity scaling control","expected":[["egg","2","each"],["flour","1 1/2","cup"]],"passed":false},{"actual":"error: servings must be positive","check":"zero servings rejected","expected":"error: servings must be positive","passed":true},{"actual":[["salt","1 3/4","tsp"],["egg","6","each"]],"check":"double batch with seasoning","expected":[["salt","1 3/4","tsp"],["egg","6","each"]],"passed":true},{"actual":[["pepper","7/8","tsp"],["salt","3/4","tsp"]],"check":"regression: kitchen fraction reduction","expected":[["pepper","7/8","tsp"],["salt","3/4","tsp"]],"passed":true},{"actual":[["milk","1 2/4","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"check":"repair check: kitchen fraction reduction","expected":[["milk","1 1/2","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"passed":false},{"actual":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"check":"generated control 1","expected":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"passed":true},{"actual":[["salt","7/8","tsp"],["egg","3","each"]],"check":"generated control 2","expected":[["salt","7/8","tsp"],["egg","3","each"]],"passed":true},{"actual":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"check":"generated control 3","expected":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"identity scaling control\", \"actual\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 2/4\", \"cup\"]], \"expected\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 1/2\", \"cup\"]], \"passed\": false}, {\"check\": \"zero servings rejected\", \"actual\": \"error: servings must be positive\", \"expected\": \"error: servings must be positive\", \"passed\": true}, {\"check\": \"double batch with seasoning\", \"actual\": [[\"salt\", \"1 3/4\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"expected\": [[\"salt\", \"1 3/4\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"passed\": true}, {\"check\": \"regression: kitchen fraction reduction\", \"actual\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"3/4\", \"tsp\"]], \"expected\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"3/4\", \"tsp\"]], \"passed\": true}, {\"check\": \"repair check: kitchen fraction reduction\", \"actual\": [[\"milk\", \"1 2/4\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"expected\": [[\"milk\", \"1 1/2\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"passed\": false}, {\"check\": \"generated control 1\", \"actual\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"expected\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"passed\": true}, {\"check\": \"generated control 2\", \"actual\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"expected\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"passed\": true}, {\"check\": \"generated control 3\", \"actual\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"expected\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.83,"exit_code":1,"observations":[{"actual":[["egg","2","each"],["flour","1 4/8","cup"]],"check":"identity scaling control","expected":[["egg","2","each"],["flour","1 1/2","cup"]],"passed":false},{"actual":"error: servings must be positive","check":"zero servings rejected","expected":"error: servings must be positive","passed":true},{"actual":[["salt","1 6/8","tsp"],["egg","6","each"]],"check":"double batch with seasoning","expected":[["salt","1 3/4","tsp"],["egg","6","each"]],"passed":false},{"actual":[["pepper","7/8","tsp"],["salt","6/8","tsp"]],"check":"regression: kitchen fraction reduction","expected":[["pepper","7/8","tsp"],["salt","3/4","tsp"]],"passed":false},{"actual":[["milk","1 4/8","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"check":"repair check: kitchen fraction reduction","expected":[["milk","1 1/2","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"passed":false},{"actual":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"check":"generated control 1","expected":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"passed":true},{"actual":[["salt","7/8","tsp"],["egg","3","each"]],"check":"generated control 2","expected":[["salt","7/8","tsp"],["egg","3","each"]],"passed":true},{"actual":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"check":"generated control 3","expected":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"identity scaling control\", \"actual\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 4/8\", \"cup\"]], \"expected\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 1/2\", \"cup\"]], \"passed\": false}, {\"check\": \"zero servings rejected\", \"actual\": \"error: servings must be positive\", \"expected\": \"error: servings must be positive\", \"passed\": true}, {\"check\": \"double batch with seasoning\", \"actual\": [[\"salt\", \"1 6/8\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"expected\": [[\"salt\", \"1 3/4\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"passed\": false}, {\"check\": \"regression: kitchen fraction reduction\", \"actual\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"6/8\", \"tsp\"]], \"expected\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"3/4\", \"tsp\"]], \"passed\": false}, {\"check\": \"repair check: kitchen fraction reduction\", \"actual\": [[\"milk\", \"1 4/8\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"expected\": [[\"milk\", \"1 1/2\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"passed\": false}, {\"check\": \"generated control 1\", \"actual\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"expected\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"passed\": true}, {\"check\": \"generated control 2\", \"actual\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"expected\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"passed\": true}, {\"check\": \"generated control 3\", \"actual\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"expected\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.574,"exit_code":0,"observations":[{"actual":[["egg","2","each"],["flour","1 1/2","cup"]],"check":"identity scaling control","expected":[["egg","2","each"],["flour","1 1/2","cup"]],"passed":true},{"actual":"error: servings must be positive","check":"zero servings rejected","expected":"error: servings must be positive","passed":true},{"actual":[["salt","1 3/4","tsp"],["egg","6","each"]],"check":"double batch with seasoning","expected":[["salt","1 3/4","tsp"],["egg","6","each"]],"passed":true},{"actual":[["pepper","7/8","tsp"],["salt","3/4","tsp"]],"check":"regression: kitchen fraction reduction","expected":[["pepper","7/8","tsp"],["salt","3/4","tsp"]],"passed":true},{"actual":[["milk","1 1/2","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"check":"repair check: kitchen fraction reduction","expected":[["milk","1 1/2","cup"],["garlic clove","6","each"],["lime","4","each"],["egg","8","each"]],"passed":true},{"actual":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"check":"generated control 1","expected":[["milk","4","cup"],["butter","10","tbsp"],["pepper","7/8","tsp"],["cumin","7/8","tsp"]],"passed":true},{"actual":[["salt","7/8","tsp"],["egg","3","each"]],"check":"generated control 2","expected":[["salt","7/8","tsp"],["egg","3","each"]],"passed":true},{"actual":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"check":"generated control 3","expected":[["pepper","1 3/8","tsp"],["garlic clove","8","each"],["egg","6","each"],["salt","1","tsp"]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"identity scaling control\", \"actual\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 1/2\", \"cup\"]], \"expected\": [[\"egg\", \"2\", \"each\"], [\"flour\", \"1 1/2\", \"cup\"]], \"passed\": true}, {\"check\": \"zero servings rejected\", \"actual\": \"error: servings must be positive\", \"expected\": \"error: servings must be positive\", \"passed\": true}, {\"check\": \"double batch with seasoning\", \"actual\": [[\"salt\", \"1 3/4\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"expected\": [[\"salt\", \"1 3/4\", \"tsp\"], [\"egg\", \"6\", \"each\"]], \"passed\": true}, {\"check\": \"regression: kitchen fraction reduction\", \"actual\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"3/4\", \"tsp\"]], \"expected\": [[\"pepper\", \"7/8\", \"tsp\"], [\"salt\", \"3/4\", \"tsp\"]], \"passed\": true}, {\"check\": \"repair check: kitchen fraction reduction\", \"actual\": [[\"milk\", \"1 1/2\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"expected\": [[\"milk\", \"1 1/2\", \"cup\"], [\"garlic clove\", \"6\", \"each\"], [\"lime\", \"4\", \"each\"], [\"egg\", \"8\", \"each\"]], \"passed\": true}, {\"check\": \"generated control 1\", \"actual\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"expected\": [[\"milk\", \"4\", \"cup\"], [\"butter\", \"10\", \"tbsp\"], [\"pepper\", \"7/8\", \"tsp\"], [\"cumin\", \"7/8\", \"tsp\"]], \"passed\": true}, {\"check\": \"generated control 2\", \"actual\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"expected\": [[\"salt\", \"7/8\", \"tsp\"], [\"egg\", \"3\", \"each\"]], \"passed\": true}, {\"check\": \"generated control 3\", \"actual\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"expected\": [[\"pepper\", \"1 3/8\", \"tsp\"], [\"garlic clove\", \"8\", \"each\"], [\"egg\", \"6\", \"each\"], [\"salt\", \"1\", \"tsp\"]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}