{"abstract":"Captured fills remain reserved or are released using historical captures.","category":"Auction allocation rules","checks":9,"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 capture-release: Release the current fill amount from the current hold.","contract_signature":"x","evaluation_group":"s3-auction-escrow-reservation","failed_approach":"The attempted repair uses max(0,x[\"old_hold\"]-x[\"captured\"]); the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-escrow-reservation-capture-release","id":"FA-56451","implementations":{"attempt":{"sha256":"426990cb797d258c48b30c6a41550c0280b228ba5e7e3195571634ccdaf31550","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[\"captured\"])\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[\"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 = [('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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]), ('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])]\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))['capture-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":"aba40825a0d221caa51aed2f60136640250038e49bfac86271325596bb47c5c2","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 = x[\"old_hold\"]\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[\"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 = [('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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}, [18, 36, 54, 72, 90]), ('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]), ('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])]\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))['capture-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-capture-release","generated_at":"2026-09-29T14:46:07.222047+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":"Captured fills remain reserved or are released using historical captures.","sha256":"cf9769106294c5ac4df15ff3fc9cf10526b069cc093de6bd8f1a562dddbc75f1","title":"Escrow reservation: capture 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":41.418,"exit_code":1,"observations":[{"actual":20,"check":"normal contract","expected":18,"passed":false},{"actual":20,"check":"reuse existing collateral","expected":18,"passed":false},{"actual":20,"check":"other auction limits credit","expected":18,"passed":false},{"actual":20,"check":"insufficient replacement","expected":18,"passed":false},{"actual":20,"check":"old hold larger","expected":18,"passed":false},{"actual":20,"check":"confirmed release","expected":18,"passed":false},{"actual":20,"check":"fully captured","expected":0,"passed":false},{"actual":0,"check":"zero reservation","expected":0,"passed":true},{"actual":20,"check":"closed auction","expected":18,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal contract\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"reuse existing collateral\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"other auction limits credit\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"insufficient replacement\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"old hold larger\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"confirmed release\", \"actual\": 20, \"expected\": 18, \"passed\": false}, {\"check\": \"fully captured\", \"actual\": 20, \"expected\": 0, \"passed\": false}, {\"check\": \"zero reservation\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"closed auction\", \"actual\": 20, \"expected\": 18, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.761,"exit_code":1,"observations":[{"actual":30,"check":"normal contract","expected":18,"passed":false},{"actual":30,"check":"reuse existing collateral","expected":18,"passed":false},{"actual":30,"check":"other auction limits credit","expected":18,"passed":false},{"actual":30,"check":"insufficient replacement","expected":18,"passed":false},{"actual":30,"check":"old hold larger","expected":18,"passed":false},{"actual":30,"check":"confirmed release","expected":18,"passed":false},{"actual":30,"check":"fully captured","expected":0,"passed":false},{"actual":0,"check":"zero reservation","expected":0,"passed":true},{"actual":30,"check":"closed auction","expected":18,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal contract\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"reuse existing collateral\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"other auction limits credit\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"insufficient replacement\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"old hold larger\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"confirmed release\", \"actual\": 30, \"expected\": 18, \"passed\": false}, {\"check\": \"fully captured\", \"actual\": 30, \"expected\": 0, \"passed\": false}, {\"check\": \"zero reservation\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"closed auction\", \"actual\": 30, \"expected\": 18, \"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."}}