FA-57586 / Auction allocation rules / Open access
Round carryover: approved reserve revision · case 01
Reserve revision drops unchanged carryover reserves or ignores seller-approved updates.
ROOT CAUSE
Reserve revision drops unchanged carryover reserves or ignores seller-approved updates.
VERIFIED REPAIR
For approved reserve revision, apply the stipulated decision {l:x["approved_reserves"].get(l,x["reserves"][l]) for l in x["standing"]}.
Unsuccessful approach: The attempted repair uses {l:x["approved_reserves"].get(l,0) for l in x["standing"]}; the explicit regression cases demonstrate that this still violates the stipulated auction rule.
Case contract
Unsold auction lots may carry into a later round with explicit seller consent and inherited encumbrances. Standing offers carry only while their bidder authorization survives and may retain or lose priority according to whether lot specification changed. Sale identifiers retain provenance. Named decision approved-reserve-revision: For approved reserve revision, apply the stipulated decision {l:x["approved_reserves"].get(l,x["reserves"][l]) for l in x["standing"]}.
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 = [l for l in x["offered"] if l not in x["sold"] and l in x["seller_carry"]]
v1 = [l for l in x["standing"] if l in x["bidder_carry"]]
v2 = [l for l in x["standing"] if l not in x["withdrawn"]]
v3 = {l:x["old_priority"][l] if x["old_specs"][l]==x["new_specs"][l] else x["new_round"] for l in x["standing"]}
v4 = [l for l in x["standing"] if l not in x["already_carried"]]
v5 = {l:x["holds"].get(l,0) for l in x["standing"] if l in x["encumbered"]}
v6 = {l:x["source_round"][l] for l in x["standing"]}
v7 = [l for l in x["standing"] if x["source_round"][l]<x["new_round"]]
v8 = [l for l in x["standing"] if l in x["bidder_carry"] and l not in x["expired"]]
v9 = x["reserves"]
return {'unsold-reoffer':v0,'standing-bid-reconsent':v1,'withdrawal-carry-veto':v2,'specification-priority-reset':v3,'carry-once-per-round':v4,'inherited-reservation':v5,'source-round-provenance':v6,'future-round-reoffer':v7,'authorization-expiry-carry':v8,'approved-reserve-revision':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all seller carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B', 'C'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all bidder carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['B', 'C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no withdrawals', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': [], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('unchanged lot specs', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v1', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('nothing already carried', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': [], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no expired authorization', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': [], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all sold', {'offered': ['A', 'B', 'C'], 'sold': ['A', 'B', 'C'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no encumbrance', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': [], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}])]
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))['approved-reserve-revision'], 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 | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| all seller carry | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| all bidder carry | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| no withdrawals | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| unchanged lot specs | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| nothing already carried | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| no expired authorization | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| all sold | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
| no encumbrance | {'B': 8, 'C': 6} | {'B': 9, 'C': 6} | Failed |
SHA-256 / 48df89a2953342891176e394446f0273ced318ea78fc27d9c7e570e75e4fdf51
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = [l for l in x["offered"] if l not in x["sold"] and l in x["seller_carry"]]
v1 = [l for l in x["standing"] if l in x["bidder_carry"]]
v2 = [l for l in x["standing"] if l not in x["withdrawn"]]
v3 = {l:x["old_priority"][l] if x["old_specs"][l]==x["new_specs"][l] else x["new_round"] for l in x["standing"]}
v4 = [l for l in x["standing"] if l not in x["already_carried"]]
v5 = {l:x["holds"].get(l,0) for l in x["standing"] if l in x["encumbered"]}
v6 = {l:x["source_round"][l] for l in x["standing"]}
v7 = [l for l in x["standing"] if x["source_round"][l]<x["new_round"]]
v8 = [l for l in x["standing"] if l in x["bidder_carry"] and l not in x["expired"]]
v9 = {l:x["approved_reserves"].get(l,0) for l in x["standing"]}
return {'unsold-reoffer':v0,'standing-bid-reconsent':v1,'withdrawal-carry-veto':v2,'specification-priority-reset':v3,'carry-once-per-round':v4,'inherited-reservation':v5,'source-round-provenance':v6,'future-round-reoffer':v7,'authorization-expiry-carry':v8,'approved-reserve-revision':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all seller carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B', 'C'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all bidder carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['B', 'C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no withdrawals', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': [], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('unchanged lot specs', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v1', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('nothing already carried', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': [], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no expired authorization', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': [], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all sold', {'offered': ['A', 'B', 'C'], 'sold': ['A', 'B', 'C'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no encumbrance', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': [], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}])]
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))['approved-reserve-revision'], 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 | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| all seller carry | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| all bidder carry | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| no withdrawals | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| unchanged lot specs | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| nothing already carried | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| no expired authorization | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| all sold | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
| no encumbrance | {'B': 9, 'C': 0} | {'B': 9, 'C': 6} | Failed |
SHA-256 / e35093e84f2b49f023c5e78269fd6da6ca5a000fe33e2222b8e8fa27d0a92cd1
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = [l for l in x["offered"] if l not in x["sold"] and l in x["seller_carry"]]
v1 = [l for l in x["standing"] if l in x["bidder_carry"]]
v2 = [l for l in x["standing"] if l not in x["withdrawn"]]
v3 = {l:x["old_priority"][l] if x["old_specs"][l]==x["new_specs"][l] else x["new_round"] for l in x["standing"]}
v4 = [l for l in x["standing"] if l not in x["already_carried"]]
v5 = {l:x["holds"].get(l,0) for l in x["standing"] if l in x["encumbered"]}
v6 = {l:x["source_round"][l] for l in x["standing"]}
v7 = [l for l in x["standing"] if x["source_round"][l]<x["new_round"]]
v8 = [l for l in x["standing"] if l in x["bidder_carry"] and l not in x["expired"]]
v9 = {l:x["approved_reserves"].get(l,x["reserves"][l]) for l in x["standing"]}
return {'unsold-reoffer':v0,'standing-bid-reconsent':v1,'withdrawal-carry-veto':v2,'specification-priority-reset':v3,'carry-once-per-round':v4,'inherited-reservation':v5,'source-round-provenance':v6,'future-round-reoffer':v7,'authorization-expiry-carry':v8,'approved-reserve-revision':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all seller carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B', 'C'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all bidder carry', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['B', 'C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no withdrawals', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': [], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('unchanged lot specs', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v1', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('nothing already carried', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': [], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no expired authorization', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': [], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('all sold', {'offered': ['A', 'B', 'C'], 'sold': ['A', 'B', 'C'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': ['C'], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}]), ('no encumbrance', {'offered': ['A', 'B', 'C'], 'sold': ['A'], 'seller_carry': ['B'], 'standing': ['B', 'C'], 'bidder_carry': ['C'], 'withdrawn': ['B'], 'old_specs': {'B': 'v1', 'C': 'v1'}, 'new_specs': {'B': 'v2', 'C': 'v1'}, 'old_priority': {'B': 1, 'C': 2}, 'new_round': 3, 'source_round': {'A': 1, 'B': 1, 'C': 2}, 'already_carried': ['B'], 'holds': {'B': 5, 'C': 3}, 'encumbered': [], 'expired': ['C'], 'reserves': {'B': 8, 'C': 6}, 'approved_reserves': {'B': 9}}, [{'B': 9, 'C': 6}, {'B': 18, 'C': 12}, {'B': 27, 'C': 18}, {'B': 36, 'C': 24}, {'B': 45, 'C': 30}])]
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))['approved-reserve-revision'], 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 | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| all seller carry | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| all bidder carry | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| no withdrawals | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| unchanged lot specs | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| nothing already carried | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| no expired authorization | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| all sold | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
| no encumbrance | {'B': 9, 'C': 6} | {'B': 9, 'C': 6} | Passed |
SHA-256 / cf36892bcf594446b9b01d6f78e118bdc2adb33af4c311ff7f929d9651565230
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:18.408596+00:00.
Case digest / 3b5244a1704f8c50f07d7167176ff4d8595746fa3b3c515334aafac951bfe845