{"abstract":"Auction closure returns collateral already consumed by the final fill.","category":"Auction allocation rules","checks":10,"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 close-release: Release only the unconsumed current reservation at closure.","contract_signature":"x","evaluation_group":"s3-auction-escrow-reservation","failed_approach":"The attempted repair uses max(0,x[\"old_hold\"]-x[\"captured\"]) if x[\"closed\"] else 0; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-escrow-reservation-close-release","id":"FA-56471","implementations":{"attempt":{"sha256":"b707f82357094dc3364d9c8737be7e2098e6aaf44babd4134f7febce397933a4","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[\"captured\"])\n    v5 = x[\"old_hold\"]+x[\"bond\"]\n    v6 = max(0,x[\"old_hold\"]-x[\"captured\"]) 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 = [('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}, [18, 36, 54, 72, 90]), ('reuse existing collateral / closed auction', {'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': True}, [18, 36, 54, 72, 90]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0])]\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))['close-release'], 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":"9fc02ccac2d5ba37d12766be66a562380eac29e99b7b7eb361dd8df9b76b4e4e","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[\"captured\"])\n    v5 = x[\"old_hold\"]+x[\"bond\"]\n    v6 = x[\"old_hold\"] 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 = [('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}, [18, 36, 54, 72, 90]), ('reuse existing collateral / closed auction', {'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': True}, [18, 36, 54, 72, 90]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0]), ('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}, [0, 0, 0, 0, 0])]\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))['close-release'], 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-close-release","generated_at":"2026-09-29T14:46:07.489347+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":"Auction closure returns collateral already consumed by the final fill.","sha256":"e0e32a05e00b15bb9cdef1b84e8f40d1bf826d7ff6ad855efc787bd4f5772661","title":"Escrow reservation: close release · 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":42.791,"exit_code":1,"observations":[{"actual":20,"check":"closed auction","expected":18,"passed":false},{"actual":20,"check":"reuse existing collateral / closed auction","expected":18,"passed":false},{"actual":0,"check":"normal contract","expected":0,"passed":true},{"actual":0,"check":"reuse existing collateral","expected":0,"passed":true},{"actual":0,"check":"other auction limits credit","expected":0,"passed":true},{"actual":0,"check":"insufficient replacement","expected":0,"passed":true},{"actual":0,"check":"old hold larger","expected":0,"passed":true},{"actual":0,"check":"confirmed release","expected":0,"passed":true},{"actual":0,"check":"fully captured","expected":0,"passed":true},{"actual":0,"check":"zero reservation","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"closed auction\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"reuse existing collateral / closed auction\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"reuse existing collateral\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"other auction limits credit\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"insufficient replacement\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"old hold larger\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"confirmed release\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fully captured\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"zero reservation\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.792,"exit_code":1,"observations":[{"actual":30,"check":"closed auction","expected":18,"passed":false},{"actual":30,"check":"reuse existing collateral / closed auction","expected":18,"passed":false},{"actual":0,"check":"normal contract","expected":0,"passed":true},{"actual":0,"check":"reuse existing collateral","expected":0,"passed":true},{"actual":0,"check":"other auction limits credit","expected":0,"passed":true},{"actual":0,"check":"insufficient replacement","expected":0,"passed":true},{"actual":0,"check":"old hold larger","expected":0,"passed":true},{"actual":0,"check":"confirmed release","expected":0,"passed":true},{"actual":0,"check":"fully captured","expected":0,"passed":true},{"actual":0,"check":"zero reservation","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"closed auction\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"reuse existing collateral / closed auction\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"reuse existing collateral\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"other auction limits credit\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"insufficient replacement\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"old hold larger\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"confirmed release\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fully captured\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"zero reservation\", \"actual\": 0, \"expected\": 0, \"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."}}