{"abstract":"An already forfeited deposit is added to damages instead of credited.","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 deposit-offset: For deposit offset, apply the stipulated decision max(0,x[\"bid\"]-x[\"resale\"]-x[\"deposit\"]).","contract_signature":"x","evaluation_group":"s3-auction-withdrawal-liability","failed_approach":"The attempted repair uses max(0,x[\"bid\"]-x[\"resale\"])-x[\"deposit\"]; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-withdrawal-liability-deposit-offset","id":"FA-56761","implementations":{"attempt":{"sha256":"a1cf26d120af3da2f318028d2694439e507adabdfc5ce85fcecf7e147b05d42c","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 = [('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20])]\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))['deposit-offset'], 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":"b2477984fe611fa0fd4f91473a020c70581ac760a55d55ebe8257953623e2bf0","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 = [('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20]), ('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']]}, [4, 8, 12, 16, 20])]\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))['deposit-offset'], 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-deposit-offset","generated_at":"2026-09-29T14:46:10.255025+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":"An already forfeited deposit is added to damages instead of credited.","sha256":"87c6b0413f424f04ff3c02d974ba8aa1697227f8e7dcd7528edb9195e382af17","title":"Withdrawal liability: deposit offset · 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":40.263,"exit_code":1,"observations":[{"actual":4,"check":"normal contract","expected":4,"passed":true},{"actual":4,"check":"notice order retained","expected":4,"passed":true},{"actual":-8,"check":"resale surplus","expected":0,"passed":false},{"actual":-8,"check":"notice order retained / resale surplus","expected":0,"passed":false},{"actual":4,"check":"excused default","expected":4,"passed":true},{"actual":4,"check":"before award","expected":4,"passed":true},{"actual":4,"check":"timely notice","expected":4,"passed":true},{"actual":4,"check":"exact notice cutoff","expected":4,"passed":true},{"actual":4,"check":"liability already paid","expected":4,"passed":true},{"actual":4,"check":"bond released","expected":4,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal contract\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"notice order retained\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"resale surplus\", \"actual\": -8, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / resale surplus\", \"actual\": -8, \"expected\": 0, \"passed\": false}, {\"check\": \"excused default\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"before award\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"timely notice\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"exact notice cutoff\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"liability already paid\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"bond released\", \"actual\": 4, \"expected\": 4, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.111,"exit_code":1,"observations":[{"actual":20,"check":"normal contract","expected":4,"passed":false},{"actual":20,"check":"notice order retained","expected":4,"passed":false},{"actual":8,"check":"resale surplus","expected":0,"passed":false},{"actual":8,"check":"notice order retained / resale surplus","expected":0,"passed":false},{"actual":20,"check":"excused default","expected":4,"passed":false},{"actual":20,"check":"before award","expected":4,"passed":false},{"actual":20,"check":"timely notice","expected":4,"passed":false},{"actual":20,"check":"exact notice cutoff","expected":4,"passed":false},{"actual":20,"check":"liability already paid","expected":4,"passed":false},{"actual":20,"check":"bond released","expected":4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal contract\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"notice order retained\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"resale surplus\", \"actual\": 8, \"expected\": 0, \"passed\": false}, {\"check\": \"notice order retained / resale surplus\", \"actual\": 8, \"expected\": 0, \"passed\": false}, {\"check\": \"excused default\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"before award\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"timely notice\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"exact notice cutoff\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"liability already paid\", \"actual\": 20, \"expected\": 4, \"passed\": false}, {\"check\": \"bond released\", \"actual\": 20, \"expected\": 4, \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}