FAILURE MAP
← Case archive

FA-57556 / Auction allocation rules / Open access

Round carryover: specification priority reset · case 01

A materially changed lot carries obsolete standing-bid priority.

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

ROOT CAUSE

A materially changed lot carries obsolete standing-bid priority.

VERIFIED REPAIR

For specification priority reset, apply the stipulated decision {l:x["old_priority"][l] if x["old_specs"][l]==x["new_specs"][l] else x["new_round"] for l in x["standing"]}.

Unsuccessful approach: The attempted repair uses {l:x["new_round"] 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 specification-priority-reset: For specification priority reset, apply the stipulated decision {l:x["old_priority"][l] if x["old_specs"][l]==x["new_specs"][l] else x["new_round"] 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 = x["old_priority"]
    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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 1, 'C': 2}, {'B': 2, 'C': 4}, {'B': 3, 'C': 6}, {'B': 4, 'C': 8}, {'B': 5, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}])]
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))['specification-priority-reset'], 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 contract{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
all seller carry{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
all bidder carry{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
no withdrawals{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
unchanged lot specs{'B': 1, 'C': 2}{'B': 1, 'C': 2}Passed
nothing already carried{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
no expired authorization{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
all sold{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed
no encumbrance{'B': 1, 'C': 2}{'B': 3, 'C': 2}Failed

SHA-256 / 12a3527d3cfb911a77ca382fa0035417e51b55bb20b0659b155517c2bc300d53

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["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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 1, 'C': 2}, {'B': 2, 'C': 4}, {'B': 3, 'C': 6}, {'B': 4, 'C': 8}, {'B': 5, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}])]
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))['specification-priority-reset'], 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 contract{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
all seller carry{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
all bidder carry{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
no withdrawals{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
unchanged lot specs{'B': 3, 'C': 3}{'B': 1, 'C': 2}Failed
nothing already carried{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
no expired authorization{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
all sold{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed
no encumbrance{'B': 3, 'C': 3}{'B': 3, 'C': 2}Failed

SHA-256 / 0c472884d1403d7801ae90023148e80a03ef3fd18635a231eb315e5270405c93

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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 1, 'C': 2}, {'B': 2, 'C': 4}, {'B': 3, 'C': 6}, {'B': 4, 'C': 8}, {'B': 5, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}]), ('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': 3, 'C': 2}, {'B': 6, 'C': 4}, {'B': 9, 'C': 6}, {'B': 12, 'C': 8}, {'B': 15, 'C': 10}])]
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))['specification-priority-reset'], 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 contract{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
all seller carry{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
all bidder carry{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
no withdrawals{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
unchanged lot specs{'B': 1, 'C': 2}{'B': 1, 'C': 2}Passed
nothing already carried{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
no expired authorization{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
all sold{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed
no encumbrance{'B': 3, 'C': 2}{'B': 3, 'C': 2}Passed

SHA-256 / aef3037f57d2d0513e5f8d1db132de6f252a6d2a060a153219d7632a712ceb81

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

Case digest / f76c9e6d3a4d8ad3cea25585914c9543e21c32c7666897cea12f89df9dc9e964