{"abstract":"Withdrawals include award units already physically returned.","category":"Auction allocation rules","checks":11,"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 withdrawal-unit-cap: For withdrawal unit cap, apply the stipulated decision min(x[\"withdrawn_units\"],max(0,x[\"awarded_units\"]-x[\"returned_units\"])).","contract_signature":"x","evaluation_group":"s3-auction-withdrawal-liability","failed_approach":"The attempted repair uses min(x[\"withdrawn_units\"],x[\"awarded_units\"]); the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-withdrawal-liability-withdrawal-unit-cap","id":"FA-56781","implementations":{"attempt":{"sha256":"9ebcb610dc5c18bb6bbae761beaec3aa5bb2dcac9f102a437447bc5e769552fe","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\"],x[\"awarded_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 = [('all units returned', {'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': 5, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('notice order retained / all units returned', {'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': 5, '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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10])]\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))['withdrawal-unit-cap'], 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":"6cd09b9a47eba00444d1a2e1170ec2d27917fe7a24a2c78398e0213098a6bba0","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 = x[\"withdrawn_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 = [('all units returned', {'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': 5, 'bond': 6, 'forfeit': True, 'withdrawals': ['a', 'b', 'a'], 'events': [['withdraw', 'a'], ['reinstate', 'a'], ['withdraw', 'b']]}, [0, 0, 0, 0, 0]), ('notice order retained / all units returned', {'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': 5, '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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10]), ('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']]}, [2, 4, 6, 8, 10])]\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))['withdrawal-unit-cap'], 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-withdrawal-unit-cap","generated_at":"2026-09-29T14:46:10.342258+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline administrative auction model for software failure analysis.","root_cause":"Withdrawals include award units already physically returned.","sha256":"5bc1a8635d28b5692adfd473ff4571346a640d489241014657d2d0e5030971ad","title":"Withdrawal liability: withdrawal unit cap · 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":43.857,"exit_code":1,"observations":[{"actual":2,"check":"all units returned","expected":0,"passed":false},{"actual":2,"check":"notice order retained / all units returned","expected":0,"passed":false},{"actual":2,"check":"normal contract","expected":2,"passed":true},{"actual":2,"check":"notice order retained","expected":2,"passed":true},{"actual":2,"check":"resale surplus","expected":2,"passed":true},{"actual":2,"check":"excused default","expected":2,"passed":true},{"actual":2,"check":"before award","expected":2,"passed":true},{"actual":2,"check":"timely notice","expected":2,"passed":true},{"actual":2,"check":"exact notice cutoff","expected":2,"passed":true},{"actual":2,"check":"liability already paid","expected":2,"passed":true},{"actual":2,"check":"bond released","expected":2,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"all units returned\", \"actual\": 2, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / all units returned\", \"actual\": 2, \"expected\": 0, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"resale surplus\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"excused default\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"before award\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 2, \"expected\": 2, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.457,"exit_code":1,"observations":[{"actual":2,"check":"all units returned","expected":0,"passed":false},{"actual":2,"check":"notice order retained / all units returned","expected":0,"passed":false},{"actual":2,"check":"normal contract","expected":2,"passed":true},{"actual":2,"check":"notice order retained","expected":2,"passed":true},{"actual":2,"check":"resale surplus","expected":2,"passed":true},{"actual":2,"check":"excused default","expected":2,"passed":true},{"actual":2,"check":"before award","expected":2,"passed":true},{"actual":2,"check":"timely notice","expected":2,"passed":true},{"actual":2,"check":"exact notice cutoff","expected":2,"passed":true},{"actual":2,"check":"liability already paid","expected":2,"passed":true},{"actual":2,"check":"bond released","expected":2,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"all units returned\", \"actual\": 2, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / all units returned\", \"actual\": 2, \"expected\": 0, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"resale surplus\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"excused default\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"before award\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 2, \"expected\": 2, \"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."}}