{"abstract":"An auction refund may exceed captured proceeds.","category":"Auction allocation rules","checks":11,"contract":"A toy per-auction escrow account distinguishes available funds, reserved collateral, captured fill payments and pending releases. Reservation replaces an old hold atomically; a failed replacement retains the old hold. Separate auction holds must remain unavailable. Named decision refund-ceiling: Bound refund by captured payment, not the newest fill.","contract_signature":"x","evaluation_group":"s3-auction-escrow-reservation","failed_approach":"The attempted repair uses min(x[\"refund\"],x[\"fill_cost\"]); the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-escrow-reservation-refund-ceiling","id":"FA-56461","implementations":{"attempt":{"sha256":"9cb632616c60941e85b5d370364008048cd697ae370c195a07f10e28e7d400e7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"balance\"]-x[\"other_hold\"] >= x[\"new_hold\"]\n    v1 = x[\"new_hold\"] if x[\"replace_ok\"] else x[\"old_hold\"]\n    v2 = max(0,x[\"old_hold\"]-x[\"fill_cost\"])\n    v3 = x[\"balance\"]-x[\"old_hold\"]-x[\"other_hold\"]+(x[\"pending\"] if x[\"confirmed\"] else 0)\n    v4 = min(x[\"refund\"],x[\"fill_cost\"])\n    v5 = x[\"old_hold\"]+x[\"bond\"]\n    v6 = max(0,x[\"old_hold\"]-x[\"fill_cost\"]) if x[\"closed\"] else 0\n    v7 = min(x[\"release\"],max(0,x[\"old_hold\"]-x[\"fill_cost\"]))\n    v8 = max(0,x[\"fill_cost\"]-x[\"fee\"])\n    v9 = x[\"balance\"]-x[\"other_hold\"]-x[\"new_hold\"] >= x[\"fee\"]\n    return {'replace-credit':v0,'atomic-replacement':v1,'capture-release':v2,'pending-release-availability':v3,'refund-ceiling':v4,'bond-separation':v5,'close-release':v6,'release-clamp':v7,'seller-net-remittance':v8,'unreserved-fee-check':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('refund above captured', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 30, 'fee': 3, 'bond': 8, 'closed': False}, [10, 20, 30, 40, 50]), ('reuse existing collateral / refund above captured', {'balance': 100, 'old_hold': 30, 'new_hold': 70, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 30, 'fee': 3, 'bond': 8, 'closed': False}, [10, 20, 30, 40, 50]), ('normal contract', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('reuse existing collateral', {'balance': 100, 'old_hold': 30, 'new_hold': 70, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('other auction limits credit', {'balance': 100, 'old_hold': 30, 'new_hold': 90, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('insufficient replacement', {'balance': 100, 'old_hold': 30, 'new_hold': 200, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': False, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('old hold larger', {'balance': 100, 'old_hold': 30, 'new_hold': 15, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('confirmed release', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': True, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('fully captured', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 30, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('zero reservation', {'balance': 100, 'old_hold': 0, 'new_hold': 0, 'other_hold': 0, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('closed auction', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': True}, [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))['refund-ceiling'], 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":"72c339c7d00c6db3276a434c6ca19c72033ddba28b003eba155e527af92d64d7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"balance\"]-x[\"other_hold\"] >= x[\"new_hold\"]\n    v1 = x[\"new_hold\"] if x[\"replace_ok\"] else x[\"old_hold\"]\n    v2 = max(0,x[\"old_hold\"]-x[\"fill_cost\"])\n    v3 = x[\"balance\"]-x[\"old_hold\"]-x[\"other_hold\"]+(x[\"pending\"] if x[\"confirmed\"] else 0)\n    v4 = x[\"refund\"]\n    v5 = x[\"old_hold\"]+x[\"bond\"]\n    v6 = max(0,x[\"old_hold\"]-x[\"fill_cost\"]) if x[\"closed\"] else 0\n    v7 = min(x[\"release\"],max(0,x[\"old_hold\"]-x[\"fill_cost\"]))\n    v8 = max(0,x[\"fill_cost\"]-x[\"fee\"])\n    v9 = x[\"balance\"]-x[\"other_hold\"]-x[\"new_hold\"] >= x[\"fee\"]\n    return {'replace-credit':v0,'atomic-replacement':v1,'capture-release':v2,'pending-release-availability':v3,'refund-ceiling':v4,'bond-separation':v5,'close-release':v6,'release-clamp':v7,'seller-net-remittance':v8,'unreserved-fee-check':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('refund above captured', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 30, 'fee': 3, 'bond': 8, 'closed': False}, [10, 20, 30, 40, 50]), ('reuse existing collateral / refund above captured', {'balance': 100, 'old_hold': 30, 'new_hold': 70, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 30, 'fee': 3, 'bond': 8, 'closed': False}, [10, 20, 30, 40, 50]), ('normal contract', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('reuse existing collateral', {'balance': 100, 'old_hold': 30, 'new_hold': 70, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('other auction limits credit', {'balance': 100, 'old_hold': 30, 'new_hold': 90, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('insufficient replacement', {'balance': 100, 'old_hold': 30, 'new_hold': 200, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': False, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('old hold larger', {'balance': 100, 'old_hold': 30, 'new_hold': 15, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('confirmed release', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': True, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('fully captured', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 30, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('zero reservation', {'balance': 100, 'old_hold': 0, 'new_hold': 0, 'other_hold': 0, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': False}, [4, 8, 12, 16, 20]), ('closed auction', {'balance': 100, 'old_hold': 30, 'new_hold': 50, 'other_hold': 20, 'fill_cost': 12, 'release': 5, 'pending': 7, 'confirmed': False, 'replace_ok': True, 'captured': 10, 'refund': 4, 'fee': 3, 'bond': 8, 'closed': True}, [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))['refund-ceiling'], 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-escrow-reservation-refund-ceiling","generated_at":"2026-09-29T14:46:07.276286+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 auction refund may exceed captured proceeds.","sha256":"96a6da8296d334fb8dc075b76f6c0a8b89e740a269e88b457a3bf87550096ce9","title":"Escrow reservation: refund ceiling · 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":39.357,"exit_code":1,"observations":[{"actual":12,"check":"refund above captured","expected":10,"passed":false},{"actual":12,"check":"reuse existing collateral / refund above captured","expected":10,"passed":false},{"actual":4,"check":"normal contract","expected":4,"passed":true},{"actual":4,"check":"reuse existing collateral","expected":4,"passed":true},{"actual":4,"check":"other auction limits credit","expected":4,"passed":true},{"actual":4,"check":"insufficient replacement","expected":4,"passed":true},{"actual":4,"check":"old hold larger","expected":4,"passed":true},{"actual":4,"check":"confirmed release","expected":4,"passed":true},{"actual":4,"check":"fully captured","expected":4,"passed":true},{"actual":4,"check":"zero reservation","expected":4,"passed":true},{"actual":4,"check":"closed auction","expected":4,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"refund above captured\", \"actual\": 12, \"expected\": 10, \"passed\": false}, {\"check\": \"reuse existing collateral / refund above captured\", \"actual\": 12, \"expected\": 10, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"reuse existing collateral\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"other auction limits credit\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"insufficient replacement\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"old hold larger\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"confirmed release\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"fully captured\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"zero reservation\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"closed auction\", \"actual\": 4, \"expected\": 4, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.395,"exit_code":1,"observations":[{"actual":30,"check":"refund above captured","expected":10,"passed":false},{"actual":30,"check":"reuse existing collateral / refund above captured","expected":10,"passed":false},{"actual":4,"check":"normal contract","expected":4,"passed":true},{"actual":4,"check":"reuse existing collateral","expected":4,"passed":true},{"actual":4,"check":"other auction limits credit","expected":4,"passed":true},{"actual":4,"check":"insufficient replacement","expected":4,"passed":true},{"actual":4,"check":"old hold larger","expected":4,"passed":true},{"actual":4,"check":"confirmed release","expected":4,"passed":true},{"actual":4,"check":"fully captured","expected":4,"passed":true},{"actual":4,"check":"zero reservation","expected":4,"passed":true},{"actual":4,"check":"closed auction","expected":4,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"refund above captured\", \"actual\": 30, \"expected\": 10, \"passed\": false}, {\"check\": \"reuse existing collateral / refund above captured\", \"actual\": 30, \"expected\": 10, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"reuse existing collateral\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"other auction limits credit\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"insufficient replacement\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"old hold larger\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"confirmed release\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"fully captured\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"zero reservation\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"closed auction\", \"actual\": 4, \"expected\": 4, \"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."}}