FA-56821 / Auction allocation rules / Open access
Award forfeiture: escrow residue · case 01
Alternate payment is confused with the original bidder refundable escrow residue.
ROOT CAUSE
Alternate payment is confused with the original bidder refundable escrow residue.
VERIFIED REPAIR
For escrow residue, apply the stipulated decision max(0,x["escrow"]-x["penalty"]).
Unsuccessful approach: The attempted repair uses max(0,x["escrow"]-x["new_payment"]); the explicit regression cases demonstrate that this still violates the stipulated auction rule.
Case contract
A defaulted provisional auction award may be offered to a prequalified alternate. Alternate acceptance has its own deadline; original payment, delivery and forfeiture states remain separate. This model reports dispositions without recomputing bid rankings. Named decision escrow-residue: For escrow residue, apply the stipulated decision max(0,x["escrow"]-x["penalty"]).
Why this case matters
Offline administrative auction model for software failure analysis.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = x["defaulted"] and not x["paid"]
v1 = not x["delivered"] or x["lot_returned"]
v2 = x["now"]<x["offer_until"]
v3 = x["alternate"] in x["qualified"] and x["alternate"] not in x["banned"]
v4 = x["accepted"] and x["consent"]
v5 = min(x["escrow"],x["penalty"])
v6 = x["escrow"]
v7 = x["alternate"] if x["accepted"] and x["consent"] else x["original_owner"]
v8 = next((a for a in x["offers"] if a not in x["declined"]),None)
v9 = x["new_payment"] if x["accepted"] else 0
return {'default-resale-eligibility':v0,'delivery-recovery':v1,'alternate-offer-expiry':v2,'alternate-disqualification':v3,'affirmative-alternate-consent':v4,'escrow-forfeit-ceiling':v5,'escrow-residue':v6,'ownership-transfer-gate':v7,'declined-alternate-skip':v8,'resale-payment-recognition':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('original paid', {'defaulted': True, 'paid': True, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('delivered original', {'defaulted': True, 'paid': False, 'delivered': True, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('no default', {'defaulted': False, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate accepted', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': True, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('offer expired', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 9, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('exact offer deadline', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 8, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate banned', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['b'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('unqualified alternate', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': [], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
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()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['escrow-residue'], expected[N-1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal contract | 12 | 8 | Failed |
| original paid | 12 | 8 | Failed |
| delivered original | 12 | 8 | Failed |
| no default | 12 | 8 | Failed |
| alternate accepted | 12 | 8 | Failed |
| offer expired | 12 | 8 | Failed |
| exact offer deadline | 12 | 8 | Failed |
| alternate banned | 12 | 8 | Failed |
| unqualified alternate | 12 | 8 | Failed |
SHA-256 / 46f23ecbc398d7ea197b7685e3e3e4cbc69e1136190f9634b192f65401145931
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = x["defaulted"] and not x["paid"]
v1 = not x["delivered"] or x["lot_returned"]
v2 = x["now"]<x["offer_until"]
v3 = x["alternate"] in x["qualified"] and x["alternate"] not in x["banned"]
v4 = x["accepted"] and x["consent"]
v5 = min(x["escrow"],x["penalty"])
v6 = max(0,x["escrow"]-x["new_payment"])
v7 = x["alternate"] if x["accepted"] and x["consent"] else x["original_owner"]
v8 = next((a for a in x["offers"] if a not in x["declined"]),None)
v9 = x["new_payment"] if x["accepted"] else 0
return {'default-resale-eligibility':v0,'delivery-recovery':v1,'alternate-offer-expiry':v2,'alternate-disqualification':v3,'affirmative-alternate-consent':v4,'escrow-forfeit-ceiling':v5,'escrow-residue':v6,'ownership-transfer-gate':v7,'declined-alternate-skip':v8,'resale-payment-recognition':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('original paid', {'defaulted': True, 'paid': True, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('delivered original', {'defaulted': True, 'paid': False, 'delivered': True, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('no default', {'defaulted': False, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate accepted', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': True, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('offer expired', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 9, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('exact offer deadline', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 8, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate banned', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['b'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('unqualified alternate', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': [], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
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()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['escrow-residue'], expected[N-1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal contract | 3 | 8 | Failed |
| original paid | 3 | 8 | Failed |
| delivered original | 3 | 8 | Failed |
| no default | 3 | 8 | Failed |
| alternate accepted | 3 | 8 | Failed |
| offer expired | 3 | 8 | Failed |
| exact offer deadline | 3 | 8 | Failed |
| alternate banned | 3 | 8 | Failed |
| unqualified alternate | 3 | 8 | Failed |
SHA-256 / f74a204395714e425731fb5ce742da17e75fe31a407db182c4e538ace548659a
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = x["defaulted"] and not x["paid"]
v1 = not x["delivered"] or x["lot_returned"]
v2 = x["now"]<x["offer_until"]
v3 = x["alternate"] in x["qualified"] and x["alternate"] not in x["banned"]
v4 = x["accepted"] and x["consent"]
v5 = min(x["escrow"],x["penalty"])
v6 = max(0,x["escrow"]-x["penalty"])
v7 = x["alternate"] if x["accepted"] and x["consent"] else x["original_owner"]
v8 = next((a for a in x["offers"] if a not in x["declined"]),None)
v9 = x["new_payment"] if x["accepted"] else 0
return {'default-resale-eligibility':v0,'delivery-recovery':v1,'alternate-offer-expiry':v2,'alternate-disqualification':v3,'affirmative-alternate-consent':v4,'escrow-forfeit-ceiling':v5,'escrow-residue':v6,'ownership-transfer-gate':v7,'declined-alternate-skip':v8,'resale-payment-recognition':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('original paid', {'defaulted': True, 'paid': True, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('delivered original', {'defaulted': True, 'paid': False, 'delivered': True, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('no default', {'defaulted': False, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate accepted', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': True, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('offer expired', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 9, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('exact offer deadline', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 8, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('alternate banned', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['b'], 'qualified': ['b', 'c'], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40]), ('unqualified alternate', {'defaulted': True, 'paid': False, 'delivered': False, 'accepted': False, 'now': 7, 'offer_until': 8, 'original_until': 5, 'alternate': 'b', 'banned': ['a'], 'qualified': [], 'consent': True, 'lot_returned': False, 'escrow': 12, 'penalty': 4, 'new_payment': 9, 'original_owner': 'a', 'offers': ['b', 'c'], 'declined': ['b']}, [8, 16, 24, 32, 40])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
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()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['escrow-residue'], expected[N-1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| normal contract | 8 | 8 | Passed |
| original paid | 8 | 8 | Passed |
| delivered original | 8 | 8 | Passed |
| no default | 8 | 8 | Passed |
| alternate accepted | 8 | 8 | Passed |
| offer expired | 8 | 8 | Passed |
| exact offer deadline | 8 | 8 | Passed |
| alternate banned | 8 | 8 | Passed |
| unqualified alternate | 8 | 8 | Passed |
SHA-256 / a8d38a4546437da395ea4fb5c4249854126a28340c81004ccf43ca7549f3105c
Verification & scope
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.
Observations recorded using Python 3.12.14 at 2026-09-29T14:46:10.862063+00:00.
Case digest / 4b28c85e74131c2f6309a123cf7c4ece0872f20b6e94896aed6cc56d22c0a913