{"abstract":"A severely dehydrated child with 4% weight loss is downgraded to SOME.","category":"Clinical triage scoring","checks":9,"contract":"Input {appearance (normal|thirsty_restless|drowsy_limp), eyes (normal|slightly_sunken|very_sunken), mucous (moist|sticky|dry), tears (present|decreased|absent), weight_loss_pct (or null)}. Items score 0/1/2 in the listed order. Category: 0 NONE, 1-4 SOME, 5-8 MODERATE_SEVERE. A measured weight loss >= 10% forces MODERATE_SEVERE; >= 3% raises NONE to SOME but never lowers a category. Return {score, category}.","contract_signature":"x","evaluation_group":"w2-triage-dehydration-scale","failed_approach":"Adding s > 0 means a child with no signs and 3% loss is never raised to SOME.","family":"w2-triage-dehydration-scale-override-never-downgrades","id":"FA-64791","implementations":{"attempt":{"sha256":"52c2f4b14f47486a7ccebe9d9a3eb14487c3db6a71e6e8a79820e43759116488","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    items = [('appearance', ['normal', 'thirsty_restless', 'drowsy_limp']), ('eyes', ['normal', 'slightly_sunken', 'very_sunken']),\n             ('mucous', ['moist', 'sticky', 'dry']), ('tears', ['present', 'decreased', 'absent'])]\n    s = sum(opts.index(x[k]) for k, opts in items)\n    cat = 'NONE' if s == 0 else 'SOME' if s <= 4 else 'MODERATE_SEVERE'\n    w = x['weight_loss_pct']\n    if w is not None:\n        w = Fraction(str(w))\n        if w >= 10:\n            cat = 'MODERATE_SEVERE'\n        elif w >= 3 and cat != 'MODERATE_SEVERE' and s > 0:\n            cat = 'SOME'\n    return {'score': s, 'category': cat}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '1'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '11'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.1'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.1'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '2'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 1, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '12'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.2'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.2'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '0'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '13'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.3'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.3'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '1'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 1, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '14'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.4'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.4'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '2'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '15'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.5'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.5'},\n   {'score': 0, 'category': 'SOME'})]]\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":"61056a76a9892cf52eae4efd4e50e06b833f511d07e2e934f73e63af99f3773d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    items = [('appearance', ['normal', 'thirsty_restless', 'drowsy_limp']), ('eyes', ['normal', 'slightly_sunken', 'very_sunken']),\n             ('mucous', ['moist', 'sticky', 'dry']), ('tears', ['present', 'decreased', 'absent'])]\n    s = sum(opts.index(x[k]) for k, opts in items)\n    cat = 'NONE' if s == 0 else 'SOME' if s <= 4 else 'MODERATE_SEVERE'\n    w = x['weight_loss_pct']\n    if w is not None:\n        w = Fraction(str(w))\n        if w >= 10:\n            cat = 'MODERATE_SEVERE'\n        elif w >= 3:\n            cat = 'SOME'\n    return {'score': s, 'category': cat}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '1'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '11'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.1'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.1'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '2'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 1, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '12'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.2'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.2'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '0'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '13'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.3'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.3'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '1'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 1, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '14'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.4'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.4'},\n   {'score': 0, 'category': 'SOME'})],\n [('well child',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '2'},\n   {'score': 0, 'category': 'NONE'}),\n  ('score exactly 4',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 4, 'category': 'SOME'}),\n  ('score exactly 5',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'slightly_sunken',\n    'mucous': 'sticky',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 5, 'category': 'MODERATE_SEVERE'}),\n  ('tears absent only',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'sticky', 'tears': 'absent', 'weight_loss_pct': None},\n   {'score': 3, 'category': 'SOME'}),\n  ('tears decreased only',\n   {'appearance': 'normal',\n    'eyes': 'slightly_sunken',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': None},\n   {'score': 2, 'category': 'SOME'}),\n  ('weight loss exactly 10 percent',\n   {'appearance': 'thirsty_restless',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'decreased',\n    'weight_loss_pct': '10'},\n   {'score': 2, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 10 percent no signs',\n   {'appearance': 'normal', 'eyes': 'normal', 'mucous': 'moist', 'tears': 'present', 'weight_loss_pct': '15'},\n   {'score': 0, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 4 percent with severe signs',\n   {'appearance': 'drowsy_limp',\n    'eyes': 'very_sunken',\n    'mucous': 'dry',\n    'tears': 'absent',\n    'weight_loss_pct': '4.5'},\n   {'score': 8, 'category': 'MODERATE_SEVERE'}),\n  ('weight loss 3 percent without signs',\n   {'appearance': 'normal',\n    'eyes': 'normal',\n    'mucous': 'moist',\n    'tears': 'present',\n    'weight_loss_pct': '3.5'},\n   {'score': 0, 'category': 'SOME'})]]\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 software model with explicitly stipulated thresholds and formulas; it is not clinical guidance, not a validated medical calculator, and makes no claim of conformance to any published protocol. Numbered variants vary patient and order inputs. 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-triage-dehydration-scale-override-never-downgrades","generated_at":"2026-09-29T14:47:28.130696+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Ordinal clinical scales combined with an objective override can fail in item mapping, band edges and override direction.","root_cause":"The 3% rule overwrites any category instead of only raising NONE.","sha256":"cfea12bdaa8fe981a15a6a53aca50a84c58d5f198488800bb1b983e637b548b2","title":"Four-item dehydration scale with weight-loss override: override never downgrades · 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":44.299,"exit_code":1,"observations":[{"actual":{"category":"NONE","score":0},"check":"well child","expected":{"category":"NONE","score":0},"passed":true},{"actual":{"category":"SOME","score":4},"check":"score exactly 4","expected":{"category":"SOME","score":4},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":5},"check":"score exactly 5","expected":{"category":"MODERATE_SEVERE","score":5},"passed":true},{"actual":{"category":"SOME","score":3},"check":"tears absent only","expected":{"category":"SOME","score":3},"passed":true},{"actual":{"category":"SOME","score":2},"check":"tears decreased only","expected":{"category":"SOME","score":2},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":2},"check":"weight loss exactly 10 percent","expected":{"category":"MODERATE_SEVERE","score":2},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":0},"check":"weight loss 10 percent no signs","expected":{"category":"MODERATE_SEVERE","score":0},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":8},"check":"weight loss 4 percent with severe signs","expected":{"category":"MODERATE_SEVERE","score":8},"passed":true},{"actual":{"category":"NONE","score":0},"check":"weight loss 3 percent without signs","expected":{"category":"SOME","score":0},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"well child\", \"actual\": {\"score\": 0, \"category\": \"NONE\"}, \"expected\": {\"score\": 0, \"category\": \"NONE\"}, \"passed\": true}, {\"check\": \"score exactly 4\", \"actual\": {\"score\": 4, \"category\": \"SOME\"}, \"expected\": {\"score\": 4, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"score exactly 5\", \"actual\": {\"score\": 5, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 5, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"tears absent only\", \"actual\": {\"score\": 3, \"category\": \"SOME\"}, \"expected\": {\"score\": 3, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"tears decreased only\", \"actual\": {\"score\": 2, \"category\": \"SOME\"}, \"expected\": {\"score\": 2, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"weight loss exactly 10 percent\", \"actual\": {\"score\": 2, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 2, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"weight loss 10 percent no signs\", \"actual\": {\"score\": 0, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 0, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"weight loss 4 percent with severe signs\", \"actual\": {\"score\": 8, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 8, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"weight loss 3 percent without signs\", \"actual\": {\"score\": 0, \"category\": \"NONE\"}, \"expected\": {\"score\": 0, \"category\": \"SOME\"}, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":46.672,"exit_code":1,"observations":[{"actual":{"category":"NONE","score":0},"check":"well child","expected":{"category":"NONE","score":0},"passed":true},{"actual":{"category":"SOME","score":4},"check":"score exactly 4","expected":{"category":"SOME","score":4},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":5},"check":"score exactly 5","expected":{"category":"MODERATE_SEVERE","score":5},"passed":true},{"actual":{"category":"SOME","score":3},"check":"tears absent only","expected":{"category":"SOME","score":3},"passed":true},{"actual":{"category":"SOME","score":2},"check":"tears decreased only","expected":{"category":"SOME","score":2},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":2},"check":"weight loss exactly 10 percent","expected":{"category":"MODERATE_SEVERE","score":2},"passed":true},{"actual":{"category":"MODERATE_SEVERE","score":0},"check":"weight loss 10 percent no signs","expected":{"category":"MODERATE_SEVERE","score":0},"passed":true},{"actual":{"category":"SOME","score":8},"check":"weight loss 4 percent with severe signs","expected":{"category":"MODERATE_SEVERE","score":8},"passed":false},{"actual":{"category":"SOME","score":0},"check":"weight loss 3 percent without signs","expected":{"category":"SOME","score":0},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"well child\", \"actual\": {\"score\": 0, \"category\": \"NONE\"}, \"expected\": {\"score\": 0, \"category\": \"NONE\"}, \"passed\": true}, {\"check\": \"score exactly 4\", \"actual\": {\"score\": 4, \"category\": \"SOME\"}, \"expected\": {\"score\": 4, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"score exactly 5\", \"actual\": {\"score\": 5, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 5, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"tears absent only\", \"actual\": {\"score\": 3, \"category\": \"SOME\"}, \"expected\": {\"score\": 3, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"tears decreased only\", \"actual\": {\"score\": 2, \"category\": \"SOME\"}, \"expected\": {\"score\": 2, \"category\": \"SOME\"}, \"passed\": true}, {\"check\": \"weight loss exactly 10 percent\", \"actual\": {\"score\": 2, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 2, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"weight loss 10 percent no signs\", \"actual\": {\"score\": 0, \"category\": \"MODERATE_SEVERE\"}, \"expected\": {\"score\": 0, \"category\": \"MODERATE_SEVERE\"}, \"passed\": true}, {\"check\": \"weight loss 4 percent with severe signs\", \"actual\": {\"score\": 8, \"category\": \"SOME\"}, \"expected\": {\"score\": 8, \"category\": \"MODERATE_SEVERE\"}, \"passed\": false}, {\"check\": \"weight loss 3 percent without signs\", \"actual\": {\"score\": 0, \"category\": \"SOME\"}, \"expected\": {\"score\": 0, \"category\": \"SOME\"}, \"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."}}