{"abstract":"Successful resale produces a negative or reversed withdrawal loss.","category":"Auction allocation rules","checks":10,"contract":"A toy auction withdrawal policy distinguishes voluntary withdrawal before award, excused withdrawal, replacement proceeds, paid deposits and caps on liquidated liability. Nonnegative integer credits are used; no legal or financial interpretation is intended. Named decision resale-shortfall: For resale shortfall, apply the stipulated decision max(0,x[\"bid\"]-x[\"resale\"]).","evaluation_group":"s3-auction-withdrawal-liability","failed_approach":"The attempted repair uses abs(x[\"bid\"]-x[\"resale\"]); the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-withdrawal-liability-resale-shortfall","id":"FA-56741","implementations":{"attempt":{"sha256":"35e9dff7b41d908774e34bc9f1c8af566efd1c5a8502393d959a7a5d0ea4a22f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = abs(x[\"bid\"]-x[\"resale\"])\n    v1 = 0 if x[\"excused\"] else x[\"fee\"]\n    v2 = max(0,x[\"bid\"]-x[\"resale\"]) if x[\"awarded\"] else 0\n    v3 = 0 if x[\"notice\"]<=x[\"cutoff\"] else x[\"deposit\"]\n    v4 = max(0,x[\"bid\"]-x[\"resale\"]-x[\"deposit\"])\n    v5 = max(0,min(x[\"cap\"],max(0,x[\"bid\"]-x[\"resale\"])+x[\"fee\"])-x[\"already_paid\"])\n    v6 = x[\"bond\"] if x[\"forfeit\"] and not x[\"released\"] else 0\n    v7 = max(0,x[\"awarded_units\"]-x[\"returned_units\"])\n    v8 = min(x[\"withdrawn_units\"],max(0,x[\"awarded_units\"]-x[\"returned_units\"]))\n    v9 = [b for b in dict.fromkeys(b for op,b in x[\"events\"]) if [op for op,c in x[\"events\"] if c==b][-1]==\"withdraw\"]\n    return {'resale-shortfall':v0,'excused-fee-waiver':v1,'award-liability-gate':v2,'notice-penalty':v3,'deposit-offset':v4,'paid-liability-credit':v5,'released-bond-exclusion':v6,'unreturned-award-units':v7,'withdrawal-unit-cap':v8,'reinstatement-after-withdrawal':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('notice order retained / resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('normal contract', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('notice order retained', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('excused default', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': True, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('before award', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': False, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('timely notice', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 3, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('exact notice cutoff', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 4, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('liability already paid', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 40, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('bond released', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': True, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['resale-shortfall'], expected[N-1])\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":"817b8916ad88d67dee1ad40473f2979a4723de230ad54024072ae6fcb22be428","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"bid\"]-x[\"resale\"]\n    v1 = 0 if x[\"excused\"] else x[\"fee\"]\n    v2 = max(0,x[\"bid\"]-x[\"resale\"]) if x[\"awarded\"] else 0\n    v3 = 0 if x[\"notice\"]<=x[\"cutoff\"] else x[\"deposit\"]\n    v4 = max(0,x[\"bid\"]-x[\"resale\"]-x[\"deposit\"])\n    v5 = max(0,min(x[\"cap\"],max(0,x[\"bid\"]-x[\"resale\"])+x[\"fee\"])-x[\"already_paid\"])\n    v6 = x[\"bond\"] if x[\"forfeit\"] and not x[\"released\"] else 0\n    v7 = max(0,x[\"awarded_units\"]-x[\"returned_units\"])\n    v8 = min(x[\"withdrawn_units\"],max(0,x[\"awarded_units\"]-x[\"returned_units\"]))\n    v9 = [b for b in dict.fromkeys(b for op,b in x[\"events\"]) if [op for op,c in x[\"events\"] if c==b][-1]==\"withdraw\"]\n    return {'resale-shortfall':v0,'excused-fee-waiver':v1,'award-liability-gate':v2,'notice-penalty':v3,'deposit-offset':v4,'paid-liability-credit':v5,'released-bond-exclusion':v6,'unreturned-award-units':v7,'withdrawal-unit-cap':v8,'reinstatement-after-withdrawal':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('notice order retained / resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('normal contract', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('notice order retained', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('excused default', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': True, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('before award', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': False, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('timely notice', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 3, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('exact notice cutoff', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 4, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('liability already paid', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 40, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('bond released', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': True, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['resale-shortfall'], expected[N-1])\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":"3a95411b5cd131c3d9d7e0d842a85883756851c738a5bac90a049e7de79068b4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = max(0,x[\"bid\"]-x[\"resale\"])\n    v1 = 0 if x[\"excused\"] else x[\"fee\"]\n    v2 = max(0,x[\"bid\"]-x[\"resale\"]) if x[\"awarded\"] else 0\n    v3 = 0 if x[\"notice\"]<=x[\"cutoff\"] else x[\"deposit\"]\n    v4 = max(0,x[\"bid\"]-x[\"resale\"]-x[\"deposit\"])\n    v5 = max(0,min(x[\"cap\"],max(0,x[\"bid\"]-x[\"resale\"])+x[\"fee\"])-x[\"already_paid\"])\n    v6 = x[\"bond\"] if x[\"forfeit\"] and not x[\"released\"] else 0\n    v7 = max(0,x[\"awarded_units\"]-x[\"returned_units\"])\n    v8 = min(x[\"withdrawn_units\"],max(0,x[\"awarded_units\"]-x[\"returned_units\"]))\n    v9 = [b for b in dict.fromkeys(b for op,b in x[\"events\"]) if [op for op,c in x[\"events\"] if c==b][-1]==\"withdraw\"]\n    return {'resale-shortfall':v0,'excused-fee-waiver':v1,'award-liability-gate':v2,'notice-penalty':v3,'deposit-offset':v4,'paid-liability-credit':v5,'released-bond-exclusion':v6,'unreturned-award-units':v7,'withdrawal-unit-cap':v8,'reinstatement-after-withdrawal':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('notice order retained / resale surplus', {'bid': 30, 'resale': 40, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('normal contract', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('notice order retained', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['b', 'a', 'b'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('excused default', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': True, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('before award', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': False, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('timely notice', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 3, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('exact notice cutoff', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 4, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('liability already paid', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 40, 'cap': 20, 'released': False, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60]), ('bond released', {'bid': 30, 'resale': 18, 'deposit': 8, 'fee': 3, 'excused': False, 'awarded': True, 'notice': 5, 'cutoff': 4, 'already_paid': 2, 'cap': 20, 'released': True, 'withdrawn_units': 2, 'awarded_units': 5, 'returned_units': 1, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [12, 24, 36, 48, 60])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['resale-shortfall'], expected[N-1])\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":"Stipulated toy auction rules, not a venue specification, financial advice, optimization claim, or live trading implementation. Nonnegative integer inputs and internally aligned list fields only. 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":"s3-auction-allocation-rules-withdrawal-liability-resale-shortfall","generated_at":"2026-09-29T14:46:09.992376+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline administrative auction model for software failure analysis.","repair":"For resale shortfall, apply the stipulated decision max(0,x[\"bid\"]-x[\"resale\"]).","root_cause":"Successful resale produces a negative or reversed withdrawal loss.","sha256":"04a5cb9138d83b536895d69349a434b4b6928036f666d238c5601320708679ea","title":"Withdrawal liability: resale shortfall · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.305,"exit_code":1,"observations":[{"actual":10,"check":"resale surplus","expected":0,"passed":false},{"actual":10,"check":"notice order retained / resale surplus","expected":0,"passed":false},{"actual":12,"check":"normal contract","expected":12,"passed":true},{"actual":12,"check":"notice order retained","expected":12,"passed":true},{"actual":12,"check":"excused default","expected":12,"passed":true},{"actual":12,"check":"before award","expected":12,"passed":true},{"actual":12,"check":"timely notice","expected":12,"passed":true},{"actual":12,"check":"exact notice cutoff","expected":12,"passed":true},{"actual":12,"check":"liability already paid","expected":12,"passed":true},{"actual":12,"check":"bond released","expected":12,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"resale surplus\", \"actual\": 10, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / resale surplus\", \"actual\": 10, \"expected\": 0, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"excused default\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"before award\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 12, \"expected\": 12, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.662,"exit_code":1,"observations":[{"actual":-10,"check":"resale surplus","expected":0,"passed":false},{"actual":-10,"check":"notice order retained / resale surplus","expected":0,"passed":false},{"actual":12,"check":"normal contract","expected":12,"passed":true},{"actual":12,"check":"notice order retained","expected":12,"passed":true},{"actual":12,"check":"excused default","expected":12,"passed":true},{"actual":12,"check":"before award","expected":12,"passed":true},{"actual":12,"check":"timely notice","expected":12,"passed":true},{"actual":12,"check":"exact notice cutoff","expected":12,"passed":true},{"actual":12,"check":"liability already paid","expected":12,"passed":true},{"actual":12,"check":"bond released","expected":12,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"resale surplus\", \"actual\": -10, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / resale surplus\", \"actual\": -10, \"expected\": 0, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"excused default\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"before award\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 12, \"expected\": 12, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.568,"exit_code":0,"observations":[{"actual":0,"check":"resale surplus","expected":0,"passed":true},{"actual":0,"check":"notice order retained / resale surplus","expected":0,"passed":true},{"actual":12,"check":"normal contract","expected":12,"passed":true},{"actual":12,"check":"notice order retained","expected":12,"passed":true},{"actual":12,"check":"excused default","expected":12,"passed":true},{"actual":12,"check":"before award","expected":12,"passed":true},{"actual":12,"check":"timely notice","expected":12,"passed":true},{"actual":12,"check":"exact notice cutoff","expected":12,"passed":true},{"actual":12,"check":"liability already paid","expected":12,"passed":true},{"actual":12,"check":"bond released","expected":12,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"resale surplus\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"notice order retained / resale surplus\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"normal contract\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"excused default\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"before award\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 12, \"expected\": 12, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 12, \"expected\": 12, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}