{"abstract":"Unpublished ballot outcomes or too many winners become awards.","category":"Auction allocation rules","checks":12,"contract":"A toy tied-award ballot has a frozen eligible bidder roster, published ticket order, one ticket per eligible bidder, and an explicitly supplied draw index. It is deterministic: no randomness claim. Declined winners rotate to the next eligible ticket without returning the declined bidder to the draw. Named decision publication-before-award: For publication before award, apply the stipulated decision x[\"committed\"][:x[\"supply\"]] if x[\"published\"] else [].","evaluation_group":"s3-auction-tie-ballot","failed_approach":"The attempted repair uses x[\"committed\"] if x[\"published\"] else []; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-tie-ballot-publication-before-award","id":"FA-57276","implementations":{"attempt":{"sha256":"7f380edd8d11f231462e4f2c2676804a40455970df6dabc7d3fd7b6e20dd05ab","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))\n    v1 = [t for t in x[\"tickets\"] if t in x[\"roster\"]]\n    v2 = [t for t in dict.fromkeys(x[\"tickets\"]) if t in x[\"roster\"] and t not in x[\"disqualified\"]]\n    v3 = x[\"roster\"][x[\"draw\"]] if 0<=x[\"draw\"]<len(x[\"roster\"]) else None\n    v4 = next((t for t in x[\"committed\"] if t not in x[\"declined\"]),None)\n    v5 = max(0,x[\"supply\"]-len(set(x[\"winners\"])))\n    v6 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))==x[\"committed\"]\n    v7 = x[\"committed\"] if x[\"published\"] else []\n    v8 = x[\"round\"]==x[\"ballot_round\"]\n    v9 = [x[\"substitutes\"].get(w,w) if x[\"substitutes\"].get(w,w) in x[\"consented\"] else w for w in x[\"winners\"]]\n    return {'one-ticket-per-bidder':v0,'roster-ticket-admission':v1,'disqualification-before-draw':v2,'draw-index-contract':v3,'declined-ticket-rotation':v4,'ballot-supply-remainder':v5,'ticket-order-commitment':v6,'publication-before-award':v7,'round-specific-ballot':v8,'winner-substitute-consent':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('normal contract', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('future ballot', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('no declines', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': [], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw first', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 0, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw beyond roster', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 7, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all disqualified', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['a', 'b', 'c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all tickets valid', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('same round', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 2, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []])]\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))['publication-before-award'], 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":"fedfe48ad2e5ffa0a95c8852e0b4e63ca13565f0b54dee1e0b178667edc4a506","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))\n    v1 = [t for t in x[\"tickets\"] if t in x[\"roster\"]]\n    v2 = [t for t in dict.fromkeys(x[\"tickets\"]) if t in x[\"roster\"] and t not in x[\"disqualified\"]]\n    v3 = x[\"roster\"][x[\"draw\"]] if 0<=x[\"draw\"]<len(x[\"roster\"]) else None\n    v4 = next((t for t in x[\"committed\"] if t not in x[\"declined\"]),None)\n    v5 = max(0,x[\"supply\"]-len(set(x[\"winners\"])))\n    v6 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))==x[\"committed\"]\n    v7 = x[\"committed\"][:x[\"supply\"]]\n    v8 = x[\"round\"]==x[\"ballot_round\"]\n    v9 = [x[\"substitutes\"].get(w,w) if x[\"substitutes\"].get(w,w) in x[\"consented\"] else w for w in x[\"winners\"]]\n    return {'one-ticket-per-bidder':v0,'roster-ticket-admission':v1,'disqualification-before-draw':v2,'draw-index-contract':v3,'declined-ticket-rotation':v4,'ballot-supply-remainder':v5,'ticket-order-commitment':v6,'publication-before-award':v7,'round-specific-ballot':v8,'winner-substitute-consent':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('normal contract', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('future ballot', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('no declines', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': [], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw first', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 0, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw beyond roster', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 7, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all disqualified', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['a', 'b', 'c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all tickets valid', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('same round', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 2, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []])]\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))['publication-before-award'], 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"},"fixed":{"sha256":"a9494d091eda7954a70adf07e28b72e7e57839504f6fabdfe4b834552dab36b0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))\n    v1 = [t for t in x[\"tickets\"] if t in x[\"roster\"]]\n    v2 = [t for t in dict.fromkeys(x[\"tickets\"]) if t in x[\"roster\"] and t not in x[\"disqualified\"]]\n    v3 = x[\"roster\"][x[\"draw\"]] if 0<=x[\"draw\"]<len(x[\"roster\"]) else None\n    v4 = next((t for t in x[\"committed\"] if t not in x[\"declined\"]),None)\n    v5 = max(0,x[\"supply\"]-len(set(x[\"winners\"])))\n    v6 = list(dict.fromkeys(t for t in x[\"tickets\"] if t in x[\"roster\"]))==x[\"committed\"]\n    v7 = x[\"committed\"][:x[\"supply\"]] if x[\"published\"] else []\n    v8 = x[\"round\"]==x[\"ballot_round\"]\n    v9 = [x[\"substitutes\"].get(w,w) if x[\"substitutes\"].get(w,w) in x[\"consented\"] else w for w in x[\"winners\"]]\n    return {'one-ticket-per-bidder':v0,'roster-ticket-admission':v1,'disqualification-before-draw':v2,'draw-index-contract':v3,'declined-ticket-rotation':v4,'ballot-supply-remainder':v5,'ticket-order-commitment':v6,'publication-before-award':v7,'round-specific-ballot':v8,'winner-substitute-consent':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / unpublished draw', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': False, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('normal contract', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('future ballot', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('no declines', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': [], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw first', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 0, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('draw beyond roster', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 7, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all disqualified', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['a', 'b', 'c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('all tickets valid', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('same round', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 2, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 2, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [['b', 'a'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c'], ['b', 'a', 'c']]), ('zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 1, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []]), ('future ballot / zero supply', {'roster': ['a', 'b', 'c'], 'tickets': ['b', 'a', 'b', 'd', 'c'], 'disqualified': ['c'], 'draw': 1, 'declined': ['b'], 'winners': ['a'], 'supply': 0, 'committed': ['b', 'a', 'c'], 'published': True, 'round': 2, 'ballot_round': 3, 'substitutes': {'a': 'z'}, 'consented': ['z']}, [[], [], [], [], []])]\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))['publication-before-award'], 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-tie-ballot-publication-before-award","generated_at":"2026-09-29T14:46:15.062423+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline administrative auction model for software failure analysis.","repair":"For publication before award, apply the stipulated decision x[\"committed\"][:x[\"supply\"]] if x[\"published\"] else [].","root_cause":"Unpublished ballot outcomes or too many winners become awards.","sha256":"93a57ffee2dcd7a4e074c1e02dcab35c4dc54d1e0abcf123793c023dd22f8d21","title":"Tie ballot: publication before award · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.438,"exit_code":1,"observations":[{"actual":[],"check":"unpublished draw","expected":[],"passed":true},{"actual":[],"check":"future ballot / unpublished draw","expected":[],"passed":true},{"actual":["b","a","c"],"check":"normal contract","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"future ballot","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"no declines","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"draw first","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"draw beyond roster","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"all disqualified","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"all tickets valid","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"same round","expected":["b","a"],"passed":false},{"actual":["b","a","c"],"check":"zero supply","expected":[],"passed":false},{"actual":["b","a","c"],"check":"future ballot / zero supply","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unpublished draw\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"future ballot / unpublished draw\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"normal contract\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"future ballot\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"no declines\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"draw first\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"draw beyond roster\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"all disqualified\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"all tickets valid\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"same round\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [\"b\", \"a\"], \"passed\": false}, {\"check\": \"zero supply\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [], \"passed\": false}, {\"check\": \"future ballot / zero supply\", \"actual\": [\"b\", \"a\", \"c\"], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.99,"exit_code":1,"observations":[{"actual":["b","a"],"check":"unpublished draw","expected":[],"passed":false},{"actual":["b","a"],"check":"future ballot / unpublished draw","expected":[],"passed":false},{"actual":["b","a"],"check":"normal contract","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"future ballot","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"no declines","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"draw first","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"draw beyond roster","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"all disqualified","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"all tickets valid","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"same round","expected":["b","a"],"passed":true},{"actual":[],"check":"zero supply","expected":[],"passed":true},{"actual":[],"check":"future ballot / zero supply","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unpublished draw\", \"actual\": [\"b\", \"a\"], \"expected\": [], \"passed\": false}, {\"check\": \"future ballot / unpublished draw\", \"actual\": [\"b\", \"a\"], \"expected\": [], \"passed\": false}, {\"check\": \"normal contract\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"future ballot\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"no declines\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"draw first\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"draw beyond roster\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"all disqualified\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"all tickets valid\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"same round\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"zero supply\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"future ballot / zero supply\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":46.771,"exit_code":0,"observations":[{"actual":[],"check":"unpublished draw","expected":[],"passed":true},{"actual":[],"check":"future ballot / unpublished draw","expected":[],"passed":true},{"actual":["b","a"],"check":"normal contract","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"future ballot","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"no declines","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"draw first","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"draw beyond roster","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"all disqualified","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"all tickets valid","expected":["b","a"],"passed":true},{"actual":["b","a"],"check":"same round","expected":["b","a"],"passed":true},{"actual":[],"check":"zero supply","expected":[],"passed":true},{"actual":[],"check":"future ballot / zero supply","expected":[],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unpublished draw\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"future ballot / unpublished draw\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"normal contract\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"future ballot\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"no declines\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"draw first\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"draw beyond roster\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"all disqualified\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"all tickets valid\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"same round\", \"actual\": [\"b\", \"a\"], \"expected\": [\"b\", \"a\"], \"passed\": true}, {\"check\": \"zero supply\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"future ballot / zero supply\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}