FAILURE MAP
← Case archive

FA-56836 / Auction allocation rules / Open access

Award forfeiture: resale payment recognition · case 01

An unaccepted alternate offer is booked as realized resale proceeds.

Verified by executionVariant 1 · 9 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

An unaccepted alternate offer is booked as realized resale proceeds.

VERIFIED REPAIR

For resale payment recognition, apply the stipulated decision x["new_payment"] if x["accepted"] else 0.

Unsuccessful approach: The attempted repair uses x["new_payment"] if x["consent"] else 0; 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 resale-payment-recognition: For resale payment recognition, apply the stipulated decision x["new_payment"] if x["accepted"] else 0.

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 = 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"]
    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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [9, 18, 27, 36, 45]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0])]
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))['resale-payment-recognition'], 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 fixtureActualExpectedOutcome
normal contract90Failed
original paid90Failed
delivered original90Failed
no default90Failed
alternate accepted99Passed
offer expired90Failed
exact offer deadline90Failed
alternate banned90Failed
unqualified alternate90Failed

SHA-256 / 603fa1830065eb834f0a85c6af59d653ff921d71e5c0b4a1f41dbf418b4ab50c

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["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["consent"] 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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [9, 18, 27, 36, 45]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0])]
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))['resale-payment-recognition'], 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 fixtureActualExpectedOutcome
normal contract90Failed
original paid90Failed
delivered original90Failed
no default90Failed
alternate accepted99Passed
offer expired90Failed
exact offer deadline90Failed
alternate banned90Failed
unqualified alternate90Failed

SHA-256 / e9966fe2fa8efff13c996472170d02304cf324cb731b2e308f6d5bd0d7736a44

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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [9, 18, 27, 36, 45]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0]), ('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']}, [0, 0, 0, 0, 0])]
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))['resale-payment-recognition'], 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 fixtureActualExpectedOutcome
normal contract00Passed
original paid00Passed
delivered original00Passed
no default00Passed
alternate accepted99Passed
offer expired00Passed
exact offer deadline00Passed
alternate banned00Passed
unqualified alternate00Passed

SHA-256 / c0e86e0c13459fe1a6971656d55e3b942997a42bbfaa51e6b7d56ba257858a9f

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.934424+00:00.

Case digest / 1ee5ebc3c56643da7a79b07e048f4e7d45f974c711e57c86ad0880588aca6188